Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 00af076154b0302e1dc1a3be5e5e5ad5177b297b
      
https://github.com/WebKit/WebKit/commit/00af076154b0302e1dc1a3be5e5e5ad5177b297b
  Author: Ben Nham <[email protected]>
  Date:   2026-02-26 (Thu, 26 Feb 2026)

  Changed paths:
    M 
Source/WebKit/UIProcess/Extensions/Cocoa/API/WebExtensionContextAPITabsCocoa.mm

  Log Message:
  -----------
  Move dataURL creation in tabsCaptureVisibleTab to background thread
https://bugs.webkit.org/show_bug.cgi?id=308776
rdar://170628256

Reviewed by Timothy Hatcher.

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 on 
the main thread.
Move this work to a background thread instead.

* 
Source/WebKit/UIProcess/Extensions/Cocoa/API/WebExtensionContextAPITabsCocoa.mm:
(WebKit::WebExtensionContext::tabsCaptureVisibleTab):

Canonical link: https://commits.webkit.org/308309@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to