Closed Bug 792224 Opened 12 years ago Closed 10 years ago

add explicit test for worker.js's detach event on the content side

Categories

(Add-on SDK Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: evold, Assigned: zombie)

References

Details

Attachments

(1 file)

If there is a test already then I missed it.
In the content script, you can do self.on("detach", function() {}); though it is not mentioned in the documentation. 

Is that what you mean?
(In reply to willmarquardt from comment #1)
> In the content script, you can do self.on("detach", function() {}); though
> it is not mentioned in the documentation. 
> 
> Is that what you mean?

Yes that is what I mean, I'm pretty sure that due to a bug this does not work at the moment, and if it ever worked then there were no tests for it, which is what allowed it to regress.
Depends on: 964118
Erik, this is similar to your test for bug 964118, only simpler..
Assignee: nobody → tomica+amo
Status: NEW → ASSIGNED
Attachment #8384334 - Flags: review?(evold)
Attachment #8384334 - Flags: review?(evold) → review+
Commits pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/e165531da5c0786d1cba13f94fd49d3cd216ed82
bug 792224 - test onDetach event in contentScript

https://github.com/mozilla/addon-sdk/commit/5db6e2a9204b8cac4dc24c2da2ceff5313c18ac9
Merge pull request #1414 from zombie/792224-ondetach-tests

bug 792224 - test onDetach event in contentScript r=@erikvold
Depends on: 980511
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: