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.

Allow overwrite of window.top

See original GitHub issue

We have a few tests in jest that attempt to simulate a parent-child relationship between a window and the window of an iframe. With recent versions of jsdom it seems like it isn’t possible to overwrite window.top any longer. Are you guys interested in supporting this use case? 😃

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:21 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
domeniccommented, Nov 30, 2017

Ah, right, we don’t correctly implement [Replaceable]. I’ll file another issue for that. In the meantime, Object.defineProperty should work: https://runkit.com/embed/rwmx7ykc0xrq

1reaction
amelzercommented, Nov 30, 2017

Sorry for digging this out again. Ist there a similar solution for window.parent?

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE Overwrite window.top - javascript
I'm trying to convince a page that it is the window.top even though it is in an iframe ...
Read more >
How to enable Structured Exception Handling Overwrite ...
If you would rather enable this feature yourself, go to the "Let me enable it myself" section. Note If you are running Windows...
Read more >
How to Recover Overwritten Files on Windows 10
The answer is yes, there are multiple ways to recover overwritten files. ... Disk Drill will allow you to recover files on your...
Read more >
curses — Terminal handling for character-cell displays
Overwrite the window on top of destwin. The windows need not be the same size, in which case only the overlapping region is...
Read more >
Overwriting a service in ArcMap
Using ArcCatalog or the Catalog window in ArcMap, you can overwrite an existing ... If you are concerned about clients experiencing downtime, you...
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