diff options
author | Ehsan Akhgari <ehsan@mozilla.com> | 2010-09-10 12:49:36 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan@mozilla.com> | 2010-09-10 12:49:36 -0400 |
commit | b6249db8aca7e3163bfaef127585fc57869ee8bf (patch) | |
tree | 2b12cf1d914bf2f5ef84bc5037b264c67db48c99 /lib | |
parent | 24161f14294fd87449a61405755d1cad53aaeebb (diff) | |
download | bugzilla-triage-b6249db8aca7e3163bfaef127585fc57869ee8bf.tar.gz |
Use Chrome Authority to access the Cookie Manager API which requires chrome privileges
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cookiemanager.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cookiemanager.js b/lib/cookiemanager.js index 047b988..087d6ab 100644 --- a/lib/cookiemanager.js +++ b/lib/cookiemanager.js @@ -35,6 +35,7 @@ * ***** END LICENSE BLOCK ***** */ exports.getHostCookies = function getHostCookies(host) { + var {Cc, Ci} = require("chrome"); var cm = Cc["@mozilla.org/cookiemanager;1"]. getService(Ci.nsICookieManager2); var e = cm.getCookiesFromHost(host); |