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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /*
6 * Implementation of DOMSettableTokenList specified by HTML5.
7 */
9 #ifndef nsDOMSettableTokenList_h___
10 #define nsDOMSettableTokenList_h___
12 #include "nsDOMTokenList.h"
14 class nsIAtom;
16 // nsISupports must be on the primary inheritance chain
17 // because nsDOMSettableTokenList is traversed by Element.
18 class nsDOMSettableTokenList MOZ_FINAL : public nsDOMTokenList
19 {
20 public:
22 nsDOMSettableTokenList(mozilla::dom::Element* aElement, nsIAtom* aAttrAtom)
23 : nsDOMTokenList(aElement, aAttrAtom) {}
25 virtual JSObject* WrapObject(JSContext *cx) MOZ_OVERRIDE;
27 // WebIDL
28 void GetValue(nsAString& aResult) { Stringify(aResult); }
29 void SetValue(const nsAString& aValue, mozilla::ErrorResult& rv);
30 };
32 #endif // nsDOMSettableTokenList_h___