1 // META: script=/common/get-host-info.sub.js
2 // META: script=./resources/common.js
6 assert_true(self.crossOriginIsolated);
8 promise_test(async testCase => {
9 const {iframes, windows} = await build([
75 const result = await performance.measureMemory();
76 checkMeasureMemory(result, [
78 url: window.location.href,
83 url: windows['same-origin-1'].location.href,
87 src: iframes['same-origin-1'].src,
91 url: windows['same-origin-2'].location.href,
96 url: windows['same-origin-3'].location.href,
101 url: 'cross-origin-url',
102 scope: 'cross-origin-aggregated',
104 id: 'cross-origin-4',
105 src: iframes['cross-origin-4'].src,
109 url: windows['same-origin-5'].location.href,
114 url: 'cross-origin-url',
115 scope: 'cross-origin-aggregated',
118 src: iframes['cross-site-6'].src,
122 url: windows['same-origin-7'].location.href,
127 url: windows['same-origin-8'].location.href,
131 src: iframes['same-origin-8'].src,
135 }, 'performance.measureMemory does not leak URLs in cross-origin iframes and windows.');