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.

iframe.contentWindow evasion can leak Object.apply in stack traces

See original GitHub issue

Similar to #209 there is instances in the wild searching for: Object.apply (<anonymous> in thrown error stack traces.

Real browser:

Error: Failed to execute 'createElement' on 'Document': The tag name provided ([redacted]) is not a valid name.
    at test.js?660921:2

Puppeteer with Extra Stealth 2.6.1

Error: Failed to execute 'createElement' on 'Document': The tag name provided ([redacted]) is not a valid name.
    at Object.apply (<anonymous>:80:31)
    at test.js?103622:2

Second case fails the vendor detection test.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
berstendcommented, Nov 2, 2020

Fixed in puppeteer-extra-plugin-stealth@2.6.5

0reactions
berstendcommented, Sep 30, 2020

Workaround for the time being: Disabling the iframe.contentWindow evasion

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browser still leaking real user agent - javascript - Stack Overflow
This would be a huge problem since sites could evade extensions and deny them access to a sandboxed iframe. This is the error...
Read more >
Detached window memory leaks - web.dev
A memory-heavy document loaded in a window or iframe can be accidentally kept in-memory long after navigating to a new URL. This is...
Read more >
New src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets ...
NET trace 17 // the stack via arguments.caller.callee and Firefox dies if 18 // you try to trace through "use strict" call chains....
Read more >
stealth - Go Packages
Overview. This lib uses stealth-evasions to prevent the bot detection of websites. The examples_test.go shows how to use it. Expand ▾
Read more >
jmolPopup.php - St. Olaf College
NET trace // the stack via arguments.caller.callee and Firefox dies if ... avoid leaks in IE. div = null; })(); /** * Determines...
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