Summary: | Web Automation: provide detailed error messages when an automation command fails | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | BJ Burg <bburg> | ||||
Component: | Web Inspector | Assignee: | BJ Burg <bburg> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bburg, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
BJ Burg
2016-04-15 12:27:42 PDT
Created attachment 276527 [details]
Proposed Fix
Comment on attachment 276527 [details]
Proposed Fix
Needs to land with corresponding internal patch.
Comment on attachment 276527 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=276527&action=review > Source/WebKit2/UIProcess/Automation/WebAutomationSession.cpp:269 > + FAIL_WITH_PREDEFINED_ERROR_AND_DETAILS(InternalError, "The remote session could not request a new browsing context."); If we are passing these error messages through to the endpoints, should we use "window" instead of "browsing context"? > Source/WebKit2/UIProcess/Automation/WebAutomationSession.cpp:273 > + FAIL_WITH_PREDEFINED_ERROR_AND_DETAILS(InternalError, "The remote session failed to create a new browsing context."); Ditto. Comment on attachment 276527 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=276527&action=review >> Source/WebKit2/UIProcess/Automation/WebAutomationSession.cpp:269 >> + FAIL_WITH_PREDEFINED_ERROR_AND_DETAILS(InternalError, "The remote session could not request a new browsing context."); > > If we are passing these error messages through to the endpoints, should we use "window" instead of "browsing context"? They currently only go through to endpoints in engineering builds, since most of these errors are programming errors and leak implementation details. So the verbiage is not important IMO. Comment on attachment 276527 [details] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=276527&action=review >>> Source/WebKit2/UIProcess/Automation/WebAutomationSession.cpp:269 >>> + FAIL_WITH_PREDEFINED_ERROR_AND_DETAILS(InternalError, "The remote session could not request a new browsing context."); >> >> If we are passing these error messages through to the endpoints, should we use "window" instead of "browsing context"? > > They currently only go through to endpoints in engineering builds, since most of these errors are programming errors and leak implementation details. So the verbiage is not important IMO. Okay! Committed r199680: <http://trac.webkit.org/changeset/199680> |