⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176678 in webkit


Ignore:
Timestamp:
Dec 2, 2014, 11:34:27 AM (12 years ago)
Author:
timothy_horton@apple.com
Message:

TextIndicator can get stuck (especially if we don't get LUNotificationPopoverWillClose when we should)
https://bugs.webkit.org/show_bug.cgi?id=139175
<rdar://problem/19072236>

Reviewed by Beth Dakin.

  • UIProcess/API/mac/WKView.mm:

(-[WKView scrollWheel:]):
(-[WKView mouseDown:]):
Work around <rdar://problem/19086993> by always explicitly clearing the
active text indicator in mouseDown: and scrollWheel:.
This way, even if you manage to get a text indicator that outlives the
Look Up popover (or find-in-page, or whatever), it will be dismissed
by clicking or scrolling the view.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176670 r176678  
     12014-12-02  Tim Horton  <timothy_horton@apple.com>
     2
     3        TextIndicator can get stuck (especially if we don't get LUNotificationPopoverWillClose when we should)
     4        https://bugs.webkit.org/show_bug.cgi?id=139175
     5        <rdar://problem/19072236>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * UIProcess/API/mac/WKView.mm:
     10        (-[WKView scrollWheel:]):
     11        (-[WKView mouseDown:]):
     12        Work around <rdar://problem/19086993> by always explicitly clearing the
     13        active text indicator in mouseDown: and scrollWheel:.
     14        This way, even if you manage to get a text indicator that outlives the
     15        Look Up popover (or find-in-page, or whatever), it will be dismissed
     16        by clicking or scrolling the view.
     17
    1182014-12-02  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm

    r176613 r176678  
    12101210        return;
    12111211
     1212    // Work around <rdar://problem/19086993> by always clearing the active text indicator on scroll.
     1213    [self _setTextIndicator:nullptr fadeOut:NO];
     1214
    12121215    if (_data->_allowsBackForwardNavigationGestures) {
    12131216        [self _ensureGestureController];
     
    12571260    [self _setMouseDownEvent:event];
    12581261    _data->_ignoringMouseDraggedEvents = NO;
     1262
     1263    // Work around <rdar://problem/19086993> by always clearing the active text indicator on mouseDown.
     1264    [self _setTextIndicator:nullptr fadeOut:NO];
    12591265#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
    12601266    [_data->_actionMenuController wkView:self willHandleMouseDown:event];
Note: See TracChangeset for help on using the changeset viewer.