Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically added iframes are not monetized #842

Open
sidvishnoi opened this issue Jan 17, 2025 · 0 comments
Open

Dynamically added iframes are not monetized #842

sidvishnoi opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@sidvishnoi
Copy link
Member

sidvishnoi commented Jan 17, 2025

  1. Visit a non-monetized website.
  2. Run following script in console:
       setTimeout(() => {
         const iframe = document.createElement('iframe');
         iframe.src = 'https://sidvishnoi.com/test/wm';
         iframe.allow = 'monetization';
         document.body.append(iframe);
       }, 3000);

Site does not become monetized 3 seconds later. But if same iframe is added before extension runs, site is monetized. I expect iframes often to be injected via scripts, so this (monitoring iframes added) should be supported.

Found when adding E2E tests with iframes - testing with playground not possible without this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants