Backed out changeset 07d5679826c9 (bug 1189581) for wpt failures CLOSED TREE

This commit is contained in:
Wes Kocher 2015-10-20 12:09:56 -07:00
parent 07d34efd50
commit b1c0a74b45
3 changed files with 20 additions and 29 deletions

View File

@ -0,0 +1,6 @@
[fetch-cors-xhr.https.html]
type: testharness
expected: TIMEOUT
[Verify CORS XHR of fetch() in a Service Worker]
expected: TIMEOUT

View File

@ -11,7 +11,7 @@ async_test(function(t) {
var SCRIPT = 'resources/fetch-rewrite-worker.js';
var host_info = get_host_info();
login_https(t)
login(t)
.then(function() {
return service_worker_unregister_and_register(t, SCRIPT, SCOPE);
})
@ -28,7 +28,7 @@ async_test(function(t) {
service_worker_unregister_and_done(t, SCOPE);
});
frame.contentWindow.postMessage({},
host_info['HTTPS_ORIGIN'],
host_info['HTTP_ORIGIN'],
[channel.port2]);
});
})

View File

@ -54,8 +54,8 @@ function create_serial_promise(test_cases) {
window.addEventListener('message', function(evt) {
var port = evt.ports[0];
var url = host_info['HTTPS_ORIGIN'] + path;
var remote_url = host_info['HTTPS_REMOTE_ORIGIN'] + path;
var url = host_info['HTTP_ORIGIN'] + path;
var remote_url = host_info['HTTP_REMOTE_ORIGIN'] + path;
// If the 4th value of the item of TEST_CASES is true, the test case outputs
// warning messages. So such tests must be executed in serial to match the
// expected output text.
@ -76,15 +76,15 @@ window.addEventListener('message', function(evt) {
[remote_url + '?ignore', false, FAIL, true], // Executed in serial.
[remote_url + '?ignore', true, FAIL, true], // Executed in serial.
[
remote_url + '?ACAOrigin=' + host_info['HTTPS_ORIGIN'] + '&ignore',
remote_url + '?ACAOrigin=' + host_info['HTTP_ORIGIN'] + '&ignore',
false, SUCCESS
],
[
remote_url + '?ACAOrigin=' + host_info['HTTPS_ORIGIN'] + '&ignore',
remote_url + '?ACAOrigin=' + host_info['HTTP_ORIGIN'] + '&ignore',
true, FAIL, true // Executed in serial.
],
[
remote_url + '?ACAOrigin=' + host_info['HTTPS_ORIGIN'] +
remote_url + '?ACAOrigin=' + host_info['HTTP_ORIGIN'] +
'&ACACredentials=true&ignore',
true, SUCCESS
],
@ -94,15 +94,15 @@ window.addEventListener('message', function(evt) {
[remote_url + '?Auth&ignore', false, FAIL, true], // Executed in serial.
[remote_url + '?Auth&ignore', true, FAIL, true], // Executed in serial.
[
remote_url + '?Auth&ACAOrigin=' + host_info['HTTPS_ORIGIN'] + '&ignore',
remote_url + '?Auth&ACAOrigin=' + host_info['HTTP_ORIGIN'] + '&ignore',
false, 'STATUS401'
],
[
remote_url + '?Auth&ACAOrigin=' + host_info['HTTPS_ORIGIN'] + '&ignore',
remote_url + '?Auth&ACAOrigin=' + host_info['HTTP_ORIGIN'] + '&ignore',
true, FAIL, true // Executed in serial.
],
[
remote_url + '?Auth&ACAOrigin=' + host_info['HTTPS_ORIGIN'] +
remote_url + '?Auth&ACAOrigin=' + host_info['HTTP_ORIGIN'] +
'&ACACredentials=true&ignore',
true, SUCCESS
],
@ -144,41 +144,26 @@ window.addEventListener('message', function(evt) {
[
url + '?mode=cors&url=' +
encodeURIComponent(remote_url + '?ACAOrigin=' +
host_info['HTTPS_ORIGIN']),
host_info['HTTP_ORIGIN']),
false, SUCCESS
],
[
url + '?mode=cors&url=' +
encodeURIComponent(remote_url + '?ACAOrigin=' +
host_info['HTTPS_ORIGIN']),
true, FAIL
],
[
url + '?mode=cors&url=' +
encodeURIComponent(remote_url + '?ACAOrigin=' +
host_info['HTTPS_ORIGIN'] +
'&ACACredentials=true'),
host_info['HTTP_ORIGIN']),
true, SUCCESS
],
[
remote_url + '?mode=cors&url=' +
encodeURIComponent(remote_url + '?ACAOrigin=' +
host_info['HTTPS_ORIGIN']),
host_info['HTTP_ORIGIN']),
false, SUCCESS
],
[
remote_url +
'?mode=cors&url=' +
encodeURIComponent(remote_url + '?ACAOrigin=' +
host_info['HTTPS_ORIGIN']),
true, FAIL
],
[
remote_url +
'?mode=cors&url=' +
encodeURIComponent(remote_url + '?ACAOrigin=' +
host_info['HTTPS_ORIGIN'] +
'&ACACredentials=true'),
host_info['HTTP_ORIGIN']),
true, SUCCESS
]
];