X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

window.opener doesn't work

Posted

I have a website that seems to have just broken with the 18 or 18.0.1 release. The specific code that is breaking is a call to window.opener. The error I see in the console says: TypeError: window.opener.Assignments is undefined

I checked this with IE and FF on our test servers as well as our comparison server (runs last releases version of the code) and they all have the same problem so it's not something that changed in our codebase.

Can anyone tell me why there are javascript errors on calls to window.opener with the latest release and how I can work around this?

Chosen solution

I think I found the answer to my own question. In case anyone stumbles on this and it's useful.

I think the problem was that the code was calling window.opener.form when it appears in firefox you have to call window.opener.document.form. Since both work in FF and IE and since it seems there are only a few places in the code where we aren't calling window.opener.document I'll just update the code to do that.

Read this answer in context 2

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.5
  • NVIDIA 3D Vision plugin for Mozilla browsers
  • NVIDIA 3D Vision Streaming plugin for Mozilla browsers
  • Google Update
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • 5.1.10411.0
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • iTunes Detector Plug-in
  • Windows Activation Technologies Plugin for Mozilla
  • Cortona3D Plug-in for Mozilla-based Browsers (7, 0, 0, 187)
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

Chosen Solution

I think I found the answer to my own question. In case anyone stumbles on this and it's useful.

I think the problem was that the code was calling window.opener.form when it appears in firefox you have to call window.opener.document.form. Since both work in FF and IE and since it seems there are only a few places in the code where we aren't calling window.opener.document I'll just update the code to do that.