mozilla/addon-sdk — pull request #420 by ochameau (2012-05-02 08:20:57+00:00)
Title: Bug 749749: Fix "test-content-worker.test:setTimeout are unregistered on content unload".

bug 695480 now prevents using unloaded content document references,
but we still can use outer window reference until it is finally closed.

+ Some priviledged document now have `wrappedJSObject`, so instead of checking `node.wrappedJSObject`, we have to check for `XPCNativeWrapper.unwrap(node) !== node`.
+ test-content-worker is opening a new top-level window on each test, we forgot to close them.

https://bugzilla.mozilla.org/show_bug.cgi?id=749749