blob: fcedd6721aeb3512f2d3d647924973888b0c0896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
add_task(async function testCacheAfterInvalidate() {
// Load some page to make scripts cached.
let tab1 = await BrowserTestUtils.openNewForegroundTab(
gBrowser,
"about:addons"
);
// Discard ScriptPreloader cache.
Services.obs.notifyObservers(null, "startupcache-invalidate");
// Load some other page to use the cache in nsMessageManagerScriptExecutor
// cache.
let tab2 = await BrowserTestUtils.openNewForegroundTab(
gBrowser,
"about:preferences"
);
// Verify the browser doesn't crash.
ok(true);
BrowserTestUtils.removeTab(tab1);
BrowserTestUtils.removeTab(tab2);
});
|