Closed Bug 585228 Opened 14 years ago Closed 14 years ago

Cleanup the window scriptable helper some

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(3 files)

Now that the inner and outer windows don't share a scriptable helper, we can move some work out of the inner window.
Assignee: nobody → mrbkap
Status: NEW → ASSIGNED
Attachment #463715 - Flags: review?(jst)
After this patch, we can actually make some code that calls the innerObject hook just check for its presence, which might save some perf in eval.
Attachment #463716 - Flags: review?(jst)
Attachment #463718 - Flags: review?(jst)
Attachment #463715 - Flags: review?(jst) → review+
Comment on attachment 463716 [details] [diff] [review]
innerObject and outerObject should be on the outer SH and inner SH respectively

- In nsOuterWindowSH::InnerObject():

     nsGlobalWindow *inner = win->GetCurrentInnerWindowInternal();
     if (!inner) {
       // Yikes! No inner window! Instead of leaking the outer window into the
       // scope chain, let's return an error.
+      // XXX Can this still happen?

Maybe assert that it is so?

r=jst
Attachment #463716 - Flags: review?(jst) → review+
Attachment #463718 - Flags: review?(jst) → review+
http://hg.mozilla.org/mozilla-central/rev/36c4d4e837bb
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: