aboutsummaryrefslogtreecommitdiffstats
path: root/lib/main.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan@mozilla.com>2010-05-31 00:59:00 -0400
committerEhsan Akhgari <ehsan@mozilla.com>2010-05-31 00:59:00 -0400
commitced6558b039bd1369715f94fc4cf902076082389 (patch)
treef07760ba4f3fe6262167ec61a9301bf2ca6d6483 /lib/main.js
parentb94aade3d4867c5a2a9aa3948ff54b671c31d570 (diff)
downloadbugzilla-triage-ced6558b039bd1369715f94fc4cf902076082389.tar.gz
Don't pass cookie XPCOM objects across package boundaries
Diffstat (limited to 'lib/main.js')
-rw-r--r--lib/main.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js
index 694e3d0..8b4181a 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -1040,9 +1040,8 @@ function autoCompleteUser(doc, field, multiple) {
var bzCookies = require("cookiemanager").getHostCookies("bugzilla.mozilla.org");
var loginID = null, auth = null;
- while (bzCookies.hasMoreElements()) {
- var cookie = bzCookies.getNext();
- cookie.QueryInterface(Components.interfaces.nsICookie);
+ for (var i = 0; i < bzCookies.length; ++i) {
+ var cookie = bzCookies[i];
switch (cookie.name) {
case "Bugzilla_login":
loginID = cookie.value;