Closed
Bug 1377544
Opened 7 years ago
Closed 7 years ago
Label runnables in ExtensionProtocolHandler
Categories
(Core :: Networking, enhancement, P2)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: kershaw, Assigned: kershaw)
References
Details
(Whiteboard: [necko-next])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
kershaw
:
review+
|
Details | Diff | Splinter Review |
We still have some runnables that need to labeled in ExtensionProtocolHandler, such as [1], [2], and [3].
[1] http://searchfox.org/mozilla-central/rev/17ebac68112bd635b458e831670c1e506ebc17ad/netwerk/protocol/res/ExtensionProtocolHandler.cpp#240
[2] http://searchfox.org/mozilla-central/rev/17ebac68112bd635b458e831670c1e506ebc17ad/netwerk/protocol/res/ExtensionProtocolHandler.cpp#254
[3] http://searchfox.org/mozilla-central/rev/17ebac68112bd635b458e831670c1e506ebc17ad/netwerk/protocol/res/ExtensionProtocolHandler.cpp#292
Updated•7 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•7 years ago
|
||
Summary:
- Remove AbstractThread according to bug 1372736
- Let nsContentUtils::GetEventTargetByLoadInfo return nsISerialEventTarget
- Label runnables in ExtensionStreamGetter
Thanks.
Updated•7 years ago
|
Attachment #8887401 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Keywords: checkin-needed
Assignee | ||
Updated•7 years ago
|
Attachment #8887401 -
Attachment is obsolete: true
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1c61346d6f44
Labeling in ExtensionProtocolHandler, r=mayhemer
Keywords: checkin-needed
Comment 5•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Comment 6•7 years ago
|
||
I was under the impression that labeled runnables were only to be used in content. The nsIRunnables used in ExtensionProtocolHandler are only for the parent process and we shouldn't ever need them in content because the runnables are for opening files and content sandboxing prevents content processes from doing that.
For bug 1376496, I'm removing the nsILoadInfo that is sent from child to parent in the ExtensionProtocolHandler remoting. Could you recommend how to implement ExtensionStreamGetter::SetupEventTarget() without a loadinfo?
Flags: needinfo?(kechang)
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Haik Aftandilian [:haik] from comment #6)
> I was under the impression that labeled runnables were only to be used in
> content. The nsIRunnables used in ExtensionProtocolHandler are only for the
> parent process and we shouldn't ever need them in content because the
> runnables are for opening files and content sandboxing prevents content
> processes from doing that.
>
Yes, you are right. Labeled runnables are only used in content process.
But the abstract main thread used in ExtensionStreamGetter::GetAsync() is in content process. We need to also label it.
Also, when using nsIInputStreamPump in content process, we also have to assign a labeled event target to it.
> For bug 1376496, I'm removing the nsILoadInfo that is sent from child to
> parent in the ExtensionProtocolHandler remoting. Could you recommend how to
> implement ExtensionStreamGetter::SetupEventTarget() without a loadinfo?
It seems that the loadinfo is passed in ExtensionProtocolHandler::SubstituteRemoteFileChannel().
I think we can use nsContentUtils::GetEventTargetByLoadInfo() to get a labeled event target and try to pass it to ExtensionStreamGetter.
Flags: needinfo?(kechang)
You need to log in
before you can comment on or make changes to this bug.
Description
•