Bug 156433 - FontFace's constructor should resolve the base URL of a given relative URL properly
Summary: FontFace's constructor should resolve the base URL of a given relative URL pr...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-08 19:16 PDT by Jiewen Tan
Modified: 2016-04-09 09:09 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiewen Tan 2016-04-08 19:16:44 PDT
In any given JS context, if one creates a FontFace object by: new FontFace("MyFont2", "url(\"asdf\")", {}). The url attribute of the object will not be resolved correctly if a relative URL is given as the base URL will be interpreted as empty URL.
Comment 1 Radar WebKit Bug Importer 2016-04-08 19:17:26 PDT
<rdar://problem/25638820>
Comment 2 Myles C. Maxfield 2016-04-09 09:09:35 PDT
See issue 5 in the spec:

"Need to define the base url, so relative urls can resolve. Should it be the url of the document? Is that correct for workers too, or should they use their worker url? Is that always defined?"

I can't fix this in WebKit until the spec describes the correct behavior.