Closed
Bug 1101584
Opened 10 years ago
Closed 10 years ago
nsContentUtils::GetUTFOrigin should check if the URI has the nsIURIWithPrincipal interface.
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(1 file, 4 obsolete files)
3.51 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Attachment #8525356 -
Flags: review?(bugs)
Assignee | ||
Comment 1•10 years ago
|
||
this bug is created because of bug 1058470 comment 23.
Comment 2•10 years ago
|
||
Can you add a testcase?
For example, loading an iframe from a blob: URI and then checking its location.origin.
Or setting the href of an <a> element to a blob: URI and then checking its .origin.
Also, don't we need equivalent changes to nsContentUtils::GetASCIIOrigin?
Assignee | ||
Comment 3•10 years ago
|
||
do you mean this kind of test?
Attachment #8525356 -
Attachment is obsolete: true
Attachment #8525356 -
Flags: review?(bugs)
Attachment #8525378 -
Flags: review?(bugs)
Comment 4•10 years ago
|
||
Comment on attachment 8525378 [details] [diff] [review]
origin.patch
Yep, like that. r=me, since I've clearly been looking at this.
Attachment #8525378 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8525490 -
Flags: review?(bugs)
Comment 7•10 years ago
|
||
Comment on attachment 8525490 [details] [diff] [review]
patch2.patch
I'm not totally convinced we want to deal with uriWithPrincipal at all in these methods (feel like they make the methods do something magical, not something that the caller expects), but since bz was ok with the first patch, fine.
And looks like URIWithPrincipal is for nsHostObjectURI only atm.
Attachment #8525490 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 8•10 years ago
|
||
patch merged: https://tbpl.mozilla.org/?tree=Try&rev=5259cc02e97f
Attachment #8525378 -
Attachment is obsolete: true
Attachment #8525490 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
I had to back out the original patch in https://hg.mozilla.org/integration/mozilla-inbound/rev/df4b53792111 because I couldn't keep holding the tree closed for the fix to land.
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 11•10 years ago
|
||
The new patch fixes the problem. Sorry for the waiting for the new patch.
Flags: needinfo?(amarchesini)
Comment 12•10 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•