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 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "nsISupports.idl" |
michael@0 | 6 | |
michael@0 | 7 | /** |
michael@0 | 8 | * A scriptable interface to the nsXULAppAPI structure. See nsXULAppAPI.h for |
michael@0 | 9 | * a detailed description of each attribute. |
michael@0 | 10 | */ |
michael@0 | 11 | |
michael@0 | 12 | [scriptable, uuid(1518e7d2-022a-4dae-b02e-bbe7ffcf2145)] |
michael@0 | 13 | interface nsIXULAppInfo : nsISupports |
michael@0 | 14 | { |
michael@0 | 15 | /** |
michael@0 | 16 | * @see nsXREAppData.vendor |
michael@0 | 17 | * @returns an empty string if nsXREAppData.vendor is not set. |
michael@0 | 18 | */ |
michael@0 | 19 | readonly attribute ACString vendor; |
michael@0 | 20 | |
michael@0 | 21 | /** |
michael@0 | 22 | * @see nsXREAppData.name |
michael@0 | 23 | */ |
michael@0 | 24 | readonly attribute ACString name; |
michael@0 | 25 | |
michael@0 | 26 | /** |
michael@0 | 27 | * @see nsXREAppData.ID |
michael@0 | 28 | * @returns an empty string if nsXREAppData.ID is not set. |
michael@0 | 29 | */ |
michael@0 | 30 | readonly attribute ACString ID; |
michael@0 | 31 | |
michael@0 | 32 | /** |
michael@0 | 33 | * The version of the XUL application. It is different than the |
michael@0 | 34 | * version of the XULRunner platform. Be careful about which one you want. |
michael@0 | 35 | * |
michael@0 | 36 | * @see nsXREAppData.version |
michael@0 | 37 | * @returns an empty string if nsXREAppData.version is not set. |
michael@0 | 38 | */ |
michael@0 | 39 | readonly attribute ACString version; |
michael@0 | 40 | |
michael@0 | 41 | /** |
michael@0 | 42 | * The build ID/date of the application. For xulrunner applications, |
michael@0 | 43 | * this will be different than the build ID of the platform. Be careful |
michael@0 | 44 | * about which one you want. |
michael@0 | 45 | */ |
michael@0 | 46 | readonly attribute ACString appBuildID; |
michael@0 | 47 | |
michael@0 | 48 | /** |
michael@0 | 49 | * The version of the XULRunner platform. |
michael@0 | 50 | */ |
michael@0 | 51 | readonly attribute ACString platformVersion; |
michael@0 | 52 | |
michael@0 | 53 | /** |
michael@0 | 54 | * The build ID/date of gecko and the XULRunner platform. |
michael@0 | 55 | */ |
michael@0 | 56 | readonly attribute ACString platformBuildID; |
michael@0 | 57 | |
michael@0 | 58 | /** |
michael@0 | 59 | * @see nsXREAppData.UAName |
michael@0 | 60 | * @returns an empty string if nsXREAppData.UAName is not set. |
michael@0 | 61 | */ |
michael@0 | 62 | readonly attribute ACString UAName; |
michael@0 | 63 | }; |