Bug 308776
| Summary: | Move dataURL creation in tabsCaptureVisibleTab to background thread | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ben Nham <nham> |
| Component: | WebKit Extensions | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ben Nham
<rdar://problem/170628256>
Ben Nham
Pull request: https://github.com/WebKit/WebKit/pull/59535
EWS
Committed 308309@main (00af076154b0): <https://commits.webkit.org/308309@main>
Reviewed commits have been landed. Closing PR #59535 and removing active labels.