Closed Bug 466254 Opened 16 years ago Closed 15 years ago

Workers: Implement close() and onclose handlers

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

References

Details

(Keywords: dev-doc-complete)

Attachments

(2 files, 1 obsolete file)

Part of the spec we didn't quite hit. Highly desired by Google and others for killing server locks and allowing cleanup.
Attached patch Patch, v1 (obsolete) — Splinter Review
Not totally complete but very functional. Only thing missing is delaying window/app teardown while the close handler is running.
Attachment #366044 - Flags: review?(jst)
Attached patch Patch, v1.1Splinter Review
Added a few code comments that jst brought up in review, and made setTimeout/setInterval return a valid serial in close handlers, even though they still do nothing.
Attachment #366044 - Attachment is obsolete: true
Attachment #366723 - Flags: superreview?(jst)
Attachment #366723 - Flags: review?(jst)
Attachment #366044 - Flags: review?(jst)
Attachment #366723 - Flags: superreview?(jst)
Attachment #366723 - Flags: superreview+
Attachment #366723 - Flags: review?(jst)
Attachment #366723 - Flags: review+
Attached patch Leak fixSplinter Review
I landed this on Sunday to fix a leak seen on tinderbox... The test harness sets the script timeout to 0 which caused the close runnable to be rejected, thus leaking any features that were active.
Pushed changeset 388c17a510e8 to mozilla-central.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Depends on: 483978
Target Milestone: --- → mozilla1.9.2a1
Is this going to land on 1.9.1 too, or is it trunk only ?
Beta 2 was the cutoff for worker features.
Added information to:

https://developer.mozilla.org/En/Using_web_workers#Terminating_a_worker

https://developer.mozilla.org/en/XPCOM_Interface_Reference/NsIWorkerScope

Please comment and reset to dev-doc-needed if there are any issues with these edits.
Depends on: 598551
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: