extensions/cookie/test/unit/cookieprompt.js

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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]);

mercurial