Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Bug 749749: Fix "test-content-worker.test:setTimeout are unregistered on content unload". #420

Conversation

ochameau
Copy link
Contributor

@ochameau ochameau commented May 2, 2012

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

… 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.
// is going to be released. See bug 695480
originalWindow.document.title;
}, "can't access dead object");
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite sure how useful this test is, but I'm ok with keeping it.

@Gozala
Copy link
Contributor

Gozala commented May 2, 2012

Looks good to me r+

@Gozala
Copy link
Contributor

Gozala commented May 2, 2012

Also it looks like @Mossop already r+ it.

ochameau added a commit that referenced this pull request May 2, 2012
…ker-setTimeout

Bug 749749: Fix "test-content-worker.test:setTimeout are unregistered on content unload". r=@Mossop
@ochameau ochameau merged commit 0c518ae into mozilla:master May 2, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants