dom/tests/mochitest/ajax/jquery/test/fix.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 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
michael@0 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
michael@0 3
michael@0 4 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 5 <head>
michael@0 6 <meta name="generator"
michael@0 7 content="HTML Tidy, see www.w3.org" />
michael@0 8
michael@0 9 <title>Tester</title>
michael@0 10 <style type="text/css">
michael@0 11 #container { background:yellow; width:400px; height:400px; }
michael@0 12
michael@0 13 </style>
michael@0 14 <script type="text/javascript" src="../dist/jquery.js">
michael@0 15 </script>
michael@0 16 <script type="text/javascript">
michael@0 17 function doIt() {
michael@0 18 $("#adiv").text("click!");
michael@0 19 $("#adiv").trigger("acustom.atype");
michael@0 20 }
michael@0 21
michael@0 22 function showMouse(e) {
michael@0 23 $("#adiv").text("( " + e.pageX + ", " + e.pageY + " )");
michael@0 24 }
michael@0 25
michael@0 26 $(function () {
michael@0 27 $("#doit").bind('click.mine', doIt);
michael@0 28 $("#container").mousemove(showMouse);
michael@0 29 $("#adiv").bind("acustom.atype", function () {
michael@0 30 //console.log("custom");
michael@0 31 });
michael@0 32 });
michael@0 33
michael@0 34 </script>
michael@0 35 </head>
michael@0 36
michael@0 37 <body>
michael@0 38 <button id="doit">Do It</button>
michael@0 39
michael@0 40 <div id="container">
michael@0 41 Hi
michael@0 42 </div>
michael@0 43
michael@0 44 <div id="adiv">
michael@0 45 </div>
michael@0 46 </body>
michael@0 47 </html>
michael@0 48

mercurial