| Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..51c09bd9fab208f7724b71faea725e3875fbfe12
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-service-worker-link-rel.php
|
| @@ -0,0 +1,23 @@
|
| +<?php
|
| +header("Suborigin: foobar");
|
| +?>
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<title>Service Worker link rel fails from a suborigin</title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +</head>
|
| +<script>
|
| +var link = document.createElement('link');
|
| +link.setAttribute('rel', 'serviceworker');
|
| +link.setAttribute('href', '/serviceworker/resources/empty-worker.js');
|
| +link.onload = function() {
|
| + assert_unreached('Service worker was successfully registered with a <link> element');
|
| +}
|
| +link.onerror = function() {
|
| + done();
|
| +}
|
| +document.getElementsByTagName('head')[0].appendChild(link);
|
| +</script>
|
| +</html>
|
|
|