Skip to content

declarativeNetRequest: Some methods missing await in the Syntax code #37866

Open
@erosman

Description

@erosman

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:

let gettingDynamicRules = browser.declarativeNetRequest.getDynamicRules();

Other methods show the code with await (as it should) e.g. declarativeNetRequest.getAvailableStaticRuleCount

let count = await browser.declarativeNetRequest.getAvailableStaticRuleCount();

What 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions