From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../window-open.cross-site.https.window.js | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 testing/web-platform/tests/measure-memory/window-open.cross-site.https.window.js (limited to 'testing/web-platform/tests/measure-memory/window-open.cross-site.https.window.js') diff --git a/testing/web-platform/tests/measure-memory/window-open.cross-site.https.window.js b/testing/web-platform/tests/measure-memory/window-open.cross-site.https.window.js new file mode 100644 index 0000000000..3a9481fae6 --- /dev/null +++ b/testing/web-platform/tests/measure-memory/window-open.cross-site.https.window.js @@ -0,0 +1,36 @@ +// META: script=/common/get-host-info.sub.js +// META: script=./resources/checker.js +// META: script=./resources/common.js +// META: timeout=long +'use strict'; + +promise_test(async testCase => { + assert_true(self.crossOriginIsolated); + + 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.measureUserAgentSpecificMemory(); + checkMeasureMemory(result, [ + { + url: window.location.href, + scope: 'Window', + container: null, + }, + ]); +}, 'performance.measureUserAgentSpecificMemory does not leak URL of cross-site window.open.'); -- cgit v1.2.3