From acd8d5db677222300a606f19a0825eede324e673 Mon Sep 17 00:00:00 2001 From: Isaac Schemm Date: Wed, 16 May 2018 10:11:21 -0500 Subject: [PATCH] Disable some Firefox-specific tests for the SeaMonkey extension --- extensions/seamonkey/.eslintrc | 5 +++++ extensions/seamonkey/chrome/content.js | 1 - extensions/seamonkey/content/PdfJs.jsm | 1 - extensions/seamonkey/content/PdfJsNetwork.jsm | 5 ----- extensions/seamonkey/content/PdfStreamConverter.jsm | 1 - extensions/seamonkey/content/PdfjsChromeUtils.jsm | 1 - extensions/seamonkey/content/PdfjsContentUtils.jsm | 1 - 7 files changed, 5 insertions(+), 10 deletions(-) diff --git a/extensions/seamonkey/.eslintrc b/extensions/seamonkey/.eslintrc index ac538caa53de7..ffed204617719 100644 --- a/extensions/seamonkey/.eslintrc +++ b/extensions/seamonkey/.eslintrc @@ -24,5 +24,10 @@ "constructor-super": "error", "no-confusing-arrow": "error", "no-useless-constructor": "error", + + // Rules disabled for SeaMonkey extension + "mozilla/no-define-cc-etc": "off", + "mozilla/use-cc-etc": "off", + "mozilla/use-chromeutils-import": "off", }, } diff --git a/extensions/seamonkey/chrome/content.js b/extensions/seamonkey/chrome/content.js index 50b9600eff0bf..0538aab6cb104 100644 --- a/extensions/seamonkey/chrome/content.js +++ b/extensions/seamonkey/chrome/content.js @@ -19,7 +19,6 @@ (function contentScriptClosure() { // we need to use closure here -- we are running in the global context - const Cc = Components.classes; const Ci = Components.interfaces; const Cm = Components.manager; const Cu = Components.utils; diff --git a/extensions/seamonkey/content/PdfJs.jsm b/extensions/seamonkey/content/PdfJs.jsm index 071003327ff3d..98cb0e134ff18 100644 --- a/extensions/seamonkey/content/PdfJs.jsm +++ b/extensions/seamonkey/content/PdfJs.jsm @@ -19,7 +19,6 @@ var EXPORTED_SYMBOLS = ["PdfJs"]; const Cc = Components.classes; const Ci = Components.interfaces; -const Cr = Components.results; const Cm = Components.manager; const Cu = Components.utils; diff --git a/extensions/seamonkey/content/PdfJsNetwork.jsm b/extensions/seamonkey/content/PdfJsNetwork.jsm index 4c939a8ea4d70..bbb1312eda923 100644 --- a/extensions/seamonkey/content/PdfJsNetwork.jsm +++ b/extensions/seamonkey/content/PdfJsNetwork.jsm @@ -19,11 +19,6 @@ Components.utils.import("resource://gre/modules/Services.jsm"); var EXPORTED_SYMBOLS = ["NetworkManager"]; -function log(aMsg) { - var msg = "PdfJsNetwork.jsm: " + (aMsg.join ? aMsg.join("") : aMsg); - Services.console.logStringMessage(msg); -} - var NetworkManager = (function NetworkManagerClosure() { const OK_RESPONSE = 200; diff --git a/extensions/seamonkey/content/PdfStreamConverter.jsm b/extensions/seamonkey/content/PdfStreamConverter.jsm index e873472f511c6..1171cdc027ff1 100644 --- a/extensions/seamonkey/content/PdfStreamConverter.jsm +++ b/extensions/seamonkey/content/PdfStreamConverter.jsm @@ -23,7 +23,6 @@ const Cr = Components.results; const Cu = Components.utils; const PDFJS_EVENT_ID = "pdf.js.message"; -const PDF_CONTENT_TYPE = "application/pdf"; const PREF_PREFIX = "PDFJSSCRIPT_PREF_PREFIX"; const PDF_VIEWER_WEB_PAGE = "resource://pdf.js/web/viewer.html"; const MAX_NUMBER_OF_PREFS = 50; diff --git a/extensions/seamonkey/content/PdfjsChromeUtils.jsm b/extensions/seamonkey/content/PdfjsChromeUtils.jsm index 27ca7b170013c..7554ee2e23d62 100644 --- a/extensions/seamonkey/content/PdfjsChromeUtils.jsm +++ b/extensions/seamonkey/content/PdfjsChromeUtils.jsm @@ -19,7 +19,6 @@ var EXPORTED_SYMBOLS = ["PdfjsChromeUtils"]; const Cc = Components.classes; const Ci = Components.interfaces; -const Cr = Components.results; const Cu = Components.utils; const PREF_PREFIX = "PDFJSSCRIPT_PREF_PREFIX"; diff --git a/extensions/seamonkey/content/PdfjsContentUtils.jsm b/extensions/seamonkey/content/PdfjsContentUtils.jsm index 0a51b5fd4c42b..7a15b970a107c 100644 --- a/extensions/seamonkey/content/PdfjsContentUtils.jsm +++ b/extensions/seamonkey/content/PdfjsContentUtils.jsm @@ -19,7 +19,6 @@ var EXPORTED_SYMBOLS = ["PdfjsContentUtils"]; const Cc = Components.classes; const Ci = Components.interfaces; -const Cr = Components.results; const Cu = Components.utils; Cu.import("resource://gre/modules/XPCOMUtils.jsm");