Bug 269149

Summary: [UnifiedPDF] Selections should no longer be tracked when window loses focus
Product: WebKit Reporter: Abrar Rahman Protyasha <a_protyasha>
Component: PDFAssignee: Abrar Rahman Protyasha <a_protyasha>
Status: RESOLVED FIXED    
Severity: Normal CC: a_protyasha, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Reproduction in MiniBrowser none

Description Abrar Rahman Protyasha 2024-02-10 16:06:56 PST
Created attachment 469809 [details]
Reproduction in MiniBrowser

When the window loses focus, we should stop tracking existing selections. Right now this behavior manifests itself in us accidentally extending selections once we click on the PDF while a separate window is active. Refer to the attached repro video.
Comment 1 Radar WebKit Bug Importer 2024-02-10 16:07:05 PST
<rdar://problem/122722850>
Comment 2 Abrar Rahman Protyasha 2024-02-10 23:52:10 PST
Pull request: https://github.com/WebKit/WebKit/pull/24226
Comment 3 EWS 2024-02-11 02:26:17 PST
Committed 274441@main (8250b6757382): <https://commits.webkit.org/274441@main>

Reviewed commits have been landed. Closing PR #24226 and removing active labels.