The default bug view has changed. See this FAQ.

Remove ConstructProxyObject

RESOLVED FIXED in mozilla10

Status

()

Core
DOM
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: peterv, Assigned: peterv)

Tracking

Trunk
mozilla10
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
Created attachment 565936 [details] [diff] [review]
v1

We can construct the outer window proxy from WrapObject.
Attachment #565936 - Flags: review?(mrbkap)
Comment on attachment 565936 [details] [diff] [review]
v1

Review of attachment 565936 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/base/nsGlobalWindow.h
@@ +302,5 @@
> +  // nsWrapperCache
> +  JSObject *WrapObject(JSContext *cx, XPCWrappedNativeScope *scope,
> +                       bool *triedToWrap)
> +  {
> +    *triedToWrap = IsOuterWindow();

I think you should be able to assert that this is true since we don't QI to nsWrapperCache for inner windows.
Attachment #565936 - Flags: review?(mrbkap) → review+
(Assignee)

Comment 2

6 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/82fd332d288a
Target Milestone: --- → mozilla10
https://hg.mozilla.org/mozilla-central/rev/82fd332d288a
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.