From b63430e1807bb95d9bb7fc7d0c19c77eb9b8ef0b Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 3 Apr 2013 16:35:30 -0400 Subject: [PATCH] Add link to bug on document.evaluate deprecation warnings --- chrome/content/zotero/xpcom/utilities.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index f42f48a2c..32f649a9b 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -1031,8 +1031,9 @@ Zotero.Utilities = { if(!Zotero.isIE || "evaluate" in rootDoc) { try { - var xpathObject = rootDoc.evaluate(xpath, element, nsResolver, 5, // 5 = ORDERED_NODE_ITERATOR_TYPE - null); + // This may result in a deprecation warning in the console due to + // https://bugzilla.mozilla.org/show_bug.cgi?id=674437 + var xpathObject = rootDoc.evaluate(xpath, element, nsResolver, 5 /*ORDERED_NODE_ITERATOR_TYPE*/, null); } catch(e) { // rethrow so that we get a stack throw new Error(e.name+": "+e.message);