/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ "use strict"; /** * Tests that if a page attempts to load the script stream without * having also loaded the page stream, that it will fail and get * the default non-cached script. */ add_task(async function test_same_consumer() { await withFullyLoadedAboutHome(async browser => { await simulateRestart(browser); // We need the CSP meta tag in about: pages, otherwise we hit assertions in // debug builds. // // We inject a script that sets a __CACHE_CONSUMED__ property to true on // the window element. We'll test to ensure that if we try to load the // script cache from a different BrowsingContext that this property is // not set. await injectIntoCache( `