Tue, 06 Jan 2015 21:39:09 +0100
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 | <?xml version="1.0"?> |
michael@0 | 2 | |
michael@0 | 3 | <!-- Any copyright is dedicated to the Public Domain. |
michael@0 | 4 | - http://creativecommons.org/publicdomain/zero/1.0/ --> |
michael@0 | 5 | |
michael@0 | 6 | <?xml-stylesheet type="text/css" href="chrome://global/skin"?> |
michael@0 | 7 | <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?> |
michael@0 | 8 | |
michael@0 | 9 | <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 10 | title="Mozilla Bug 741549"> |
michael@0 | 11 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> |
michael@0 | 12 | <script type="application/javascript" src="head.js"/> |
michael@0 | 13 | <!-- test results are displayed in the html:body --> |
michael@0 | 14 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 15 | <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=741549" |
michael@0 | 16 | target="_blank">Mozilla Bug 741549</a> |
michael@0 | 17 | </body> |
michael@0 | 18 | |
michael@0 | 19 | <script> |
michael@0 | 20 | |
michael@0 | 21 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 22 | |
michael@0 | 23 | var url = "http://test/chrome/dom/tests/mochitest/webapps/apps/utf8.webapp"; |
michael@0 | 24 | |
michael@0 | 25 | confirmNextInstall(); |
michael@0 | 26 | navigator.mozApps.install(url, null).onsuccess = function onInstall() { |
michael@0 | 27 | is(this.result.manifest.name, "TheBOM ゲゴケ゚セニツ゚ヅヂチ", "manifest.name"); |
michael@0 | 28 | is(this.result.manifest.description, "This App is THE BOM, yo. ヅヂチ", |
michael@0 | 29 | "manifest.description"); |
michael@0 | 30 | |
michael@0 | 31 | navigator.mozApps.mgmt.uninstall(this.result).onsuccess = function onUninstall() { |
michael@0 | 32 | SimpleTest.finish(); |
michael@0 | 33 | } |
michael@0 | 34 | }; |
michael@0 | 35 | |
michael@0 | 36 | </script> |
michael@0 | 37 | </window> |