mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1179401 - Call stopImmediatePropagation() on the Event object in respondWith(); r=jdm
This commit is contained in:
parent
93aae1ae2b
commit
65c10472e9
@ -421,6 +421,7 @@ FetchEvent::RespondWith(Promise& aArg, ErrorResult& aRv)
|
||||
mPromise = &aArg;
|
||||
}
|
||||
nsRefPtr<InternalRequest> ir = mRequest->GetInternalRequest();
|
||||
StopImmediatePropagation();
|
||||
mWaitToRespond = true;
|
||||
nsRefPtr<RespondWithHandler> handler =
|
||||
new RespondWithHandler(mChannel, mRequest->Mode(), ir->IsClientRequest(),
|
||||
|
@ -1,6 +0,0 @@
|
||||
[fetch-event-respond-with-stops-propagation.https.html]
|
||||
type: testharness
|
||||
disabled: https://bugzilla.mozilla.org/show_bug.cgi?id=1194881
|
||||
[respondWith() invokes stopImmediatePropagation()]
|
||||
expected: FAIL
|
||||
|
@ -23,8 +23,8 @@ promise_test(function(t) {
|
||||
});
|
||||
var worker = frame.contentWindow.navigator.serviceWorker.controller;
|
||||
|
||||
frame.remove();
|
||||
worker.postMessage({port: channel.port2}, [channel.port2]);
|
||||
frame.remove();
|
||||
return saw_message;
|
||||
})
|
||||
.then(function(message) {
|
||||
|
Loading…
Reference in New Issue
Block a user