3 <!-- This Source Code Form is subject to the terms of the Mozilla Public
4 - License, v. 2.0. If a copy of the MPL was not distributed with this
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
7 <?xml-stylesheet href=
"chrome://global/skin" type=
"text/css"?>
9 <window id=
"112564Test"
10 xmlns=
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
16 <script type=
"application/javascript" src=
"chrome://mochikit/content/chrome-harness.js" />
17 <script type=
"application/javascript" src=
"docshell_helpers.js" />
18 <script type=
"application/javascript"><![CDATA[
22 gTestsIterator = testsIterator();
27 gTestsIterator.next();
30 function* testsIterator() {
31 // Load a secure page with a no-cache header, followed by a simple page.
32 // no-cache should not interfere with the bfcache in the way no-store
34 var test1DocURI =
"https://example.com:443/chrome/docshell/test/chrome/112564_nocache.html";
38 eventsToListenFor: [
"load",
"pageshow"],
39 expectedEvents: [ { type:
"load",
44 onNavComplete: nextTest
48 var test2DocURI =
"data:text/html,<html><head><title>test2</title></head>" +
49 "<body>test2</body></html>";
53 eventsToListenFor: [
"load",
"pageshow",
"pagehide"],
54 expectedEvents: [ { type:
"pagehide",
62 onNavComplete: nextTest
66 // Now go back in history. First page has been cached.
67 // Check persisted property to confirm
70 eventsToListenFor: [
"pageshow",
"pagehide"],
71 expectedEvents: [ { type:
"pagehide",
77 onNavComplete: nextTest
85 <browser type=
"content" primary=
"true" flex=
"1" id=
"content" remote=
"true" maychangeremoteness=
"true" />