Closed
Bug 1169613
Opened 9 years ago
Closed 8 years ago
Use content type of synthesized response for JAR channel requests if available
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
RESOLVED
FIXED
NGA S2 (12Jun)
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: ferjm, Assigned: ferjm)
References
Details
(Whiteboard: [s3])
Attachments
(3 files, 1 obsolete file)
4.75 KB,
patch
|
ferjm
:
review+
|
Details | Diff | Splinter Review |
1.57 KB,
patch
|
nsm
:
review+
|
Details | Diff | Splinter Review |
7.58 KB,
patch
|
jdm
:
review+
|
Details | Diff | Splinter Review |
We are currently inferring the content type from the URL of the request, but that should not necessarily be the same as the on specified in the synthesized response.
Assignee | ||
Updated•9 years ago
|
Updated•9 years ago
|
Blocks: ServiceWorkers-B2G
Comment 2•8 years ago
|
||
Comment on attachment 8613457 [details] [diff] [review] v1 Review of attachment 8613457 [details] [diff] [review]: ----------------------------------------------------------------- This should have a test, too. I think we can perform an XHR to an ".txt" app url that is intercepted and set the responseType to "document", then sythesize a text/html response and check that xhr.response is a Document object once the request is complete. ::: modules/libjar/nsJARChannel.cpp @@ +896,5 @@ > } > > void > +nsJARChannel::OverrideWithSynthesizedResponse(nsIInputStream* aSynthesizedInput, > + nsCString aContentType) const nsACString& @@ +917,5 @@ > aSynthesizedInput->Close(); > return; > } > > + mContentType = aContentType; Call SetContentType instead.
Attachment #8613457 -
Flags: review?(josh) → review+
Assignee | ||
Comment 3•8 years ago
|
||
r=jdm from comment 2
Attachment #8613457 -
Attachment is obsolete: true
Attachment #8613952 -
Flags: review+
Assignee | ||
Comment 4•8 years ago
|
||
Attachment #8613953 -
Flags: review?(nsm.nikhil)
Assignee | ||
Comment 5•8 years ago
|
||
Attachment #8613954 -
Flags: review?(josh)
Updated•8 years ago
|
Target Milestone: --- → NGA S2 (12Jun)
Updated•8 years ago
|
Attachment #8613954 -
Flags: review?(josh) → review+
Updated•8 years ago
|
Status: NEW → ASSIGNED
Attachment #8613953 -
Flags: review?(nsm.nikhil) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/bf8a4b45e3da https://hg.mozilla.org/integration/mozilla-inbound/rev/99fc1ca23701 https://hg.mozilla.org/integration/mozilla-inbound/rev/52256ba02d2e
https://hg.mozilla.org/mozilla-central/rev/bf8a4b45e3da https://hg.mozilla.org/mozilla-central/rev/99fc1ca23701 https://hg.mozilla.org/mozilla-central/rev/52256ba02d2e
You need to log in
before you can comment on or make changes to this bug.
Description
•