gecko-dev/docshell/test/navigation/file_bug1326251_evict_cache...

23 строки
629 B
HTML

<!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;
shistory.legacySHistory.evictAllContentViewers();
history.back();
}
</script>
</head>
<body onload="setTimeout(evictCache, 0);">
</body>
</html>