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

Unified Diff: chrome/test/data/pdf/pdf_href_replace_state.html

Issue 2611643004: Don't abort the PDF stream if a navigation is intiated within the same page. (Closed)
Patch Set: Fix redness. Created 3 years, 11 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: chrome/test/data/pdf/pdf_href_replace_state.html
diff --git a/chrome/test/data/pdf/pdf_href_replace_state.html b/chrome/test/data/pdf/pdf_href_replace_state.html
new file mode 100644
index 0000000000000000000000000000000000000000..b9a8ac083e481d25af1b8562ef0493bd927e35bf
--- /dev/null
+++ b/chrome/test/data/pdf/pdf_href_replace_state.html
@@ -0,0 +1,14 @@
+<html>
+<head>
+<title>First window</title>
+<script>
+window.addEventListener('pagehide', function() {
+ history.replaceState({time: Date.now()}, '');
+});
+</script>
+</head>
+
+<body>
+<a id="link" href="test-link.pdf"> pdf </a>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698