mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Update web-platform-tests to revision 2332a6bd8ab3d47986492a44d7a0455dfb4ad823
This commit is contained in:
parent
d2856ce8ae
commit
c789859814
350 changed files with 5147 additions and 1855 deletions
|
@ -1104,7 +1104,7 @@ self.invokeRequest = invokeRequest;
|
|||
*/
|
||||
function invokeFromWorker(isDataUrl, workerOptions,
|
||||
subresource, sourceContextList) {
|
||||
const currentSourceContext = sourceContextList.shift();
|
||||
const currentSourceContext = sourceContextList[0];
|
||||
let workerUrl =
|
||||
"/common/security-features/scope/worker.py?policyDeliveries=" +
|
||||
encodeURIComponent(JSON.stringify(
|
||||
|
@ -1128,7 +1128,7 @@ function invokeFromWorker(isDataUrl, workerOptions,
|
|||
.then(url => {
|
||||
const worker = new Worker(url, workerOptions);
|
||||
worker.postMessage({subresource: subresource,
|
||||
sourceContextList: sourceContextList});
|
||||
sourceContextList: sourceContextList.slice(1)});
|
||||
return bindEvents2(worker, "message", worker, "error", window, "error");
|
||||
})
|
||||
.then(event => {
|
||||
|
@ -1139,7 +1139,7 @@ function invokeFromWorker(isDataUrl, workerOptions,
|
|||
}
|
||||
|
||||
function invokeFromIframe(subresource, sourceContextList) {
|
||||
const currentSourceContext = sourceContextList.shift();
|
||||
const currentSourceContext = sourceContextList[0];
|
||||
const frameUrl =
|
||||
"/common/security-features/scope/document.py?policyDeliveries=" +
|
||||
encodeURIComponent(JSON.stringify(
|
||||
|
@ -1165,7 +1165,7 @@ function invokeFromIframe(subresource, sourceContextList) {
|
|||
window, "message", iframe, "error", window, "error");
|
||||
iframe.contentWindow.postMessage(
|
||||
{subresource: subresource,
|
||||
sourceContextList: sourceContextList},
|
||||
sourceContextList: sourceContextList.slice(1)},
|
||||
"*");
|
||||
return promise;
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue