Changeset 219973 in webkit
- Timestamp:
- Jul 26, 2017, 6:49:44 PM (8 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r219966 r219973 1 2017-07-26 Tim Horton <timothy_horton@apple.com> 2 3 REGRESSION (r211160): Can't pinch to zoom unlocked encrypted PDFs in WKWebView 4 https://bugs.webkit.org/show_bug.cgi?id=174881 5 <rdar://problem/33556312> 6 7 Reviewed by Andy Estes. 8 9 * UIProcess/API/Cocoa/WKWebView.mm: 10 (-[WKWebView _hidePasswordView]): 11 WKPasswordView saves and restores a bunch of scroll view properties, including 12 those relating to zoom limits. The restoration happens in -[WKPasswordView hide], 13 which is never called. Instead, the code added in r211160 just calls 14 removeFromSuperview after unlocking, never restoring the old zoom limits, 15 causing the then fully unlocked PDF to not be zoomable. Fix this by calling 16 -hide instead of -removeFromSuperview (which -hide also calls). 17 1 18 2017-07-26 Brady Eidson <beidson@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm
r219768 r219973 2696 2696 2697 2697 self._currentContentView.hidden = NO; 2698 [_passwordView removeFromSuperview];2698 [_passwordView hide]; 2699 2699 _passwordView = nil; 2700 2700 }
Note:
See TracChangeset
for help on using the changeset viewer.