Closed
Bug 1365519
Opened 8 years ago
Closed 7 years ago
nsUnknownDecoder block off-main thread delivery?
Categories
(Core :: Networking: HTTP, enhancement)
Core
Networking: HTTP
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: schien, Assigned: dragana)
References
Details
(Whiteboard: [necko-backlog])
Attachments
(1 file, 1 obsolete file)
22.87 KB,
patch
|
dragana
:
review+
|
Details | Diff | Splinter Review |
nsUnknownDecoder doesn't implement nsIThreadRetargetableStreamListener, so it might block the mNextListener from requesting OMT ODA.
https://searchfox.org/mozilla-central/rev/9a7fbdee1d54f99cd548af95b81231d80e5f9ad1/netwerk/streamconv/converters/nsUnknownDecoder.cpp#120
Updated•8 years ago
|
Whiteboard: [necko-backlog]
Reporter | ||
Comment 1•8 years ago
|
||
We should fix this after PBg-Http is landed in order to trigger HTTP OMT in content process as much as possible.
Blocks: PBg-HTTP
Assignee | ||
Comment 2•8 years ago
|
||
I did not know about this bug, but I wanted to fix it with bug 1357678. I was intended to fix all streamListeners in netwerk/streamconv
Assignee: nobody → dd.mozilla
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8879539 -
Flags: review?(honzab.moz)
Assignee | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment on attachment 8879539 [details] [diff] [review]
bug_1365519.patch
Review of attachment 8879539 [details] [diff] [review]:
-----------------------------------------------------------------
::: netwerk/streamconv/converters/nsUnknownDecoder.cpp
@@ +448,2 @@
> if (channel) {
> nsresult rv = ConvertEncodedData(aRequest, mBuffer, mBufferLen);
maybe add a short comment that this is always called only on a single thread for one instance of this object
::: netwerk/streamconv/converters/nsUnknownDecoder.h
@@ +135,5 @@
> bool mRequireHTMLsuffix;
>
> nsCString mContentType;
>
> + mutable mozilla::Mutex mMutex;
please comment what this syncs
Attachment #8879539 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8879539 -
Attachment is obsolete: true
Attachment #8880480 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b4878203823c
Make nsUnknownDecoder nsIThreadRetargetableStreamListener. r=mayhemer
Keywords: checkin-needed
Comment 8•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•