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([
26 const result = await performance.measureMemory();
27 checkMeasureMemory(result, [
29 url: window.location.href,
34 url: 'cross-origin-url',
35 scope: 'cross-origin-aggregated',
38 src: iframes['cross-site-1'].src,
42 url: windows['same-origin-2'].location.href,
46 src: iframes['cross-site-1'].src,
51 if (!(error instanceof DOMException)) {
54 assert_equals(error.name, 'SecurityError');
56 }, 'performance.measureMemory URLs within a cross-site iframe.');