blob: 0f46a26b8716295b292dea975ead92b66f1150b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bug 1326251</title>
<script>
SpecialPowers.Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
// Evict bfcache and then go back.
async function evictCache() {
let shistory = SpecialPowers.wrap(window)
.docShell
.QueryInterface(SpecialPowers.Ci.nsIWebNavigation)
.sessionHistory;
if (!SpecialPowers.Services.appinfo.sessionHistoryInParent) {
shistory.legacySHistory.evictAllContentViewers();
} else {
opener.evictAllContentViewers();
}
history.back();
}
</script>
</head>
<body onload="setTimeout(evictCache, 0);">
</body>
</html>
|