Bug 270327
Summary: | WebExtensionContext::loadDeclarativeNetRequestRules takes 1.54s on the main thread loading Ghostery | ||
---|---|---|---|
Product: | WebKit | Reporter: | Timothy Hatcher <timothy> |
Component: | WebKit Extensions | Assignee: | Rob Hudson <rob_hudson> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | timothy, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Timothy Hatcher
1.54 s 60.2% 0 s WebKit::WebExtensionContext::loadDeclarativeNetRequestRules(WTF::CompletionHandler<void (bool)>&&)::$_3::operator()()
1.24 s 48.5% 0 s +[_WKWebExtensionDeclarativeNetRequestTranslator translateRules:errorStrings:]
715.00 ms 28.0% 0 s -[_WKWebExtensionDeclarativeNetRequestRule ruleInWebKitFormat]
695.00 ms 27.2% 0 s -[_WKWebExtensionDeclarativeNetRequestRule _convertedRulesForWebKitActionType:chromeActionType:]
621.00 ms 24.3% 1.00 ms -[_WKWebExtensionDeclarativeNetRequestRule _webKitRuleWithWebKitActionType:chromeActionType:chromeResourceTypes:]
310.00 ms 12.1% 0 s -[_WKWebExtensionDeclarativeNetRequestRule _regexURLFilterForChromeURLFilter:]
113.00 ms 4.4% 0 s WebKit::escapeCharactersInString(NSString*, NSString*)
109.00 ms 4.2% 0 s -[_WKWebExtensionDeclarativeNetRequestRule _convertedResourceTypesForChromeResourceTypes:]
We should move the _WKWebExtensionDeclarativeNetRequestTranslator work off the main thread into a background queue.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/123867301>
Rob Hudson
Pull request: https://github.com/WebKit/WebKit/pull/25743
EWS
Committed 275952@main (cedd7cbe9803): <https://commits.webkit.org/275952@main>
Reviewed commits have been landed. Closing PR #25743 and removing active labels.