// Tests the secure context state of documents that are nested inside, or // opened by, a data: URL iframe. // // Per the HTML Standard, whether a window environment is a secure context // depends on its top-level creation URL. For every case below, that is this // (top-level) test document's URL: nested documents share it as their // top-level document, and a popup's initial about:blank inherits its // creator's top-level creation URL. So each case must be a secure context iff // this document is. // // https://html.spec.whatwg.org/multipage/webappapis.html#secure-context // https://html.spec.whatwg.org/multipage/document-sequences.html#creating-a-new-browsing-context const reporter = id => `