Closed Bug 535563 Opened 15 years ago Closed 13 years ago

window.opener referencing does not work since 3.5.6

Categories

(Firefox :: General, defect)

3.6 Branch
x86
Windows 7
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: wbreda, Unassigned)

Details

(Whiteboard: [CLOSEME 2011-2-25])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.38 Safari/532.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6

Since 3.5.6 window.opener.formname to reference a form from a popup does not work anymore.

The popup window is created using window.open. From this window I use window.opener.formname.textboxname.value="value" to fill a form value, but this produces "Error: window.opener.formname is undefined"

In 3.5.5 (and before) this works flawlessly as does IE, Chrome and Safari.



Reproducible: Always

Steps to Reproduce:
1. Create form
2. Open new window with JavaScript window.open
3. Modify value on inputform on parent window with window.opener.formname.textboxname.value="value" 
4. error message
Actual Results:  
Error message "Error: window.opener.formname is undefined"
form value is not modified

Expected Results:  
No error 
Value modified

Probably broken after security fix (bugid 522430)
http://www.mozilla.org/security/announce/2009/mfsa2009-70.html

Technique works in other browsers and Firefox 3.5.5 and before
Summary: window.opener.window.opener does not work since 3.5.6 → window.opener refrencing does not work since 3.5.6
Summary: window.opener refrencing does not work since 3.5.6 → window.opener referencing does not work since 3.5.6
Version: unspecified → 3.5 Branch
Bug still exists in 3.6
Version: 3.5 Branch → 3.6 Branch
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode or a fresh profile? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2011-2-25]
No reply from reporter, INCOMPLETE. Please retest with Firefox 4 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.