Changeset 229588 in webkit


Ignore:
Timestamp:
Mar 13, 2018 2:42:08 PM (6 years ago)
Author:
BJ Burg
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):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r229583 r229588  
     12018-03-13  Brian Burg  <bburg@apple.com>
     2
     3        [WK2] Web Inspector: NavigationAction for opening a link in a new tab should have a UserGestureIndicator
     4        https://bugs.webkit.org/show_bug.cgi?id=183612
     5        <rdar://problem/38388641>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        The current gesture token will be attached to the NavigationAction at construction time,
     10        so set up a UserGestureIndicator when creating the action and sending it out.
     11
     12        * WebProcess/WebPage/WebInspector.cpp:
     13        (WebKit::WebInspector::openInNewTab):
     14
    1152018-03-13  Dean Jackson  <dino@apple.com>
    216
  • trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp

    r228893 r229588  
    146146void WebInspector::openInNewTab(const String& urlString)
    147147{
     148    UserGestureIndicator indicator { ProcessingUserGesture };
     149
    148150    Page* inspectedPage = m_page->corePage();
    149151    if (!inspectedPage)
Note: See TracChangeset for help on using the changeset viewer.