Closed
Bug 1182112
Opened 9 years ago
Closed 9 years ago
Test loading XML documents if XSLT loading fails
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
RESOLVED
FIXED
mozilla44
People
(Reporter: noemi, Assigned: baku)
References
Details
Attachments
(1 file, 1 obsolete file)
1.88 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•9 years ago
|
Target Milestone: --- → FxOS-S3 (24Jul)
Reporter | ||
Updated•9 years ago
|
Target Milestone: FxOS-S3 (24Jul) → FxOS-S4 (07Aug)
Reporter | ||
Updated•9 years ago
|
Target Milestone: FxOS-S4 (07Aug) → ---
Comment 1•9 years ago
|
||
releasing this since I don’t have time to work on it, so letting someone else to take it.
Assignee: alberto.crespell → nobody
Status: ASSIGNED → NEW
Comment 2•9 years ago
|
||
https://dxr.mozilla.org/mozilla-central/source/dom/xslt/base/txURIUtils.cpp#60 Ehsan and jdm think this case happens with XML documents at data URLs.
Assignee | ||
Comment 3•9 years ago
|
||
Me and Ehsan discussed this on IRC and we agreed that only data: documents are without channels. For this reason, if we have to create a new channel, we should not intercept it with ServiceWorkers.
Flags: needinfo?(bugs)
Attachment #8664906 -
Flags: review?(ehsan)
Updated•9 years ago
|
Assignee: nobody → amarchesini
Reporter | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 4•9 years ago
|
||
Comment on attachment 8664906 [details] [diff] [review] force.patch Review of attachment 8664906 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/xslt/base/txURIUtils.cpp @@ +72,5 @@ > } > + > + nsCOMPtr<nsIHttpChannelInternal> internalChannel = do_QueryInterface(channel); > + if (internalChannel) { > + internalChannel->ForceNoIntercept(); Please add a comment explaining why this is needed.
Attachment #8664906 -
Flags: review?(ehsan) → review+
Comment 5•9 years ago
|
||
I'm not too familiar with our xslt code, but is this about documents loaded from data: or data-documents (created for example using document.implementation.createHTMLDocument())? I guess about the latter. But I don't know what ForceNoIntercept() does and why it is needed here. In fact, it isn't clear to me why we need the artificial channel there anymore. It was added in https://bugzilla.mozilla.org/show_bug.cgi?id=322683. Even if channel wasn't passed, correct principal is explicitly set.
Flags: needinfo?(bugs)
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8664906 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c281d27fbffc
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•