dom/tests/mochitest/chrome/focus_frameset.html

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <html id="outer">
michael@0 2
michael@0 3 <script type="application/javascript"
michael@0 4 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
michael@0 5 <script>
michael@0 6 if (opener)
michael@0 7 SimpleTest.waitForFocus(function () opener.framesetWindowLoaded(window));
michael@0 8 // Don't try to call finish() in this frame, since it will get upset that we
michael@0 9 // ran no tests.
michael@0 10 SimpleTest.waitForExplicitFinish();
michael@0 11 </script>
michael@0 12
michael@0 13 <frameset rows="30%, 70%">
michael@0 14 <frame src="data:text/html,&lt;html id='f1' &gt;&lt;body id='framebody1'&gt;&lt;input id='f2'&gt;&lt;body&gt;&lt;/html&gt;">
michael@0 15 <frameset cols="30%, 33%, 34%">
michael@0 16 <frame src="data:text/html,&lt;html id='f3'&gt;&lt;body id='framebody2'&gt;&lt;input id='f4'&gt;&lt;body&gt;&lt;/html&gt;">
michael@0 17 <frame src="data:text/html,&lt;html id='f5'&gt;&lt;body id='framebody3'&gt;&lt;input id='f6' tabindex='2'&gt;&lt;body&gt;&lt;/html&gt;">
michael@0 18 <frame src="data:text/html,&lt;html id='f7'&gt;&lt;body id='framebody4'&gt;&lt;input id='f8'&gt;&lt;body&gt;&lt;/html&gt;">
michael@0 19 </frameset>
michael@0 20 <noframes>
michael@0 21 <input id="unused1"/>
michael@0 22 <input id="unused2" tabindex="1"/>
michael@0 23 </noframes>
michael@0 24 </frameset>
michael@0 25
michael@0 26 </html>

mercurial