declarativeNetRequest: Some methods missing await
in the Syntax code
#37866
Labels
Content:WebExt
WebExtensions docs
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
MDN URL
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/declarativeNetRequest/getDynamicRules
What specific section or headline is this issue about?
Syntax
What information was incorrect, unhelpful, or incomplete?
The issue is obseerved on multiple pages:
declarativeNetRequest.getDynamicRules
declarativeNetRequest.getMatchedRules
declarativeNetRequest.isRegexSupported
declarativeNetRequest.setExtensionActionOptions
declarativeNetRequest.updateDynamicRules
declarativeNetRequest.updateSessionRules
declarativeNetRequest.updateSessionRules
declarativeNetRequest.updateStaticRules
Example:
Other methods show the code with
await
(as it should) e.g. declarativeNetRequest.getAvailableStaticRuleCountWhat did you expect to see?
As they return a promise, the code should have
await
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
The text was updated successfully, but these errors were encountered: