[Webkit-unassigned] [Bug 257858] New: getMatchedRules() from declarativeNetRequest not displaying the MatchedRule with the ruleId and rulesetId
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 8 11:10:03 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=257858
Bug ID: 257858
Summary: getMatchedRules() from declarativeNetRequest not
displaying the MatchedRule with the ruleId and
rulesetId
Product: WebKit
Version: Safari 16
Hardware: Mac (Apple Silicon)
OS: macOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: WebKit Extensions
Assignee: webkit-unassigned at lists.webkit.org
Reporter: b.gill.messages at icloud.com
CC: timothy at apple.com
When using getMatchedRules() from declarativeNetRequest
(https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#method-getMatchedRules), the item that is returned contains a "url" field instead of the MatchedRules object which should contain a ruleId and rulesetId:
https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/#type-MatchedRule
This is an example of what is returned:
rulesMatchedInfo: [
{
request: {url: "https://example.com"}
tabId: 2
timeStamp: 1686247475669.134
}
]
As shown above, it only has the "url", not the rule.
The changelog states that for Safari 16.4 getMatchedRules() "fixed result of getMatchedRules() to match other browsers" (https://webkit.org/blog/13966/webkit-features-in-safari-16-4/), however this still doesn't seem to return the same thing that other browsers do.
getMatchedRules() does not give the rule that was matched. It doesn't have the rule ID that was used (e.g. 1, 5, etc), and it does not have the ruleset ID (i.e. the id of the static rules file if it was from the static rules, or if it was a session rule: "_session", or if it was from the dynamic rules: "_dynamic").
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230608/d721c107/attachment.htm>
More information about the webkit-unassigned
mailing list