gecko-dev/dom/fetch
Kershaw Chang 07b1d8bc29 Bug 1576183 - Don't access worker promise if already shutdown r=baku
The reason of the assertion failure is that WorkerFetchResolver::Shutdown is already called, but we still call WorkerRun from WorkerFetchResponseEndRunnable::Cancel [1].
This patch adds a flag mIsShutdown to avoid doing WorkerRun if mIsShutdown is true.


[1] https://searchfox.org/mozilla-central/rev/325c1a707819602feff736f129cb36055ba6d94f/dom/fetch/Fetch.cpp#733

Differential Revision: https://phabricator.services.mozilla.com/D43777

--HG--
extra : moz-landing-system : lando
2019-08-28 20:21:50 +00:00
..
tests Bug 1561435 - Format dom/, a=automatic-formatting 2019-07-05 10:44:55 +02:00
BodyExtractor.cpp Bug 1415508 - use Span in constructing a byte input stream; r=mayhemer 2019-02-25 19:11:20 +00:00
BodyExtractor.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
ChannelInfo.cpp Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
ChannelInfo.h Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug 2019-01-03 17:48:33 +01:00
ChannelInfo.ipdlh
EmptyBody.cpp Bug 1557781 - Better life-time management for BodyStream/FetchStream - part 2 - BodyStream, r=smaug 2019-07-01 20:01:17 +00:00
EmptyBody.h Bug 1557781 - Better life-time management for BodyStream/FetchStream - part 2 - BodyStream, r=smaug 2019-07-01 20:01:17 +00:00
Fetch.cpp Bug 1576183 - Don't access worker promise if already shutdown r=baku 2019-08-28 20:21:50 +00:00
Fetch.h Bug 1567419 - Ensure the BodyStreamHolder has a valid stream always, r=smaug 2019-07-23 23:23:41 +00:00
FetchDriver.cpp Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug 2019-08-21 13:24:45 +00:00
FetchDriver.h Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug 2019-08-21 13:24:45 +00:00
FetchIPCTypes.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
FetchObserver.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
FetchObserver.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
FetchStreamReader.cpp Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
FetchStreamReader.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
FetchTypes.ipdlh Bug 1231213 - Implement IPCInternal{Request,Response}. r=asuth 2019-08-15 17:26:15 +00:00
FetchUtil.cpp Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug 2019-08-21 13:24:45 +00:00
FetchUtil.h Bug 1487113 - Expose nsICacheInfoChannel in Respose object for wasm content-type, r=valentin,nbp 2019-02-20 10:05:35 +00:00
Headers.cpp Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika 2019-02-25 16:05:29 -06:00
Headers.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
InternalHeaders.cpp Bug 1309358 - P1: Add wildcard to Access-Control-Expose-Headers r=baku 2019-07-16 08:50:14 +00:00
InternalHeaders.h Bug 1309358 - P1: Add wildcard to Access-Control-Expose-Headers r=baku 2019-07-16 08:50:14 +00:00
InternalRequest.cpp Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug 2019-08-21 13:24:45 +00:00
InternalRequest.h Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug 2019-08-21 13:24:45 +00:00
InternalResponse.cpp Bug 1231213 - Implement IPCInternal{Request,Response}. r=asuth 2019-08-15 17:26:15 +00:00
InternalResponse.h Bug 1231213 - Implement IPCInternal{Request,Response}. r=asuth 2019-08-15 17:26:15 +00:00
Request.cpp Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug 2019-08-21 13:24:45 +00:00
Request.h Bug 1557781 - Better life-time management for BodyStream/FetchStream - part 2 - BodyStream, r=smaug 2019-07-01 20:01:17 +00:00
Response.cpp Bug 1565767 part 4. Remove some unnecesary refcounting at Document::GetBaseURI callsites. r=peterv 2019-07-15 18:28:43 +00:00
Response.h Bug 1557781 - Better life-time management for BodyStream/FetchStream - part 2 - BodyStream, r=smaug 2019-07-01 20:01:17 +00:00
moz.build Bug 1557121 - Implement Blob.text()/Blob.arrayBuffer()/Blob.stream() - part 3 - Rename FetchBodyConsumer to BodyConsumer, r=smaug 2019-06-07 14:16:59 +00:00