Changeset 270593 in webkit
- Timestamp:
- Dec 9, 2020, 11:58:30 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/PDF/WKPDFHUDView.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r270591 r270593 1 2020-12-09 Alex Christensen <achristensen@webkit.org> 2 3 Fix clicking on links in PDFs on Big Sur after r266654 4 https://bugs.webkit.org/show_bug.cgi?id=219665 5 <rdar://problem/72080683> 6 7 Reviewed by Tim Horton. 8 9 mouseUp: was being called by AppKit on the WKPDFHUDView instead of the WKWebView, causing the event to not make it to the PDFPlugin, 10 which meant PDFKit wasn't being told it was clicked on, which means it wasn't telling WebKit to change the frame's location. 11 Overriding hitTest to forward all mouse events to the WKWebView solves this problem. 12 13 Covered by the WebKit.PDFLinkReferrer API test, which was failing on Big Sur, where ENABLE(UI_PROCESS_PDF_HUD) is true. 14 15 * UIProcess/PDF/WKPDFHUDView.mm: 16 (-[WKPDFHUDView hitTest:]): 17 1 18 2020-12-09 Wenson Hsieh <wenson_hsieh@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/PDF/WKPDFHUDView.mm
r266654 r270593 29 29 #if ENABLE(UI_PROCESS_PDF_HUD) 30 30 31 #import "WKWebViewInternal.h" 31 32 #import "WebPageProxy.h" 32 33 #import <QuartzCore/CATransaction.h> … … 161 162 } 162 163 164 - (NSView *)hitTest:(NSPoint)point 165 { 166 if (_page) 167 return fromWebPageProxy(*_page); 168 169 ASSERT_NOT_REACHED(); 170 return self; 171 } 172 163 173 - (void)mouseMoved:(NSEvent *)event 164 174 {
Note:
See TracChangeset
for help on using the changeset viewer.