Chromium Code Reviews| 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..6bae5ac2320cb77090672de206541b4a0c6dc4b4 |
| --- /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"); |
|
falken
2015/08/17 06:18:29
nit: space before (
horo
2015/08/19 08:33:00
Done.
|
| + $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'); |
|
falken
2015/08/17 06:18:29
will this work in wptserve?
horo
2015/08/19 08:33:00
No.
We will have to rewrite this PHP file to Pytho
|
| +</script> |