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

Unified Diff: third_party/WebKit/LayoutTests/fast/history/saves-state-after-fragment-nav.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/history/saves-state-after-fragment-nav.html
diff --git a/third_party/WebKit/LayoutTests/fast/history/saves-state-after-fragment-nav.html b/third_party/WebKit/LayoutTests/fast/history/saves-state-after-fragment-nav.html
index a5be62fec7a4f5f5deb4936b21b5619f8d734848..17b55e4c074ede4bf9505161b1f46c4f9ff49c56 100644
--- a/third_party/WebKit/LayoutTests/fast/history/saves-state-after-fragment-nav.html
+++ b/third_party/WebKit/LayoutTests/fast/history/saves-state-after-fragment-nav.html
@@ -15,9 +15,9 @@ function navigateToHash(field) {
function navigateAwayAndBack() {
// Assigning to location does not create a history entry, so
// instead we simulate a link click.
- var evt = document.createEvent("MouseEvents");
+ var evt = document.createEvent("MouseEvents");
evt.initMouseEvent("click", true, true, window,
- 0, 0, 0, 0, 0, false, false, false, false, 0, null);
+ 0, 0, 0, 0, 0, false, false, false, false, 0, null);
document.getElementById('anchor').dispatchEvent(evt);
}
@@ -45,6 +45,6 @@ function runTestStep() {
</script>
<body onload='runTestStep()' onunload='/*suppress page cache*/'>
<input id='field'></input>
- <a id='anchor' href='data:text/html,<body onload="history.back()"></body>'>go away and come back</a>
+ <a id='anchor' href='resources/back-on-load.html'>go away and come back</a>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698