Bug 308776

Summary: Move dataURL creation in tabsCaptureVisibleTab to background thread
Product: WebKit Reporter: Ben Nham <nham>
Component: WebKit ExtensionsAssignee: Ben Nham <nham>
Status: RESOLVED FIXED    
Severity: Normal CC: timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Ben Nham
Reported 2026-02-26 14:04:25 PST
A significant number of MobileSafari hangs in telemetry are coming from the creation of the data url for the snapshotted tab in WebExtensionContext::tabsCaptureVisibleTab. Creating the data URL involves both encoding the snapshot as a PNG and turning it in to a data URL and this blocks the main thread of MobileSafari. Move this work to a background thread instead.
Attachments
Ben Nham
Comment 1 2026-02-26 14:04:48 PST
Ben Nham
Comment 2 2026-02-26 14:05:59 PST
EWS
Comment 3 2026-02-26 16:21:16 PST
Committed 308309@main (00af076154b0): <https://commits.webkit.org/308309@main> Reviewed commits have been landed. Closing PR #59535 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.