Closed Bug 1388606 Opened 7 years ago Closed 7 years ago

data:font same-origin-check test case is not written correctly

Categories

(Core :: DOM: Security, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: hchang, Assigned: hchang)

References

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

Current data:font same-origin check relies on accessing document.fonts.size [1] but I don't see any restriction on that. See my test page below:

http://elefant.github.io/data-uri/font.html

The correct way to test it should be something like cross-domain @font-face in css.

[1] http://searchfox.org/mozilla-central/rev/0f16d437cce97733c6678d29982a6bcad49f817b/dom/base/test/test_data_uri.html#88
Assignee: nobody → hchang
Blocks: 1365145
Status: NEW → ASSIGNED
Summary: data:font same origin check is not done correctly → data:font same-origin-check test case is not written correctly
Priority: -- → P2
Whiteboard: [domsecurity-active]
Attachment #8895279 - Flags: review?(ckerschb)
Comment on attachment 8895279 [details]
Bug 1388606 - Test case for ensuring data:font is treated same-origin.

https://reviewboard.mozilla.org/r/166466/#review171618

looks good to me, thanks. r=ckerschb
Attachment #8895279 - Flags: review?(ckerschb) → review+
Pushed by hchang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5bf5f9a8b4a7
Test case for ensuring data:font is treated same-origin. r=ckerschb
https://hg.mozilla.org/mozilla-central/rev/5bf5f9a8b4a7
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
See Also: → 1381744
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: