Title: [229588] trunk/Source/WebKit
- Revision
- 229588
- Author
- bb...@apple.com
- Date
- 2018-03-13 14:42:08 -0700 (Tue, 13 Mar 2018)
Log Message
[WK2] Web Inspector: NavigationAction for opening a link in a new tab should have a UserGestureIndicator
https://bugs.webkit.org/show_bug.cgi?id=183612
<rdar://problem/38388641>
Reviewed by Timothy Hatcher.
The current gesture token will be attached to the NavigationAction at construction time,
so set up a UserGestureIndicator when creating the action and sending it out.
* WebProcess/WebPage/WebInspector.cpp:
(WebKit::WebInspector::openInNewTab):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (229587 => 229588)
--- trunk/Source/WebKit/ChangeLog 2018-03-13 21:14:13 UTC (rev 229587)
+++ trunk/Source/WebKit/ChangeLog 2018-03-13 21:42:08 UTC (rev 229588)
@@ -1,3 +1,17 @@
+2018-03-13 Brian Burg <bb...@apple.com>
+
+ [WK2] Web Inspector: NavigationAction for opening a link in a new tab should have a UserGestureIndicator
+ https://bugs.webkit.org/show_bug.cgi?id=183612
+ <rdar://problem/38388641>
+
+ Reviewed by Timothy Hatcher.
+
+ The current gesture token will be attached to the NavigationAction at construction time,
+ so set up a UserGestureIndicator when creating the action and sending it out.
+
+ * WebProcess/WebPage/WebInspector.cpp:
+ (WebKit::WebInspector::openInNewTab):
+
2018-03-13 Dean Jackson <d...@apple.com>
WKSystemPreviewView needs to implement some of UIScrollViewDelegate
Modified: trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp (229587 => 229588)
--- trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp 2018-03-13 21:14:13 UTC (rev 229587)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp 2018-03-13 21:42:08 UTC (rev 229588)
@@ -145,6 +145,8 @@
void WebInspector::openInNewTab(const String& urlString)
{
+ UserGestureIndicator indicator { ProcessingUserGesture };
+
Page* inspectedPage = m_page->corePage();
if (!inspectedPage)
return;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes