Make claim return undefined for now

RESOLVED FIXED in Firefox 40

Status

()

Core
DOM: Workers
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: dougt, Assigned: dougt)

Tracking

unspecified
mozilla40
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(firefox40 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 years ago
Some demos for push are using this for sw activation:

this.addEventListener("activate", function(evt) {
    console.log("SW onactivate");
    if (clients.claim)
        evt.waitUntil(clients.claim());
});

Our claim() implementation throws because we haven't implemented it yet.  Until we do, lets just return UndefinedHandleValue.
(Assignee)

Comment 1

3 years ago
Created attachment 8588810 [details] [diff] [review]
0003-Bug-1151664-Make-claim-return-undefined-for-now.-r-n.patch
Attachment #8588810 - Flags: review?(nsm.nikhil)
Attachment #8588810 - Flags: review?(nsm.nikhil) → review+
(Assignee)

Comment 2

3 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/a6e54018a69a
https://hg.mozilla.org/mozilla-central/rev/a6e54018a69a
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox40: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.