Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 10ce6abfd3467908a62bf2d8ab1e57ac4b356a28 https://github.com/WebKit/WebKit/commit/10ce6abfd3467908a62bf2d8ab1e57ac4b356a28 Author: Brian Weinstein <bweinst...@apple.com> Date: 2023-11-28 (Tue, 28 Nov 2023)
Changed paths: M Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm M Source/WebKit/UIProcess/Extensions/Cocoa/_WKWebExtensionDeclarativeNetRequestRule.mm M Source/WebKit/UIProcess/Extensions/WebExtensionContext.h Log Message: ----------- Avoid compiling rules every time the extension is loaded if the rules haven't changed https://bugs.webkit.org/show_bug.cgi?id=265473 rdar://118839289 Reviewed by Timothy Hatcher. * Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionContextCocoa.mm: (WebKit::WebExtensionContext::declarativeNetRequestRuleStore): (WebKit::computeStringHashForContentBlockerRules): Compute the hash for these content blocker rules, making sure to append the current version of the rule translator, so when it is updated, rules will be re-compiled. (WebKit::WebExtensionContext::compileDeclarativeNetRequestRules): Before compiling the rule, perform a lookup and check the hash. * Source/WebKit/UIProcess/Extensions/Cocoa/_WKWebExtensionDeclarativeNetRequestRule.mm: * Source/WebKit/UIProcess/Extensions/WebExtensionContext.h: Canonical link: https://commits.webkit.org/271248@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes