diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/measure-memory/window-open.cross-site.tentative.https.window.js')
-rw-r--r-- | tests/wpt/web-platform-tests/measure-memory/window-open.cross-site.tentative.https.window.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/measure-memory/window-open.cross-site.tentative.https.window.js b/tests/wpt/web-platform-tests/measure-memory/window-open.cross-site.tentative.https.window.js new file mode 100644 index 00000000000..f70ad9df32b --- /dev/null +++ b/tests/wpt/web-platform-tests/measure-memory/window-open.cross-site.tentative.https.window.js @@ -0,0 +1,35 @@ +// META: script=/common/get-host-info.sub.js +// META: script=./resources/common.js +// META: timeout=long +'use strict'; + +assert_true(self.crossOriginIsolated); + +promise_test(async testCase => { + const {iframes, windows} = await build([ + { + id: 'cross-site-1', + window_open: true, + children: [ + { + id: 'same-origin-2', + window_open: true, + }, + { + id: 'same-origin-3', + }, + { + id: 'cross-origin-4', + }, + ] + }, + ]); + const result = await performance.measureMemory(); + checkMeasureMemory(result, [ + { + url: window.location.href, + scope: 'Window', + container: null, + }, + ]); +}, 'performance.measureMemory does not leak URL of cross-site window.open.'); |