If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Unable to retrieve variables in an iframe with contentWindow

RESOLVED DUPLICATE of bug 544123

Status

Mozilla Labs
Jetpack Prototype
RESOLVED DUPLICATE of bug 544123
8 years ago
8 years ago

People

(Reporter: Yves Van Goethem, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Build Identifier: 

Trying to retrieve a variable in an iframe using iframe.contentWindow.foobar returns "undefined"


Reproducible: Always

Steps to Reproduce:
1. Go to the attached URL
2. Follow the steps to reproduce :-)
Actual Results:  
"undefined" is returned

Expected Results:  
If it is a security issue it would be nice to have a more informative error message.
But that doesn't seem really logic to me, because we have access to the contentDocument but not the contentWindow...

clochix on irc.mozilla.or/jetpack found a workaround by doing iframe.contentDocument.defaultView.wrappedJSObject.foobar
(Reporter)

Updated

8 years ago
Summary: Unable to retrieve variables in an iframe → Unable to retrieve variables in an iframe with contentWindow

Updated

8 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 544123
You need to log in before you can comment on or make changes to this bug.