Title: [176707] trunk/Source/WebKit2
- Revision
- 176707
- Author
- [email protected]
- Date
- 2014-12-02 18:57:05 -0800 (Tue, 02 Dec 2014)
Log 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.
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (176706 => 176707)
--- trunk/Source/WebKit2/ChangeLog 2014-12-03 02:02:36 UTC (rev 176706)
+++ trunk/Source/WebKit2/ChangeLog 2014-12-03 02:57:05 UTC (rev 176707)
@@ -1,3 +1,14 @@
+2014-12-02 Conrad Shultz <[email protected]>
+
+ 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.
+
2014-12-02 Timothy Horton <[email protected]>
Fix the build.
Modified: trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm (176706 => 176707)
--- trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm 2014-12-03 02:02:36 UTC (rev 176706)
+++ trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm 2014-12-03 02:57:05 UTC (rev 176707)
@@ -442,7 +442,9 @@
return;
RefPtr<WebHitTestResult> hitTestResult = [self _webHitTestResult];
- [_previewPopover showRelativeToRect:_popoverOriginRect ofView:_wkView preferredEdge:NSMaxYEdge];
+ dispatch_async(dispatch_get_main_queue(), ^{
+ [_previewPopover showRelativeToRect:_popoverOriginRect ofView:_wkView preferredEdge:NSMaxYEdge];
+ });
}
- (void)_createPreviewPopover
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes