Handle javascript dialogs in WebView test shells |
||
Issue descriptionThere are four types of javascript dialogs: 1) prompt() 2) alert() 3) confirm() 4) beforeunload() We should handle these dialogs in WebView's test shells. I found this article: Chromium policy on JavaScript dialogs https://developers.google.com/web/updates/2017/03/dialogs-policy 1-3 are straightforward; 4 looks more complicated, but then this is the test shell so we don't need to be as robust as chrome.
,
Apr 10 2018
Please add the verification steps so we can verify this issue
,
Apr 10 2018
webview_instrumentation_apk should show appropriate dialogs (compare to chrome or system_webview_shell) on the following pages: https://www.w3schools.com/js/tryit.asp?filename=tryjs_alert https://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm https://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt
,
Apr 10 2018
Wait.. this is in the instrumentation shell, not the webview test shell? No one *manually* uses the instrumentation shell for anything (except checking for webgl behavior)
,
Apr 10 2018
oh.. yeah, I came across this working on the webgl stuff, and then found out the webview test shell already had this implemented. should we close this?
,
Apr 10 2018
ahh, ok, yeah can close this now for test team: this is a change to a test shell. there is no change to production webview, so there is nothing to test |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Apr 3 2018