Changeset 244230 in webkit


Ignore:
Timestamp:
Apr 12, 2019 1:46:55 PM (5 years ago)
Author:
Devin Rousso
Message:

WebDriver: evaluating javascript shouldn't fail if a dialog is shown
https://bugs.webkit.org/show_bug.cgi?id=196847
<rdar://problem/49609396>

Reviewed by Brian Burg.

  • UIProcess/Automation/WebAutomationSession.cpp:

(WebKit::WebAutomationSession::willShowJavaScriptDialog):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244228 r244230  
     12019-04-12  Devin Rousso  <drousso@apple.com>
     2
     3        WebDriver: evaluating javascript shouldn't fail if a dialog is shown
     4        https://bugs.webkit.org/show_bug.cgi?id=196847
     5        <rdar://problem/49609396>
     6
     7        Reviewed by Brian Burg.
     8
     9        * UIProcess/Automation/WebAutomationSession.cpp:
     10        (WebKit::WebAutomationSession::willShowJavaScriptDialog):
     11
    1122019-04-12  Ross Kirsling  <ross.kirsling@sony.com>
    213
  • trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp

    r244033 r244230  
    653653
    654654        if (!m_evaluateJavaScriptFunctionCallbacks.isEmpty()) {
    655             Inspector::ErrorString unexpectedAlertOpenError = STRING_FOR_PREDEFINED_ERROR_NAME(UnexpectedAlertOpen);
    656655            for (auto key : copyToVector(m_evaluateJavaScriptFunctionCallbacks.keys())) {
    657656                auto callback = m_evaluateJavaScriptFunctionCallbacks.take(key);
    658                 callback->sendFailure(unexpectedAlertOpenError);
     657                callback->sendSuccess(emptyString());
    659658            }
    660659        }
Note: See TracChangeset for help on using the changeset viewer.