Index: LayoutTests/http/tests/serviceworker/resources/navigation-redirect-scope1.php |
diff --git a/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-scope1.php b/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-scope1.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a6fcc1ac8dc4c200f48e856d728b9b2ea1a24b6e |
--- /dev/null |
+++ b/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-scope1.php |
@@ -0,0 +1,17 @@ |
+<?php |
+if (isset($_GET['url'])) { |
+ header("HTTP/1.1 302"); |
+ $url = $_GET['url']; |
+ header("Location: $url"); |
+ exit; |
+} |
+?> |
+<!DOCTYPE html> |
+<script> |
+ window.parent.postMessage( |
+ { |
+ id: 'last_url', |
+ result: location.href |
+ }, |
+ 'http://127.0.0.1:8000'); |
+</script> |