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

Unified Diff: LayoutTests/http/tests/navigation/resources/https-in-page-cache-1.php

Issue 14495004: Remove left-over PageCache stuff (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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: LayoutTests/http/tests/navigation/resources/https-in-page-cache-1.php
diff --git a/LayoutTests/http/tests/navigation/resources/https-in-page-cache-1.php b/LayoutTests/http/tests/navigation/resources/https-in-page-cache-1.php
deleted file mode 100644
index 0f717e94ae92fe924e05c049e76a2925d7c52cf3..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/navigation/resources/https-in-page-cache-1.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-header("cache-control: no-store");
-?>
-<script>
-
-function nextTest() {
- if (window.sessionStorage.https_in_page_cache_started)
- delete window.sessionStorage.https_in_page_cache_started;
- location = "https://127.0.0.1:8443/navigation/resources/https-in-page-cache-2.php";
-}
-
-window.onpageshow = function(evt) {
- if (evt.persisted) {
- alert("The page was restored from the page cache. It should NOT have been. Running part 2 of the test.");
- nextTest();
- }
-}
-
-window.onload = function() {
- if (window.sessionStorage.https_in_page_cache_started) {
- alert("The page was reloaded on back, not from the page cache. Good job. Running part 2 of the test.");
- nextTest();
- return;
- }
-
- alert("This page is https and has the no-store cache-control directive. It should NOT go in to the page cache.");
- window.sessionStorage.https_in_page_cache_started = true;
- setTimeout('window.location = "go-back.html"', 0);
-
-}
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698