mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
// META: global=window,worker
|
|
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
// https://w3c.github.io/webappsec-secure-contexts/
|
|
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['secure-contexts'],
|
|
['html', 'dom'],
|
|
idl_array => {
|
|
if (self.Window) {
|
|
idl_array.add_objects({ Window: ['self'] });
|
|
} else {
|
|
idl_array.add_objects({ WorkerGlobalScope: ['self'] });
|
|
}
|
|
}
|
|
);
|