Bug 1179401 - Call stopImmediatePropagation() on the Event object in respondWith(); r=jdm

This commit is contained in:
Ehsan Akhgari 2015-09-29 22:53:53 -04:00
parent 93aae1ae2b
commit 65c10472e9
3 changed files with 2 additions and 7 deletions

View File

@ -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(),

View File

@ -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

View File

@ -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) {