Re: scopes, execution contexts, and scripts
Boris Zbarsky <[email protected]> Tue, 26 Jan 2010 14:02:56 -0500
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
On 1/26/10 2:04 PM, John J. Barton wrote: > and how to distinguish the (and possibly..) case from > unload-because-we-are-being-deleted. You can't. But onload does mean whatever was in that window before is gone. > And so to handle this case, I guess I need to track onLocationChange > events for every nsIDOMWindow? I don't understand how to tell if a > window is being destroyed after unload vs being reused. You can't tell right now. I plan to add a notification (with the window id) when a window is "torn down" sometime in the next 1-1.5 weeks. -Boris