question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

window.opener explodes

See original GitHub issue
      typeof(window) !== "undefined" && window.opener !== null && typeof window.opener.GLOBALS !== "undefined"
          ? window.opener.GLOBALS

This code blows up if you open gmail from a link on another domain with a cross-origin request denied error.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
juuuuuuliancommented, Feb 13, 2017

We are loading gmail.js in a Chrome extension. I’ll see if we can provide a complete example.

0reactions
josteinkcommented, May 16, 2019

I can’t agree here. Access to window.opener is important when you pop out the message window - in this case we need to know the opener context to access “root” Gmail window. But if you came to root Gmail window from third-party resource, there’s nothing useful (at least for gmail.js 😃) you can get from its context.

Ok. I get the difference now.

And I do agree: This should be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Southwest passenger dies after being partially sucked out of ...
Plane makes emergency landing in Philadelphia after debris from exploded engine smashes window at 32000 feet.
Read more >
Ask the Carpenter: Help! The windows in this Cape are ...
Yes, explode. There are random panes exploding and in various rooms in the house. The windows are not shattering as I'd expect tempered...
Read more >
What causes windows to get blown out during an explosion?
An explosion compresses the surrounding air. When the air pressure is greater on the outside of a window than the inside, the glass...
Read more >
IE: Unset window.opener - Stack Overflow
I only want to close the window if the opener is from the same domain. ... However, IE does not allow you to...
Read more >
Disable "exploding window view" ? - Apple Community
In response to some unknown input sequence, the Mac OS desktop display "explodes" and puts windows all over the place like shrapnel.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found