brave/brave-browser

chrome.declarativeNetRequest.updateDynamicRules never return on latest Brave (Chromium v114.0)

RealAlphabet opened this issue · 4 comments

Description

chrome.declarativeNetRequest.updateDynamicRules method will never return when you start Brave. You need to restart the extension to make it work.

Steps to Reproduce

  1. Create a basic extension with a background script that do chrome.declarativeNetRequest.updateDynamicRules
  2. Import the extension on Brave with Developer mode.
  3. Restart Brave.
  4. Open the background script and type.
    await chrome.declarativeNetRequest.updateDynamicRules({ removeRuleIds: [ 1337 ] })
    console.log("I'm a hacker.")

Actual result:

After 60 seconds, there is still no output from the console.
image

Expected result:

The console proves that you're a true hacker.

Reproduces how often:

Each time on the latest version of Brave (Chromium v114.0)

Brave version (brave://version info)

1.52.117 Chromium: 114.0.5735.90 (Build officiel) (64 bits)

Version/Channel Information:

Stable

  • Can you reproduce this issue with the current release?
    Yes.

  • Can you reproduce this issue with the beta channel?
    Not tested.

  • Can you reproduce this issue with the nightly channel?
    Not tested.

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields?
    No.

  • Does the issue resolve itself when disabling Brave Rewards?
    No.

  • Is the issue reproducible on the latest version of Chrome?
    No.

Miscellaneous Information:

Nothing.

The minimum reproducible example can be found here.
https://github.com/RealAlphabet/Brave-DRN

WHEN ARE YOU GONNA FIX THIS ISSUE ?? INSTEAD OF ADDING SHITTY "AI ASSISTANTS" AND MORE AND MORE BLOAT

#30854 was a duplicate of this...

Thanks @RealAlphabet - I'll close this as a duplicate of #30854 since there is more information there (more comments, etc). Please subscribe to that issue for updates