⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 203507 in webkit


Ignore:
Timestamp:
Jul 21, 2016, 9:59:33 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Web Automation: Allow JavaScript evaluation to return an InvalidElementState error
​https://bugs.webkit.org/show_bug.cgi?id=160015
<rdar://problem/27434529>

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-07-21
Reviewed by Brian Burg.

  • UIProcess/Automation/Automation.json:
  • WebProcess/Automation/WebAutomationSessionProxy.cpp:

(WebKit::WebAutomationSessionProxy::evaluateJavaScriptFunction):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r203504 r203507  
     12016-07-21  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Automation: Allow JavaScript evaluation to return an InvalidElementState error
     4        https://bugs.webkit.org/show_bug.cgi?id=160015
     5        <rdar://problem/27434529>
     6
     7        Reviewed by Brian Burg.
     8
     9        * UIProcess/Automation/Automation.json:
     10        * WebProcess/Automation/WebAutomationSessionProxy.cpp:
     11        (WebKit::WebAutomationSessionProxy::evaluateJavaScriptFunction):
     12
    1132016-07-21  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebKit2/UIProcess/Automation/Automation.json

    r202351 r203507  
    5454                "FrameNotFound",
    5555                "NodeNotFound",
     56                "InvalidElementState",
    5657                "NoJavaScriptDialog",
    5758                "NotImplemented",
  • trunk/Source/WebKit2/WebProcess/Automation/WebAutomationSessionProxy.cpp

    r203316 r203507  
    272272        if (exceptionName->string() == "NodeNotFound")
    273273            errorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::NodeNotFound);
     274        else if (exceptionName->string() == "InvalidElementState")
     275            errorType = Inspector::Protocol::AutomationHelpers::getEnumConstantValue(Inspector::Protocol::Automation::ErrorMessage::InvalidElementState);       
    274276
    275277        JSValueRef messageValue = JSObjectGetProperty(context, const_cast<JSObjectRef>(exception), toJSString(ASCIILiteral("message")).get(), nullptr);
Note: See TracChangeset for help on using the changeset viewer.