Changeset 219973 in webkit


Ignore:
Timestamp:
Jul 26, 2017, 6:49:44 PM (8 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION (r211160): Can't pinch to zoom unlocked encrypted PDFs in WKWebView
https://bugs.webkit.org/show_bug.cgi?id=174881
<rdar://problem/33556312>

Reviewed by Andy Estes.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _hidePasswordView]):
WKPasswordView saves and restores a bunch of scroll view properties, including
those relating to zoom limits. The restoration happens in -[WKPasswordView hide],
which is never called. Instead, the code added in r211160 just calls
removeFromSuperview after unlocking, never restoring the old zoom limits,
causing the then fully unlocked PDF to not be zoomable. Fix this by calling
-hide instead of -removeFromSuperview (which -hide also calls).

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r219966 r219973  
     12017-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
    1182017-07-26  Brady Eidson  <beidson@apple.com>
    219
  • trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm

    r219768 r219973  
    26962696
    26972697    self._currentContentView.hidden = NO;
    2698     [_passwordView removeFromSuperview];
     2698    [_passwordView hide];
    26992699    _passwordView = nil;
    27002700}
Note: See TracChangeset for help on using the changeset viewer.