Closed Bug 528610 Opened 16 years ago Closed 15 years ago

Unable to retrieve variables in an iframe with contentWindow

Categories

(Mozilla Labs :: Jetpack Prototype, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 544123

People

(Reporter: yves.vangoethem, Unassigned)

References

()

Details

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
Summary: Unable to retrieve variables in an iframe → Unable to retrieve variables in an iframe with contentWindow
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.