Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/navigation-preload-origin-trial-interfaces-worker.php |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/navigation-preload-origin-trial-interfaces-worker.php b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/navigation-preload-origin-trial-interfaces-worker.php |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fe2a9b1c1dd215225edb7fd2a8ef348c4b2dd9c9 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/navigation-preload-origin-trial-interfaces-worker.php |
@@ -0,0 +1,17 @@ |
+<?php |
+if (isset($_GET["origintrial"])) { |
+ // generate_token.py http://127.0.0.1:8000 ServiceWorkerNavigationPreload -expire-timestamp=2000000000 |
+ header("Origin-Trial: AsAA4dg2Rm+GSgnpyxxnpVk1Bk8CcE+qVBTDpPbIFNscyNRJOdqw1l0vkC4dtsGm1tmP4ZDAKwycQDzsc9xr7gMAAABmeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiU2VydmljZVdvcmtlck5hdmlnYXRpb25QcmVsb2FkIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9"); |
+} |
+header('Content-Type: application/javascript'); |
+?> |
+importScripts('./get_interface_names.js'); |
+ |
+self.addEventListener('message', event => { |
+ event.data.port.postMessage( |
+ get_interface_names( |
+ this, |
+ ['NavigationPreloadManager', |
+ 'FetchEvent', |
+ 'ServiceWorkerRegistration'])); |
+ }); |