Bug 1594131 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Well both Neil and Andrew (can you please confirm?) found them not reliably called, so something is up.

Additionally, I've found that sending messages during the `willDestroy` callback sometimes throws, despite the comment in webidl claiming it should work.  If that is a also a possibility by design, we may as well also call `willDestroy` right before `didDestroy` if we haven't had a chance to call it while it could still send messages.

Otherwise, we need to go through existing code, as willDistroy seems much more popular:
https://searchfox.org/mozilla-central/search?q=willDestroy(&path=*.js
https://searchfox.org/mozilla-central/search?q=didDestroy(&path=*.js
Well both Neil and Andrew (can you please confirm?) found them not reliably called, so something is up.

Additionally, I've found that sending messages during the `willDestroy` callback sometimes throws, despite the comment in webidl claiming it should work.  If that is a also a possibility by design, we may as well also call `willDestroy` right before `didDestroy` if we haven't had a chance to call it while it could still send messages.

Otherwise, we need to go through existing code, as willDistroy seems more popular:
https://searchfox.org/mozilla-central/search?q=willDestroy(&path=*.js
https://searchfox.org/mozilla-central/search?q=didDestroy(&path=*.js

Back to Bug 1594131 Comment 3