Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/state-restore-to-non-autocomplete-form.html

Issue 2741513002: [Merge M-57] Add a warning for the deprecation of content-initiated data URL navigations (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/forms/state-restore-to-non-autocomplete-form.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/state-restore-to-non-autocomplete-form.html b/third_party/WebKit/LayoutTests/fast/forms/state-restore-to-non-autocomplete-form.html
index c3e30cd58b7e70cc094cdcc874d5051ba9bd9ab3..dad54c0bbf7e4f5034d88ce9443d4e2d592c3aa7 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/state-restore-to-non-autocomplete-form.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/state-restore-to-non-autocomplete-form.html
@@ -9,12 +9,12 @@
<input id=emptyOnFirstVisit>
<div id=parent>
-<form action="data:text/html,<script>history.back()&lt;/script>" id=form1 autocomplete=off>
+<form action="../../resources/back.html" id=form1 autocomplete=off>
<input name=user id=input1>
<textarea name=comment id=textarea1></textarea>
<select name=os id=select1><option>Mac<option>Windows<option>BSD</select>
</form>
-<form action="data:text/html,<script>history.back()&lt;/script>" id=form2>
+<form action="../../resources/back.html" id=form2>
<input name=user id=input2>
<textarea name=comment id=textarea2></textarea>
<select name=os id=select2><option>Mac<option>Windows<option>BSD</select>
@@ -32,14 +32,14 @@ function runTest()
if (window.testRunner)
testRunner.waitUntilDone();
state.value = 'visited';
-
+
document.getElementById('input1').value = 'value1';
document.getElementById('textarea1').value = 'nice';
document.getElementById('select1').value = 'Windows';
document.getElementById('input2').value = 'value2';
document.getElementById('textarea2').value = 'good';
document.getElementById('select2').value = 'BSD';
- // Submit form in a timeout to make sure that we create a new back/forward list item.
+ // Submit form in a timeout to make sure that we create a new back/forward list item.
setTimeout(function() {document.getElementById('form2').submit();}, 0);
} else {
// Second visit.

Powered by Google App Engine
This is Rietveld 408576698