Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
6 const Ci = Components.interfaces;
8 function CookiePromptService() {
9 }
11 CookiePromptService.prototype = {
12 classID: Components.ID("{509b5540-c87c-11dd-ad8b-0800200c9a66}"),
13 QueryInterface: XPCOMUtils.generateQI([Ci.nsICookiePromptService]),
15 cookieDialog: function(parent, cookie, hostname,
16 cookiesFromHost, changingCookie,
17 rememberDecision) {
18 return 0;
19 }
20 };
22 this.NSGetFactory = XPCOMUtils.generateNSGetFactory([CookiePromptService]);