4 https://bugzilla.mozilla.org/show_bug.cgi?id=530396
7 <title>Test for Bug
530396</title>
8 <script type=
"application/javascript" src=
"/MochiKit/packed.js"></script>
9 <script type=
"application/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <script type=
"text/javascript" src=
"/tests/SimpleTest/EventUtils.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
14 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=530396">Mozilla Bug
530396</a>
18 <iframe id=
"testFrame" src=
"http://mochi.test:8888/tests/docshell/test/bug530396-subframe.html"></iframe>
21 <script class=
"testbody" type=
"text/javascript">
23 // NOTE: If we ever make subframes do bfcache stuff, this test will need to be
24 // modified accordingly! It assumes that subframes do NOT get bfcached.
29 var gTestFrame = document.getElementById('testFrame');
31 SimpleTest.waitForExplicitFinish();
32 SimpleTest.requestFlakyTimeout(
"untriaged");
33 addLoadEvent(doNextStep);
35 function doNextStep() {
39 is(onloadCount,
1,
"Loaded initial page");
40 sendMouseEvent({type:
"click"},
"target2", gTestFrame.contentWindow);
41 window.setTimeout(doNextStep,
1000);
45 is(onloadCount,
1,
"opener must be null");
46 sendMouseEvent({type:
"click"},
"target1", gTestFrame.contentWindow);
50 is(onloadCount,
2,
"don't send referrer with rel=referrer");