Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-scope2.py |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-scope2.py b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-scope2.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4b40762d89ff05ae56f2a48a2295c47454dc3392 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resources/navigation-redirect-scope2.py |
@@ -0,0 +1,15 @@ |
+def main(request, response): |
+ if "url" in request.GET: |
+ headers = [("Location", request.GET["url"])] |
+ return 302, headers, '' |
+ |
+ return [], ''' |
+<!DOCTYPE html> |
+<script> |
+ window.parent.postMessage( |
+ { |
+ id: 'last_url', |
+ result: location.href |
+ }, '*'); |
+</script> |
+''' |