Changeset 259665 in webkit


Ignore:
Timestamp:
Apr 7, 2020 1:07:46 PM (4 years ago)
Author:
BJ Burg
Message:

Web Automation: Automation.inspectBrowsingContext should bring Web Inspector to front automatically
https://bugs.webkit.org/show_bug.cgi?id=210137

Reviewed by Joseph Pecoraro.

  • UIProcess/Automation/mac/WebAutomationSessionMac.mm:

(WebKit::WebAutomationSession::inspectBrowsingContext):
Previously, calling connect() would preload Web Inspector but not show its window. This
made it awkward to use the 'safari:automaticInspection' capability without subsequently
evaluating a debugger; statement to bring Web Inspector to front.

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r259655 r259665  
     12020-04-07  Brian Burg  <bburg@apple.com>
     2
     3        Web Automation: Automation.inspectBrowsingContext should bring Web Inspector to front automatically
     4        https://bugs.webkit.org/show_bug.cgi?id=210137
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UIProcess/Automation/mac/WebAutomationSessionMac.mm:
     9        (WebKit::WebAutomationSession::inspectBrowsingContext):
     10        Previously, calling connect() would preload Web Inspector but not show its window. This
     11        made it awkward to use the 'safari:automaticInspection' capability without subsequently
     12        evaluating a `debugger;` statement to bring Web Inspector to front.
     13
    1142020-04-07  Kate Cheney  <katherine_cheney@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/Automation/mac/WebAutomationSessionMac.mm

    r251948 r259665  
    5858    // We just want it loaded so it can pause if a breakpoint is hit during a command.
    5959    if (page->inspector()) {
    60         page->inspector()->connect();
     60        page->inspector()->show();
    6161
    6262        // Start collecting profile information immediately so the entire session is captured.
Note: See TracChangeset for help on using the changeset viewer.