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)
Core
DOM: Security
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)
6.94 KB,
patch
|
allstars.chh
:
review+
|
Details | Diff | Splinter Review |
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
Comment 2•7 years ago
|
||
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.
Comment 3•7 years ago
|
||
In other words, data: shouldn't be any different to random third party origin, I think.
Updated•7 years ago
|
Priority: -- → P3
Whiteboard: [domsecurity-backlog1]
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → allstars.chh
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8887408 -
Flags: review?(bugs)
Comment 5•7 years ago
|
||
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+
Assignee | ||
Comment 6•7 years ago
|
||
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
Comment 8•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•