declarativeNetRequest.MatchedRule

An object describing the matched rule. This type may be returned by the declarativeNetRequest.getMatchedRules or declarativeNetRequest.testMatchOutcome methods, or observed through the declarativeNetRequest.onRuleMatchedDebug event.

Type

Values of this type are objects. They contain these properties:

extensionId

A string. The ID of the extension, if this rule belongs to a different extension. This property is only available when used with declarativeNetRequest.testMatchOutcome, with the includeOtherExtensions option set to true.

ruleId

A number. The matching rule's ID.

rulesetId

A string. The ID of the ruleset this rule belongs to. The value returned is:

Browser compatibility

BCD tables only load in the browser