mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
[PALEMOON] [frontend vs backend] Part 2: Mass-replace global-scope let/const with var in Pale Moon and TychoAM
Issue #155
Part 2 for:
931950a880
This commit is contained in:
parent
f5ddf51953
commit
10ec23e5a8
17 changed files with 43 additions and 39 deletions
|
|
@ -3098,6 +3098,8 @@ const BrowserSearch = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
XPCOMUtils.defineConstant(this, "BrowserSearch", BrowserSearch);
|
||||||
|
|
||||||
function FillHistoryMenu(aParent) {
|
function FillHistoryMenu(aParent) {
|
||||||
// Lazily add the hover listeners on first showing and never remove them
|
// Lazily add the hover listeners on first showing and never remove them
|
||||||
if (!aParent.hasStatusListener) {
|
if (!aParent.hasStatusListener) {
|
||||||
|
|
@ -6770,7 +6772,7 @@ function getTabModalPromptBox(aWindow) {
|
||||||
function getBrowser() gBrowser;
|
function getBrowser() gBrowser;
|
||||||
function getNavToolbox() gNavToolbox;
|
function getNavToolbox() gNavToolbox;
|
||||||
|
|
||||||
let gPrivateBrowsingUI = {
|
var gPrivateBrowsingUI = {
|
||||||
init: function PBUI_init() {
|
init: function PBUI_init() {
|
||||||
// Do nothing for normal windows
|
// Do nothing for normal windows
|
||||||
if (!PrivateBrowsingUtils.isWindowPrivate(window)) {
|
if (!PrivateBrowsingUtils.isWindowPrivate(window)) {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
Cu.import("resource://gre/modules/LoadContextInfo.jsm");
|
Cu.import("resource://gre/modules/LoadContextInfo.jsm");
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
|
|
||||||
var gSanitizePromptDialog = {
|
var gSanitizePromptDialog = {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
Cu.import("resource://services-common/utils.js");
|
Cu.import("resource://services-common/utils.js");
|
||||||
Cu.import("resource://services-sync/main.js");
|
Cu.import("resource://services-sync/main.js");
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
Cu.import("resource://services-sync/main.js");
|
Cu.import("resource://services-sync/main.js");
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
|
|
||||||
Components.utils.import("resource://services-sync/main.js");
|
Components.utils.import("resource://services-sync/main.js");
|
||||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Cr = Components.results;
|
var Cr = Components.results;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
// page consts
|
// page consts
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
this.EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
|
this.EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
|
||||||
|
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Cr = Components.results;
|
var Cr = Components.results;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
const DISTRIBUTION_CUSTOMIZATION_COMPLETE_TOPIC =
|
const DISTRIBUTION_CUSTOMIZATION_COMPLETE_TOPIC =
|
||||||
"distribution-customization-complete";
|
"distribution-customization-complete";
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
var gStateObject;
|
var gStateObject;
|
||||||
var gTreeData;
|
var gTreeData;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ function debug(msg) {
|
||||||
* Listens for and handles content events that we need for the
|
* Listens for and handles content events that we need for the
|
||||||
* session store service to be notified of state changes in content.
|
* session store service to be notified of state changes in content.
|
||||||
*/
|
*/
|
||||||
let EventListener = {
|
var EventListener = {
|
||||||
|
|
||||||
DOM_EVENTS: [
|
DOM_EVENTS: [
|
||||||
"pageshow", "change", "input"
|
"pageshow", "change", "input"
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
const Cr = Components.results;
|
var Cr = Components.results;
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
Cu.import("resource://gre/modules/AddonManager.jsm");
|
Cu.import("resource://gre/modules/AddonManager.jsm");
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@ Components.utils.import("resource://gre/modules/AddonManager.jsm");
|
||||||
Components.utils.import("resource://gre/modules/addons/AddonRepository.jsm");
|
Components.utils.import("resource://gre/modules/addons/AddonRepository.jsm");
|
||||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
|
|
||||||
var gView = null;
|
var gView = null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
var {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
||||||
|
|
||||||
var {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
|
var {Services} = Cu.import("resource://gre/modules/Services.jsm", {});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
this.EXPORTED_SYMBOLS = [];
|
this.EXPORTED_SYMBOLS = [];
|
||||||
|
|
||||||
|
|
@ -58,6 +58,7 @@ const GMP_PLUGINS = [
|
||||||
optionsURL: "chrome://mozapps/content/extensions/gmpPrefs.xul",
|
optionsURL: "chrome://mozapps/content/extensions/gmpPrefs.xul",
|
||||||
isEME: true
|
isEME: true
|
||||||
}];
|
}];
|
||||||
|
XPCOMUtils.defineConstant(this, "GMP_PLUGINS", GMP_PLUGINS);
|
||||||
|
|
||||||
XPCOMUtils.defineLazyGetter(this, "pluginsBundle",
|
XPCOMUtils.defineLazyGetter(this, "pluginsBundle",
|
||||||
() => Services.strings.createBundle("chrome://global/locale/plugins.properties"));
|
() => Services.strings.createBundle("chrome://global/locale/plugins.properties"));
|
||||||
|
|
|
||||||
|
|
@ -144,6 +144,7 @@ const FIREFOX_APPCOMPATVERSION = "56.9"
|
||||||
|
|
||||||
// The value for this is in Makefile.in
|
// The value for this is in Makefile.in
|
||||||
#expand const DB_SCHEMA = __MOZ_EXTENSIONS_DB_SCHEMA__;
|
#expand const DB_SCHEMA = __MOZ_EXTENSIONS_DB_SCHEMA__;
|
||||||
|
XPCOMUtils.defineConstant(this, "DB_SCHEMA", DB_SCHEMA);
|
||||||
#ifdef MOZ_DEVTOOLS
|
#ifdef MOZ_DEVTOOLS
|
||||||
const NOTIFICATION_TOOLBOXPROCESS_LOADED = "ToolboxProcessLoaded";
|
const NOTIFICATION_TOOLBOXPROCESS_LOADED = "ToolboxProcessLoaded";
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
const Cc = Components.classes;
|
var Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
var Ci = Components.interfaces;
|
||||||
const Cr = Components.results;
|
var Cr = Components.results;
|
||||||
const Cu = Components.utils;
|
var Cu = Components.utils;
|
||||||
|
|
||||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
Cu.import("resource://gre/modules/Services.jsm");
|
Cu.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue