Bug 156433
Summary: | FontFace's constructor should resolve the base URL of a given relative URL properly | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jiewen Tan <jiewen_tan> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ahmad.saleem792, annevk, jiewen_tan, mmaxfield, rniwa, vitor.roriz, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Jiewen Tan
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
<rdar://problem/25638820>
Myles C. Maxfield
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.