Closed
Bug 1169613
Opened 9 years ago
Closed 9 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•9 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•9 years ago
|
||
r=jdm from comment 2
Attachment #8613457 -
Attachment is obsolete: true
Attachment #8613952 -
Flags: review+
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8613953 -
Flags: review?(nsm.nikhil)
Assignee | ||
Comment 5•9 years ago
|
||
Attachment #8613954 -
Flags: review?(josh)
Updated•9 years ago
|
Target Milestone: --- → NGA S2 (12Jun)
Updated•9 years ago
|
Attachment #8613954 -
Flags: review?(josh) → review+
Updated•9 years ago
|
Status: NEW → ASSIGNED
Attachment #8613953 -
Flags: review?(nsm.nikhil) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•