aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/measure-memory/window-open.cross-site.tentative.https.window.js
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-11-25 12:24:28 -0500
committerGitHub <noreply@github.com>2020-11-25 12:24:28 -0500
commit20ef49e035596136ce43b47a66b27c8b5c25967b (patch)
treedca4938b97a0f427f9540cb6cd6d685bc9d9f9cf /tests/wpt/web-platform-tests/measure-memory/window-open.cross-site.tentative.https.window.js
parentadbaab09fd30a95abb33f1583c634198008a8d2a (diff)
parentd6361c02904c351c04c9eba2fd4e1698afdb4d4d (diff)
downloadservo-20ef49e035596136ce43b47a66b27c8b5c25967b.tar.gz
servo-20ef49e035596136ce43b47a66b27c8b5c25967b.zip
Auto merge of #27832 - servo-wpt-sync:wpt_update_25-11-2020, r=servo-wpt-sync
Sync WPT with upstream (25-11-2020) Automated downstream sync of changes from upstream as of 25-11-2020. [no-wpt-sync] r? @servo-wpt-sync
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.js35
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.');