From ed248955f3c86e620eeaaa5f6043a0bbdc8a477e Mon Sep 17 00:00:00 2001 From: Hiroki Nakagawa Date: Mon, 18 Oct 2021 04:36:59 +0000 Subject: [PATCH] Prerender: Upstream tests for storage APIs in same-origin prerendered pages (2) This CL upstreams tests for storage APIs (Storage Foundation, Web Database) in same-origin prerendered pages to the WPT. The behavior of these APIs is not defined in the spec yet, but we already reached a consensus that the storage APIs in same-origin prerendered pages are just allowed. See the GitHub issue for details: https://github.com/jeremyroman/alternate-loading-modes/issues/7#issuecomment-944358336 Bug: 1253158 Change-Id: If34e4f325341a95f036beff43af19dde3504a8ac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3226531 Reviewed-by: Kouhei Ueno Reviewed-by: Lingqi Chi Commit-Queue: Hiroki Nakagawa Cr-Commit-Position: refs/heads/main@{#932416} NOKEYCHECK=True GitOrigin-RevId: 32037f69cbdd8089f908c483d1f1db24abd3545d --- .../prerender/resources/storage-foundation-access.https.html | 0 .../prerender/resources/web-database-access.html | 0 .../prerender/storage-foundation.https.html | 3 +++ .../wpt/speculation-rules}/prerender/web-database.html | 4 ++++ 4 files changed, 7 insertions(+) rename blink/web_tests/{wpt_internal => external/wpt/speculation-rules}/prerender/resources/storage-foundation-access.https.html (100%) rename blink/web_tests/{wpt_internal => external/wpt/speculation-rules}/prerender/resources/web-database-access.html (100%) rename blink/web_tests/{wpt_internal => external/wpt/speculation-rules}/prerender/storage-foundation.https.html (97%) rename blink/web_tests/{wpt_internal => external/wpt/speculation-rules}/prerender/web-database.html (97%) diff --git a/blink/web_tests/wpt_internal/prerender/resources/storage-foundation-access.https.html b/blink/web_tests/external/wpt/speculation-rules/prerender/resources/storage-foundation-access.https.html similarity index 100% rename from blink/web_tests/wpt_internal/prerender/resources/storage-foundation-access.https.html rename to blink/web_tests/external/wpt/speculation-rules/prerender/resources/storage-foundation-access.https.html diff --git a/blink/web_tests/wpt_internal/prerender/resources/web-database-access.html b/blink/web_tests/external/wpt/speculation-rules/prerender/resources/web-database-access.html similarity index 100% rename from blink/web_tests/wpt_internal/prerender/resources/web-database-access.html rename to blink/web_tests/external/wpt/speculation-rules/prerender/resources/web-database-access.html diff --git a/blink/web_tests/wpt_internal/prerender/storage-foundation.https.html b/blink/web_tests/external/wpt/speculation-rules/prerender/storage-foundation.https.html similarity index 97% rename from blink/web_tests/wpt_internal/prerender/storage-foundation.https.html rename to blink/web_tests/external/wpt/speculation-rules/prerender/storage-foundation.https.html index 1a4a359f8bdb..ca1b9363f4b2 100644 --- a/blink/web_tests/wpt_internal/prerender/storage-foundation.https.html +++ b/blink/web_tests/external/wpt/speculation-rules/prerender/storage-foundation.https.html @@ -7,6 +7,8 @@ diff --git a/blink/web_tests/wpt_internal/prerender/web-database.html b/blink/web_tests/external/wpt/speculation-rules/prerender/web-database.html similarity index 97% rename from blink/web_tests/wpt_internal/prerender/web-database.html rename to blink/web_tests/external/wpt/speculation-rules/prerender/web-database.html index a3b2fc9ed484..3e59c3c29597 100644 --- a/blink/web_tests/wpt_internal/prerender/web-database.html +++ b/blink/web_tests/external/wpt/speculation-rules/prerender/web-database.html @@ -6,6 +6,9 @@