mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 07d5679826c9 (bug 1189581) for wpt failures CLOSED TREE
This commit is contained in:
parent
07d34efd50
commit
b1c0a74b45
@ -0,0 +1,6 @@
|
||||
[fetch-cors-xhr.https.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Verify CORS XHR of fetch() in a Service Worker]
|
||||
expected: TIMEOUT
|
||||
|
@ -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]);
|
||||
});
|
||||
})
|
||||
|
@ -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
|
||||
]
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user