This is a minimal reproducible example of the following Brave Browser
issue. brave/brave-browser#30785.
- Activate developer mode in the Brave extensions panel.
- Load the extension by dragging the folder onto the extensions page.
- Restart Brave.
- Open the extension worker service devtools.
- Type the following.
await chrome.declarativeNetRequest.updateDynamicRules({ removeRuleIds: [ 1337 ] }) console.log("I'm a hacker.")
"I'm a hacker"
Promise will never be resolved or rejected.