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

Changeset 176707 in webkit


Ignore:
Timestamp:
Dec 2, 2014, 6:57:05 PM (12 years ago)
Author:
Conrad Shultz
Message:

Don't block menu highlighting when presenting a page preview
https://bugs.webkit.org/show_bug.cgi?id=139217

Reviewed by Tim Horton.

  • UIProcess/mac/WKActionMenuController.mm:

(-[WKActionMenuController _previewURLFromActionMenu:]):
Defer popover presentation to the next turn of the runloop.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176703 r176707  
     12014-12-02  Conrad Shultz  <conrad_shultz@apple.com>
     2
     3        Don't block menu highlighting when presenting a page preview
     4        https://bugs.webkit.org/show_bug.cgi?id=139217
     5
     6        Reviewed by Tim Horton.
     7
     8        * UIProcess/mac/WKActionMenuController.mm:
     9        (-[WKActionMenuController _previewURLFromActionMenu:]):
     10        Defer popover presentation to the next turn of the runloop.
     11
    1122014-12-02  Timothy Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm

    r176691 r176707  
    443443
    444444    RefPtr<WebHitTestResult> hitTestResult = [self _webHitTestResult];
    445     [_previewPopover showRelativeToRect:_popoverOriginRect ofView:_wkView preferredEdge:NSMaxYEdge];
     445    dispatch_async(dispatch_get_main_queue(), ^{
     446        [_previewPopover showRelativeToRect:_popoverOriginRect ofView:_wkView preferredEdge:NSMaxYEdge];
     447    });
    446448}
    447449
Note: See TracChangeset for help on using the changeset viewer.