Closed Bug 1380263 Opened 7 years ago Closed 7 years ago

Should data: URI inherit origin attributes when it is unique opaque origin?

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

Details

(Whiteboard: [domsecurity-backlog1])

Attachments

(1 file, 1 obsolete file)

From Bug 1324406 we're trying to make data: URI has a unique opage origin, and right now data: URI will inherit origin attributes from its parent, as done in bug 1300671. However one question remained is that, should the data: URI still inherit the origin attributes from its parent when we turn on the pref? or should it have its own unique origin attributes as well? or it shouldn't have any origin attributes at all? Arthur, smaug, do you have any comment? Thanks
It should inherit. Say, you have page from domain A which has iframe data:foo and that then has iframe from domain A. I certainly would expect usercontextID of the main page and the innermost iframe to be the same. Private browsing flag should be inherited too, and InIsolatedMozBrowser, and appid. And since FirstPartyDomain is about top level pages, it should too.
In other words, data: shouldn't be any different to random third party origin, I think.
Priority: -- → P3
Whiteboard: [domsecurity-backlog1]
Assignee: nobody → allstars.chh
Status: NEW → ASSIGNED
Comment on attachment 8887408 [details] [diff] [review] Patch ahaa, DocShell code is getting hard to follow. 'inherit' means in the patch only that origin attributes are inherited. Could you rename inherit to inheritOriginAttributes, or perhaps even more clear (even though very long), inheritOriginAttributesAndMaybePrincipal
Attachment #8887408 - Flags: review?(bugs) → review+
Attached patch Patch. v2Splinter Review
rename to inheritAttrs and inheritPrincipal.
Attachment #8887408 - Attachment is obsolete: true
Attachment #8887802 - Flags: review+
Pushed by yhuang@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/c869a61f3eab data: URI should inherit origin attributes. r=smaug
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: