window-open.same-origin.https.window.js (1214B)
1 // META: script=/common/get-host-info.sub.js 2 // META: script=./resources/checker.js 3 // META: script=./resources/common.js 4 // META: timeout=long 5 'use strict'; 6 7 promise_test(async testCase => { 8 assert_true(self.crossOriginIsolated); 9 10 const {iframes, windows} = await build([ 11 { 12 id: 'same-origin-1', 13 window_open: true, 14 children: [ 15 { 16 id: 'same-origin-2', 17 window_open: true, 18 }, 19 { 20 id: 'same-origin-3', 21 }, 22 ] 23 }, 24 ]); 25 const result = await performance.measureUserAgentSpecificMemory(); 26 checkMeasureMemory(result, [ 27 { 28 url: window.location.href, 29 scope: 'Window', 30 container: null, 31 }, 32 { 33 url: windows['same-origin-1'].location.href, 34 scope: 'Window', 35 container: null, 36 }, 37 { 38 url: windows['same-origin-2'].location.href, 39 scope: 'Window', 40 container: null, 41 }, 42 { 43 url: windows['same-origin-3'].location.href, 44 scope: 'Window', 45 container: { 46 id: 'same-origin-3', 47 src: iframes['same-origin-3'].src, 48 }, 49 }, 50 ]); 51 }, 'Well-formed result of performance.measureUserAgentSpecificMemory with same-origin window.open.');