Skip to content

Commit

Permalink
Bug 907509 - Uplift Addon SDK to fx-team
Browse files Browse the repository at this point in the history
  • Loading branch information
KWierso committed Aug 21, 2013
1 parent 25d85da commit 0563e70
Show file tree
Hide file tree
Showing 124 changed files with 949 additions and 1,334 deletions.
3 changes: 0 additions & 3 deletions addon-sdk/source/app-extension/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 expandtab */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down Expand Up @@ -222,8 +221,6 @@ function startup(data, reasonCode) {
resultFile: options.resultFile,
// Arguments passed as --static-args
staticArgs: options.staticArgs,
// Add-on preferences branch name
preferencesBranch: options.preferencesBranch,

// Arguments related to test runner.
modules: {
Expand Down
2 changes: 1 addition & 1 deletion addon-sdk/source/lib/method/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function Method(hint) {
// in the host object's prototype chain. This avoids memory
// leaks that otherwise could happen when saving JS objects
// on host object.
host[value["!" + name]] ||
host[value["!" + name] || void(0)] ||
// Otherwise attempt to lookup implementation for builtins by
// a type of the value. This basically makes sure that all
// non primitive values will delegate to an `Object`.
Expand Down
6 changes: 1 addition & 5 deletions addon-sdk/source/lib/sdk/addon/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

module.metadata = {
"stability": "experimental",
"engines": {
// TODO Fennec Support in bug 894515
"Firefox": "*"
}
"stability": "experimental"
};

const { Cc, Ci, Cu } = require("chrome");
Expand Down
19 changes: 14 additions & 5 deletions addon-sdk/source/lib/sdk/addon/runner.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* vim:set ts=2 sw=2 sts=2 expandtab */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

module.metadata = {
"stability": "experimental"
Expand All @@ -15,6 +13,7 @@ const { exit, env, staticArgs } = require('../system');
const { when: unload } = require('../system/unload');
const { loadReason } = require('../self');
const { rootURI } = require("@loader/options");
const cfxArgs = require("@test/options");
const globals = require('../system/globals');
const xulApp = require('../system/xul-app');
const appShellService = Cc['@mozilla.org/appshell/appShellService;1'].
Expand Down Expand Up @@ -103,7 +102,11 @@ function startup(reason, options) {
// Run the addon even in case of error (best effort approach)
require('../l10n/loader').
load(rootURI).
then(null, function failure(error) {
then(function l10nSuccess() {
if (cfxArgs.parseable) {
console.info("localization information has loaded successfully.");
}
}, function l10nFailure(error) {
console.info("Error while loading localization: " + error.message);
}).
then(function onLocalizationReady(data) {
Expand All @@ -112,6 +115,10 @@ function startup(reason, options) {
definePseudo(options.loader, '@l10n/data', data ? data : null);
return ready;
}).then(function() {
if (cfxArgs.parseable) {
console.info("addon window has loaded successfully.");
}

run(options);
}).then(null, console.exception);
}
Expand All @@ -130,6 +137,7 @@ function run(options) {
catch(error) {
console.exception(error);
}

// Initialize inline options localization, without preventing addon to be
// run in case of error
try {
Expand Down Expand Up @@ -159,7 +167,8 @@ function run(options) {
quit: exit
});
}
} catch (error) {
}
catch (error) {
console.exception(error);
throw error;
}
Expand Down
4 changes: 1 addition & 3 deletions addon-sdk/source/lib/sdk/addon/window.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
"use strict";

module.metadata = {
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 1 addition & 1 deletion addon-sdk/source/lib/sdk/console/plain-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SDK_LOG_LEVEL_PREF = "extensions.sdk.console.logLevel";

let logLevel = DEFAULT_LOG_LEVEL;
function setLogLevel() {
logLevel = prefs.get(ADDON_LOG_LEVEL_PREF,
logLevel = prefs.get(ADDON_LOG_LEVEL_PREF,
prefs.get(SDK_LOG_LEVEL_PREF,
DEFAULT_LOG_LEVEL));
}
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/content/content.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/content/loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/content/mod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/content/symbiont.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/content/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/content/worker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
5 changes: 1 addition & 4 deletions addon-sdk/source/lib/sdk/core/heritage.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/* vim:set ts=2 sw=2 sts=2 expandtab */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
'use strict';

module.metadata = {
Expand Down
4 changes: 0 additions & 4 deletions addon-sdk/source/lib/sdk/core/promise.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 expandtab */
/*jshint undef: true es5: true node: true browser: true devel: true
forin: true latedef: false */
/*global define: true, Cu: true, __URI__: true */
;(function(id, factory) { // Module boilerplate :(
if (typeof(define) === 'function') { // RequireJS
define(factory);
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/deprecated/api-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
3 changes: 1 addition & 2 deletions addon-sdk/source/lib/sdk/deprecated/cortex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* vim:set ts=2 sw=2 sts=2
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/deprecated/events/assembler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
3 changes: 1 addition & 2 deletions addon-sdk/source/lib/sdk/deprecated/light-traits.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* vim:ts=2:sts=2:sw=2:
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
3 changes: 1 addition & 2 deletions addon-sdk/source/lib/sdk/deprecated/unit-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* vim:st=2:sts=2:sw=2:
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/dom/events.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/dom/events/keys.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/event/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/event/target.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/frame/hidden-frame.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/hotkeys.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
3 changes: 1 addition & 2 deletions addon-sdk/source/lib/sdk/io/buffer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
"use strict";

module.metadata = {
Expand Down
4 changes: 1 addition & 3 deletions addon-sdk/source/lib/sdk/io/byte-streams.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim:set ts=2 sw=2 sts=2 et filetype=javascript
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
5 changes: 2 additions & 3 deletions addon-sdk/source/lib/sdk/io/fs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
"use strict";

module.metadata = {
Expand Down Expand Up @@ -927,4 +926,4 @@ exports.unwatchFile = unwatchFile;
function watch(path, options, listener) {
throw Error("Not implemented");
}
exports.watch = watch;
exports.watch = watch;
3 changes: 1 addition & 2 deletions addon-sdk/source/lib/sdk/io/stream.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
"use strict";

module.metadata = {
Expand Down
4 changes: 1 addition & 3 deletions addon-sdk/source/lib/sdk/io/text-streams.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim:set ts=2 sw=2 sts=2 et filetype=javascript
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/keyboard/hotkeys.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/keyboard/observer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/keyboard/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
3 changes: 1 addition & 2 deletions addon-sdk/source/lib/sdk/lang/type.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* vim:ts=2:sts=2:sw=2:
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
5 changes: 1 addition & 4 deletions addon-sdk/source/lib/sdk/loader/cuddlefish.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/* vim:set ts=2 sw=2 sts=2 expandtab */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
'use strict';

module.metadata = {
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/loader/sandbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
4 changes: 1 addition & 3 deletions addon-sdk/source/lib/sdk/notifications.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim:set ts=2 sw=2 sts=2 et filetype=javascript
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/page-mod.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/page-worker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/passwords.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
1 change: 0 additions & 1 deletion addon-sdk/source/lib/sdk/passwords/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/places/contract.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
3 changes: 1 addition & 2 deletions addon-sdk/source/lib/sdk/self.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* vim:st=2:sts=2:sw=2:
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
"use strict";
Expand Down
4 changes: 1 addition & 3 deletions addon-sdk/source/lib/sdk/simple-prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ const { emit, off } = require("./event/core");
const { when: unload } = require("./system/unload");
const { PrefsTarget } = require("./preferences/event-target");
const { id } = require("./self");
const { preferencesBranch } = require('@loader/options');

const observers = require("./deprecated/observer-service");

const ADDON_BRANCH = "extensions." + preferencesBranch + ".";
const ADDON_BRANCH = "extensions." + id + ".";
const BUTTON_PRESSED = id + "-cmdPressed";

const target = PrefsTarget({ branchName: ADDON_BRANCH });
Expand Down
4 changes: 1 addition & 3 deletions addon-sdk/source/lib/sdk/simple-storage.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim:set ts=2 sw=2 sts=2 et filetype=javascript
* This Source Code Form is subject to the terms of the Mozilla Public
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */

Expand Down
2 changes: 0 additions & 2 deletions addon-sdk/source/lib/sdk/stylesheet/style.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
Expand Down
Loading

0 comments on commit 0563e70

Please sign in to comment.