Commit a88adf77 authored by Mustaq Ahmed's avatar Mustaq Ahmed Committed by Commit Bot

Remove unexpected user gesture creation in a test.

Bug: 902517
Change-Id: Ie5121198b9ce41e2d72ea696570b05de0071aafa
Reviewed-on: https://chromium-review.googlesource.com/c/1321156Reviewed-by: default avatarCamille Lamy <clamy@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606505}
parent 6fbae555
......@@ -1138,7 +1138,8 @@ IN_PROC_BROWSER_TEST_F(NavigationBrowserTest, HistoryBackInBeforeUnload) {
GURL url_2(embedded_test_server()->GetURL("/title2.html"));
EXPECT_TRUE(NavigateToURL(shell(), url_1));
EXPECT_TRUE(ExecuteScript(shell()->web_contents(),
EXPECT_TRUE(
ExecuteScriptWithoutUserGesture(shell()->web_contents(),
"onbeforeunload = function() {"
" history.pushState({}, null, '/');"
" history.back();"
......@@ -1156,7 +1157,8 @@ IN_PROC_BROWSER_TEST_F(NavigationBrowserTest,
GURL url_2(embedded_test_server()->GetURL("/title2.html"));
EXPECT_TRUE(NavigateToURL(shell(), url_1));
EXPECT_TRUE(ExecuteScript(shell()->web_contents(),
EXPECT_TRUE(
ExecuteScriptWithoutUserGesture(shell()->web_contents(),
"onbeforeunload = function() {"
" history.pushState({}, null, '/');"
" setTimeout(()=>history.back());"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment