Changeset 180293 in webkit


Ignore:
Timestamp:
Feb 18, 2015 2:15:44 PM (9 years ago)
Author:
Beth Dakin
Message:

iBooks immediate action blacklist should not even create the gesture recognizer
https://bugs.webkit.org/show_bug.cgi?id=141768
-and corresponding-
rdar://problem/19806770

Reviewed by Tim Horton.

Move the runtime-application check to the point where the gesture recognizer is
created so that we can avoid doing so.

  • UIProcess/API/mac/WKView.mm:

(-[WKView initWithFrame:processPool:configuration:webView:]):

  • UIProcess/mac/WKImmediateActionController.mm:

(-[WKImmediateActionController _updateImmediateActionItem]):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r180281 r180293  
     12015-02-18  Beth Dakin  <bdakin@apple.com>
     2
     3        iBooks immediate action blacklist should not even create the gesture recognizer
     4        https://bugs.webkit.org/show_bug.cgi?id=141768
     5        -and corresponding-
     6        rdar://problem/19806770
     7
     8        Reviewed by Tim Horton.
     9
     10        Move the runtime-application check to the point where the gesture recognizer is
     11        created so that we can avoid doing so.
     12        * UIProcess/API/mac/WKView.mm:
     13        (-[WKView initWithFrame:processPool:configuration:webView:]):
     14        * UIProcess/mac/WKImmediateActionController.mm:
     15        (-[WKImmediateActionController _updateImmediateActionItem]):
     16
    1172015-02-18  Chris Dumez  <cdumez@apple.com>
    218
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r180088 r180293  
    9696#import <WebCore/PlatformScreen.h>
    9797#import <WebCore/Region.h>
     98#import <WebCore/RuntimeApplicationChecks.h>
    9899#import <WebCore/SharedBuffer.h>
    99100#import <WebCore/SoftLinking.h>
     
    36353636    }
    36363637
    3637     if (Class gestureClass = NSClassFromString(@"NSImmediateActionGestureRecognizer")) {
     3638    // FIXME: We should not permanently disable this for iBooks. rdar://problem/19585689
     3639    Class gestureClass = NSClassFromString(@"NSImmediateActionGestureRecognizer");
     3640    if (gestureClass && !applicationIsIBooks()) {
    36383641        _data->_immediateActionGestureRecognizer = adoptNS([(NSImmediateActionGestureRecognizer *)[gestureClass alloc] initWithTarget:nil action:NULL]);
    36393642        _data->_immediateActionController = adoptNS([[WKImmediateActionController alloc] initWithPage:*_data->_page view:self recognizer:_data->_immediateActionGestureRecognizer.get()]);
  • trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm

    r180242 r180293  
    4141#import <WebCore/NSPopoverSPI.h>
    4242#import <WebCore/QuickLookMacSPI.h>
    43 #import <WebCore/RuntimeApplicationChecks.h>
    4443#import <WebCore/SoftLinking.h>
    4544#import <WebCore/URL.h>
     
    285284    id customClientAnimationController = [_wkView _immediateActionAnimationControllerForHitTestResult:toAPI(hitTestResult.get()) withType:_type userData:toAPI(_userData.get())];
    286285
    287     // FIXME: We should not permanently disable this for iBooks. rdar://problem/19585689
    288     if (customClientAnimationController == [NSNull null] || applicationIsIBooks()) {
     286    if (customClientAnimationController == [NSNull null]) {
    289287        [self _cancelImmediateAction];
    290288        return;
Note: See TracChangeset for help on using the changeset viewer.