Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Rules are not enforcing

348 views
Skip to first unread message

subham mahesh

unread,
Oct 7, 2024, 1:58:10 AM10/7/24
to Chromium Extensions
 Google Chrome version 129.0.6668.90
hello look like there is bug iam working on extension that remove parameter for url l observed chrome static rule and dynamic rules not all rules are enforced 
even though i donot reached quote of 30000 for static rule and 5000 static rules
please note that each rule contain 10 or 20 parameter 

Oliver Dunk

unread,
Oct 7, 2024, 9:50:17 AM10/7/24
to subham mahesh, Chromium Extensions
Hi Subham,

Would you be able to share a sample extension where not all of the rules are working?

There are many reasons why this can happen (for example, missing host permissions) and without seeing the extension it's hard to be sure what is happening. It is always possible there's a bug, but we do have lots of other extensions using the API and I haven't heard of anything similar in 129 yet :)

Thanks,
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/ba165d07-a1c9-47a6-b43a-30101e560b3fn%40chromium.org.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

subham mahesh

unread,
Oct 8, 2024, 8:33:22 AM10/8/24
to Chromium Extensions, Oliver Dunk, Chromium Extensions, subham mahesh

Subject: Inconsistent Enforcement of Declarative Net Request Rules - Test Extension Available

Dear Oliver Duck and the Chromium team,

I hope this email finds you well. Thank you for your responsiveness regarding the Declarative Net Request (DNR) rules issue. I've prepared a demonstration extension to illustrate that not all DNR rules are being enforced consistently.

Key Points:

  1. Test Extension: https://github.com/subham8907/test
  2. Installation: To reproduce the problem, please install the attached extension in a Chromium-based browser.
  3. Testing Process: a. After installation, you can use your own prepared URL links to test the enforcement of rules. b. I've also included some sample URLs for testing in the extension.
  4. Issue Description: You'll notice that not all DNR rules are being enforced as expected.
  5. Reproduction Steps: a. Install the test extension b. Use the provided test URLs that should trigger all DNR rules c. Observe that some rules are not enforced as expected
  6. Test URLs: Below are example URLs for each rule specified in the extension. These URLs contain tracking parameters that should be removed according to the DNR rules:
    1. MSN: https://www.msn.com/en-us/news/technology/article?cvid=123&ocid=456
    2. Amazon: https://www.amazon.com/product?pd_rd=123&pf_rd=456&qid=789&sr=0-1&keywords=example&linkCode=ll1&tag=sample-20&linkId=1234567890abcdef&language=en_US&ref_=as_li_ss_tl
    3. Google: https://www.google.com/search?q=example&ei=123&ved=456&uact=5&oq=example&gs_lcp=789&sourceid=chrome&ie=UTF-8
    4. X (Twitter): https://x.com/username/status/123456?s=20&t=abcdef&ref_src=twsrc
    5. Twitter (legacy): https://twitter.com/username/status/123456?s=20&t=abcdef&ref_src=twsrc
    6. Netflix: https://www.netflix.com/browse?trackId=123456&tctx=789
    7. TechCrunch: https://techcrunch.com/2023/10/08/article-title/?ncid=123&sr=456&sr_share=twitter
    8. Bing: https://www.bing.com/search?q=example&form=QBLH&sp=-1&sc=10-0&qs=n&sk=&cvid=123456789
    9. DuckDuckGo: https://duckduckgo.com/?q=example&t=h_&ia=web
    10. Facebook: https://www.facebook.com/story.php?story_fbid=123&id=456&mibextid=Nif5oz&hc_location=ufi
    11. General (with UTM and various tracking parameters): https://example.com/page?utm_source=newsletter&utm_medium=email&utm_campaign=spring2023&fbclid=123&gclid=abc&_ga=1.123456789.987654321&_gl=1*abcdef*_ga*

These URLs should have their respective tracking parameters removed when the DNR rules are properly enforced. Please test each URL to verify the behavior of the corresponding rule.

I would greatly appreciate if you could investigate this issue and provide any insights or potential solutions.

Thank you for your time and attention to this matter. I'm looking forward to your response and am available to provide any additional information or clarification you might need.

subham mahesh

unread,
Oct 8, 2024, 10:37:03 PM10/8/24
to Chromium Extensions, subham mahesh, Oliver Dunk, Chromium Extensions
Hello chromium team and google please look into it

Oliver Dunk

unread,
Oct 17, 2024, 11:57:59 AM10/17/24
to subham mahesh, Chromium Extensions
Hi Subham,

Apologies for the delay here. I really appreciate you taking the time to share that code.

It does actually seem like some of the `urlFilter` conditions aren't matching when I'd expect them to. I haven't figured out more than that yet, but it does seem likely that there's a bug here.

If you have a moment, I'd encourage you to consider filing something at https://crbug.com.

I'll definitely be taking a look as well though and I'll keep you posted.

Thanks,
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB

subham mahesh

unread,
Oct 17, 2024, 1:18:51 PM10/17/24
to Oliver Dunk, Chromium Extensions
  "I reported this bug on crbug (issue #374010065). Could you please report this to the Google Chromium team? I'm not familiar with the crbug system, so I'd like to ensure the issue is properly addressed. This bug has been open for nearly a year without a resolution."  
Reply all
Reply to author
Forward
0 new messages