docshell/test/navigation/file_bug1326251_evict_cache.html
author Byron Campen [:bwc] <docfaraday@gmail.com>
Mon, 29 Apr 2019 15:51:30 +0000
changeset 471964 f8a6a019f873aaebc47740ea1423c0985aaedf69
parent 434437 e2ac39e3e6b7d3960570e13f6d7866477393f6b1
permissions -rw-r--r--
Bug 1531803 - Part 3: Only set track id on JsepTrack if we're configured to emit track ids in SDP, and simplify some code. r=mjf Differential Revision: https://phabricator.services.mozilla.com/D25796

<!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>