Closed Bug 856849 Opened 11 years ago Closed 11 years ago

Poison nsGlobalWindow::mJSObject when it's finalized

Categories

(Core :: XPConnect, defect)

22 Branch
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: billm, Assigned: billm)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Blake filed bug 856818 to figure out what we can do if someone calls EnsureScriptEnvironment on a closed window. This bug is smaller in scope. It just tries to ensure that we crash reliably if the JS object for an outer window is finalized and we later try to access it.

Try link:
https://tbpl.mozilla.org/?tree=Try&rev=9e1d9a6341de
Attachment #732099 - Flags: review?(mrbkap)
Comment on attachment 732099 [details] [diff] [review]
patch

This had *better* be green on try!
Attachment #732099 - Flags: review?(mrbkap) → review+
Wait, so PoisonGlobal operates only on outer windows, which are not globals? If I understand that correctly, I think we could improve the naming here :P
PoisonOuterWindowProxy?
(In reply to Bill McCloskey (:billm) from comment #3)
> PoisonOuterWindowProxy?

sgtm
And an assert there that it's only called on outer windows?
https://hg.mozilla.org/mozilla-central/rev/81d516cc6e36
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: