Returns all the rules matched for the extension. Callers can filter the list of matched rules by specifying a
filter. This method is only available to extensions with the
"declarativeNetRequestFeedback" permission or that have the
"activeTab" permission granted for the
tabId specified in
filter. Rules not associated with an active document that were matched more than five minutes ago are not returned.
let gettingMatchedRules = browser.declarativeNetRequest.getMatchedRules( filter // object );
An object to filter the list of matched rules.
Promise that fulfills with an object with these properties:
declarativeNetRequest.MatchedRule. Details of a matched rule.
tabIdof the tab the request originated from if the tab is still active. Otherwise,
If no rules are matched, the object is empty. If the request fail, the promise is rejected with an error message
BCD tables only load in the browser