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

MV3 extension cannot apply rules to about:blank iframes #2975

Open
3 tasks done
AdamWr opened this issue Sep 30, 2024 · 0 comments
Open
3 tasks done

MV3 extension cannot apply rules to about:blank iframes #2975

AdamWr opened this issue Sep 30, 2024 · 0 comments

Comments

@AdamWr
Copy link
Member

AdamWr commented Sep 30, 2024

Please answer the following questions for yourself before submitting an issue

  • Filters were updated before reproducing an issue
  • I checked the knowledge base and found no answer
  • I checked to make sure that this issue has not already been filed

AdGuard Extension version

5.0.113

Browser version

Chrome 129

OS version

Windows 11

Ad Blocking

AdGuard Base filter

Privacy

No response

Social

No response

Annoyances

No response

Security

No response

Other

No response

Language-specific

No response

What Tracking protection options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Add this rule:
example.org#%#alert(document.URL);
  1. Go to - https://example.org/
  2. Open browser console and run:
(()=>{const frame=document.createElement('iframe');document.body.appendChild(frame)})();

Expected Behavior

There should be 2 alerts displayed.
First when example.org website is opened, then second after executing script to create iframe.

Actual Behavior

Content script is not injected into about:blank iframe, so only one alert is displayed.

Screenshots

Video
2024-09-30.09-44-35.mp4

Additional Information

It's related to this issue - AdguardTeam/AdguardFilters#189789
As far as I understand, in this case rules are not injected into about:blank iframe, so video ads are not blocked by a rule which works in 4.4.22 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@maximtop @AdamWr @adguard-bot and others