Bug 1184967 P3 Switch mochitest redirect tests back to returning a CORS Response. r=nsm

This commit is contained in:
Ben Kelly 2015-09-01 07:58:34 -07:00
parent 5494414b34
commit 9f3e48cb12
5 changed files with 7 additions and 6 deletions

View File

@ -4,8 +4,7 @@ self.addEventListener("install", function(event) {
event.waitUntil(
self.caches.open("origin-cache")
.then(c => {
return c.add(new Request(prefix + 'index-https.sjs',
{ redirect: 'manual' }));
return c.add(prefix + 'index-https.sjs');
})
);
});

View File

@ -0,0 +1 @@
Access-Control-Allow-Origin: https://example.com

View File

@ -6,10 +6,8 @@ self.addEventListener("install", function(event) {
.then(c => {
return Promise.all(
[
c.add(new Request(prefix + 'index.sjs',
{ redirect: 'manual' } )),
c.add(new Request(prefix + 'index-to-https.sjs',
{ redirect: 'manual' } ))
c.add(prefix + 'index.sjs'),
c.add(prefix + 'index-to-https.sjs')
]
);
})

View File

@ -0,0 +1 @@
Access-Control-Allow-Origin: http://mochi.test:8888

View File

@ -53,11 +53,13 @@ support-files =
fetch/origin/index.sjs
fetch/origin/index-to-https.sjs
fetch/origin/realindex.html
fetch/origin/realindex.html^headers^
fetch/origin/register.html
fetch/origin/unregister.html
fetch/origin/origin_test.js
fetch/origin/https/index-https.sjs
fetch/origin/https/realindex.html
fetch/origin/https/realindex.html^headers^
fetch/origin/https/register.html
fetch/origin/https/unregister.html
fetch/origin/https/origin_test.js