WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
156433
FontFace's constructor should resolve the base URL of a given relative URL properly
https://bugs.webkit.org/show_bug.cgi?id=156433
Summary
FontFace's constructor should resolve the base URL of a given relative URL pr...
Jiewen Tan
Reported
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-04-08 19:17:26 PDT
<
rdar://problem/25638820
>
Myles C. Maxfield
Comment 2
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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug