1 // META: script=/common/get-host-info.sub.js
2 // META: script=./resources/checker.js
3 // META: script=./resources/common.js
7 promise_test(async testCase => {
8 assert_true(self.crossOriginIsolated);
10 const {iframes, windows} = await build([
27 const result = await performance.measureUserAgentSpecificMemory();
28 checkMeasureMemory(result, [
30 url: window.location.href,
35 url: 'cross-origin-url',
36 scope: 'cross-origin-aggregated',
39 src: iframes['cross-site-1'].src,
43 url: windows['same-origin-2'].location.href,
47 src: iframes['cross-site-1'].src,
52 if (!(error instanceof DOMException)) {
55 assert_equals(error.name, 'SecurityError');
57 }, 'performance.measureUserAgentSpecificMemory URLs within a cross-site iframe.');