Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Make it work with updated let keyword semantics in FireFox 44
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed Oct 13, 2015
1 parent 2ee3cda commit 6c1b52f
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 52 deletions.
5 changes: 0 additions & 5 deletions Firefox addon/KeeFox/chrome/content/KFUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;



keefox_win.UI = {

__ioService: null, // IO service for string -> nsIURI conversion
Expand Down
2 changes: 0 additions & 2 deletions Firefox addon/KeeFox/chrome/content/KFUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/
"use strict";

let Cu = Components.utils;

var KeeFoxMainThreadHandler = function(source, reason, result, mainWindow, browserWindow)
{
this.source = source;
Expand Down
3 changes: 0 additions & 3 deletions Firefox addon/KeeFox/chrome/content/PasswordSaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;

keefox_win.PasswordSaver = function(doc, saveData, URLs, saveButtonCallback)
{
this.doc = doc;
Expand Down
5 changes: 2 additions & 3 deletions Firefox addon/KeeFox/chrome/content/SearchFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;

keefox_win.SearchFilter = {
attachFilterToSearchBox: function (searchBox, searchRequestor, currentURIs) {
let inMainPanel = false;
Expand Down Expand Up @@ -82,6 +79,8 @@ keefox_win.SearchFilter = {

updateSearchFilterStart: function (searchFilter, current, currentURL) {
let doc = searchFilter.ownerDocument;
let Cc = Components.classes;
let Ci = Components.interfaces;

// If we've been given a URI we use only that one, otherwise we ask the content
// document to provide a list of all URLs at some future time
Expand Down
4 changes: 0 additions & 4 deletions Firefox addon/KeeFox/chrome/content/UninstallHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;

Cu.import("resource://gre/modules/Timer.jsm");

keefox_win.UninstallHelper = function()
Expand Down
2 changes: 0 additions & 2 deletions Firefox addon/KeeFox/chrome/content/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*/
"use strict";

let Cu = Components.utils;

Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://kfmod/kfDataModel.js");

Expand Down
4 changes: 0 additions & 4 deletions Firefox addon/KeeFox/chrome/content/formsSaveWin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;

/*
* Called after an HTTP auth (or similar dialog) submission.
*/
Expand Down
4 changes: 0 additions & 4 deletions Firefox addon/KeeFox/chrome/content/formsWin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;

// For tracking which KPRPC requests belong to which tab/framescript
keefox_win.requestorMap = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
*/
"use strict";

let Cu = Components.utils;

Cu.import("resource://kfmod/kfDataModel.js");

var formSubmitObserver = {
Expand Down
4 changes: 0 additions & 4 deletions Firefox addon/KeeFox/chrome/content/framescript/formsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;

Cu.import("resource://gre/modules/XPCOMUtils.jsm");

var findLoginOps = [];
Expand Down
5 changes: 5 additions & 0 deletions Firefox addon/KeeFox/chrome/content/framescript/keefoxTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ let Ci = Components.interfaces;
let Cu = Components.utils;

var keefox_tab = {};

keefox_tab.Cc = Components.classes;
keefox_tab.Ci = Components.interfaces;
keefox_tab.Cu = Components.utils;

keefox_tab.tabState = {};

keefox_tab.scriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
Expand Down
4 changes: 0 additions & 4 deletions Firefox addon/KeeFox/chrome/content/keefoxWin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;

var keefox_win = {};

Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Expand Down
6 changes: 0 additions & 6 deletions Firefox addon/KeeFox/chrome/content/notificationManagerWin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;



keefox_win.notificationManager = {

// priorities (subset of old Firefox notification priorities to ease transition
Expand Down
2 changes: 0 additions & 2 deletions Firefox addon/KeeFox/chrome/content/options.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

let Cu = Components.utils;

function onLoad(){
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
Expand Down
2 changes: 0 additions & 2 deletions Firefox addon/KeeFox/chrome/content/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
*/
"use strict";

let Cu = Components.utils;

Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://kfmod/kfDataModel.js");

Expand Down
4 changes: 0 additions & 4 deletions Firefox addon/KeeFox/chrome/content/persistentPanelWin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
*/
"use strict";

let Cc = Components.classes;
let Ci = Components.interfaces;
let Cu = Components.utils;

keefox_win.persistentPanel = {
thePanel: null,
onTabSelected: function () {
Expand Down
2 changes: 1 addition & 1 deletion Firefox addon/KeeFox/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<Description about="urn:mozilla:install-manifest">
<em:id>[email protected]</em:id>
<em:version>1.5.4a1</em:version>
<em:version>1.5.4a2</em:version>
<em:type>2</em:type>
<em:unpack>true</em:unpack>
<em:multiprocessCompatible>true</em:multiprocessCompatible>
Expand Down

0 comments on commit 6c1b52f

Please sign in to comment.