Bug 1189675 - Make all ServiceWorker events non cancelable. r=catalinb

Update web-platform-tests expected data
This commit is contained in:
Nikhil Marathe 2015-08-21 17:38:18 -07:00
parent 9cb602ff2d
commit c394603e48
2 changed files with 4 additions and 10 deletions

View File

@ -1903,7 +1903,7 @@ LifecycleEventWorkerRunnable::DispatchLifecycleEvent(JSContext* aCx, WorkerPriva
// FIXME(nsm): Bug 982787 pass previous active worker.
ExtendableEventInit init;
init.mBubbles = false;
init.mCancelable = true;
init.mCancelable = false;
event = ExtendableEvent::Constructor(target, mEventName, init);
} else {
MOZ_CRASH("Unexpected lifecycle event");
@ -2304,7 +2304,7 @@ public:
// FIXME(nsm): Bug 1149195.
// pei.mData.Construct(mData);
pei.mBubbles = false;
pei.mCancelable = true;
pei.mCancelable = false;
ErrorResult result;
nsRefPtr<PushEvent> event =
@ -2503,7 +2503,7 @@ public:
NotificationEventInit nei;
nei.mNotification = notification;
nei.mBubbles = false;
nei.mCancelable = true;
nei.mCancelable = false;
nsRefPtr<NotificationEvent> event =
NotificationEvent::Constructor(target, NS_LITERAL_STRING("notificationclick"), nei, result);
@ -3818,7 +3818,7 @@ private:
init.mRequest.Construct();
init.mRequest.Value() = request;
init.mBubbles = false;
init.mCancelable = true;
init.mCancelable = false;
init.mIsReload.Construct(mIsReload);
nsRefPtr<FetchEvent> event =
FetchEvent::Constructor(globalObj, NS_LITERAL_STRING("fetch"), init, result);

View File

@ -1,6 +0,0 @@
[install-event-type.https.html]
type: testharness
expected: ERROR
[install event type]
expected: FAIL