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.

Proxy's iframe element takes place in DOM

See original GitHub issue

When calling proxy method, the injected iframe element still takes place in DOM, I see the current hiding method is using the next props for the iframe’s style -

width: 0;
height: 0;
border: none;

(inside proxy function) Screen Shot 2022-12-22 at 11 49 12

Using display: none; instead solves the problem for me, but I’m still trying to figure out if it can mess up any other functionality and if so, is there another solution?

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jcubiccommented, Dec 22, 2022

@ballonura by style object if you mean style tag: <style></style> then I would prefer to not include additional DOM elements, we have only a single iframe tag. But maybe if users will use more than one iframe that will make sense.

0reactions
RoniGordincommented, Dec 25, 2022

Should be fixed now

Tested now, looks perfect Thank you so much! 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

4.8.2 The iframe element — HTML5 - W3C
When an iframe element is first inserted into a document, the user agent must create a nested browsing context, and then process the...
Read more >
How can I access the contents of an iframe with JavaScript ...
My solution was to use a proxy: feed the HTML in the IFRAME verbatim through my own site so it's no longer cross-site...
Read more >
HTMLIFrameElement - Web APIs | MDN
Chrome Edge HTMLIFrameElement Full support. Chrome1. Toggle history Full support. Edge12. Toggle... align. Deprecated Full support. Chrome1. Toggle history Full support. Edge12. Toggle... allow Full support....
Read more >
Chapter 5. Cross-domain iframe messaging - Third-Party ...
A DOM element where easyXDM should place the swf object. Both. lazy, Set to true if you want to delay the iframe creation...
Read more >
iFrames in Selenium WebDriver - Tools QA
To work with different nested iframes, we can use the method switchTo() to switch the frames using Index, Name, or Id & Web...
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