DescriptionFix HandleJavaScriptDialog.
The new dialogs had a bug where they misinterpreted a null pointer in HandleJavaScriptDialog as a request to return an empty string rather than the contents in the dialog.
Turning on the new dialogs for trunk revealed this on the Chromedriver bots, but there was no test coverage in Chromium proper to catch this.
This change adds testing for HandleJavaScriptDialog in the Chromium repo, and fixes the bug.
BUG=chromedriver:1792, 719551
TEST=re-enabled chromedriver test, new JavaScriptDialogTest.HandleJavaScriptDialog
Review-Url: https://codereview.chromium.org/2867613002
Cr-Commit-Position: refs/heads/master@{#470020}
Committed: https://chromium.googlesource.com/chromium/src/+/b38dc9a7d0f5457f892a031b407f0346b666430d
Patch Set 1 #Messages
Total messages: 28 (18 generated)
|