Changeset 180782 in webkit


Ignore:
Timestamp:
Feb 27, 2015 2:45:33 PM (9 years ago)
Author:
Beth Dakin
Message:

Lookup panel dismisses when pages are loading in other tabs/windows
https://bugs.webkit.org/show_bug.cgi?id=142104
-and corresponding-
rdar://problem/19882137

Reviewed by Tim Horton.

Until rdar://problem/13875766 is resolved, we should only call into Lookup and
DataDetectors for key windows.

  • UIProcess/API/mac/WKView.mm:

(-[WKView _dismissContentRelativeChildWindows]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r180773 r180782  
     12015-02-27  Beth Dakin  <bdakin@apple.com>
     2
     3        Lookup panel dismisses when pages are loading in other tabs/windows
     4        https://bugs.webkit.org/show_bug.cgi?id=142104
     5        -and corresponding-
     6        rdar://problem/19882137
     7
     8        Reviewed by Tim Horton.
     9
     10        Until rdar://problem/13875766 is resolved, we should only call into Lookup and
     11        DataDetectors for key windows.
     12        * UIProcess/API/mac/WKView.mm:
     13        (-[WKView _dismissContentRelativeChildWindows]):
     14
    1152015-02-27  Anders Carlsson  <andersca@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r180768 r180782  
    44094409{
    44104410    // FIXME: We don't know which panel we are dismissing, it may not even be in the current page (see <rdar://problem/13875766>).
    4411     if (Class lookupDefinitionModuleClass = getLULookupDefinitionModuleClass())
    4412         [lookupDefinitionModuleClass hideDefinition];
    4413 
    4414     DDActionsManager *actionsManager = [getDDActionsManagerClass() sharedManager];
    4415     if ([actionsManager respondsToSelector:@selector(requestBubbleClosureUnanchorOnFailure:)])
    4416         [actionsManager requestBubbleClosureUnanchorOnFailure:YES];
     4411    if ([[self window] isKeyWindow]) {
     4412        if (Class lookupDefinitionModuleClass = getLULookupDefinitionModuleClass())
     4413            [lookupDefinitionModuleClass hideDefinition];
     4414
     4415        DDActionsManager *actionsManager = [getDDActionsManagerClass() sharedManager];
     4416        if ([actionsManager respondsToSelector:@selector(requestBubbleClosureUnanchorOnFailure:)])
     4417            [actionsManager requestBubbleClosureUnanchorOnFailure:YES];
     4418    }
    44174419
    44184420    [self _setTextIndicator:nullptr fadeOut:NO];
Note: See TracChangeset for help on using the changeset viewer.