Closed
Bug 1206894
Opened 9 years ago
Closed 9 years ago
Enable asynchronous dispatching of fetch events
Categories
(Core :: DOM: Service Workers, defect)
Core
DOM: Service Workers
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
17.64 KB,
patch
|
jdm
:
review+
|
Details | Diff | Splinter Review |
This refactoring patch separates the preparation of the fetch event object from its dispatching, so that consumers would be able to dispatch the event asynchronously.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8663869 -
Flags: review?(josh)
Comment 2•9 years ago
|
||
Comment on attachment 8663869 [details] [diff] [review] Enable asynchronous dispatching of fetch events Review of attachment 8663869 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/libjar/InterceptedJARChannel.cpp @@ +132,5 @@ > + rv = dispatcher->Dispatch(); > + if (NS_WARN_IF(NS_FAILED(rv))) { > + rv = ResetInterception(); > + NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), > + "Failed to dispatch the fetch event"); This should refer to ResetInterception failing. ::: netwerk/base/nsINetworkInterceptController.idl @@ +25,5 @@ > * the actual channel. nsIInterceptedChannel is expected to be implemented by objects > * which do not implement nsIChannel. > */ > > +[scriptable, uuid(40851f73-f799-4a22-a69b-05e0371ee373)] Unnecessary. ::: netwerk/protocol/http/InterceptedChannel.cpp @@ +68,5 @@ > } > + rv = dispatcher->Dispatch(); > + if (NS_WARN_IF(NS_FAILED(rv))) { > + rv = ResetInterception(); > + NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed to dispatch the fetch event"); This message should refer to ResetInterception failing.
Attachment #8663869 -
Flags: review?(josh) → review+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Josh Matthews [:jdm] from comment #2) > ::: netwerk/base/nsINetworkInterceptController.idl > @@ +25,5 @@ > > * the actual channel. nsIInterceptedChannel is expected to be implemented by objects > > * which do not implement nsIChannel. > > */ > > > > +[scriptable, uuid(40851f73-f799-4a22-a69b-05e0371ee373)] > > Unnecessary. Unfortunately it's needed because of bug 1171721. :(
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6aabbc12983c https://hg.mozilla.org/mozilla-central/rev/201ccc2e2e76
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
•