From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- browser/extensions/webcompat/bootstrap.js | 9 ++++++ browser/extensions/webcompat/install.rdf.in | 32 ++++++++++++++++++++++ browser/extensions/webcompat/moz.build | 18 ++++++++++++ .../extensions/webcompat/test/browser/.eslintrc.js | 7 +++++ .../extensions/webcompat/test/browser/browser.ini | 3 ++ .../test/browser/browser_check_installed.js | 13 +++++++++ 6 files changed, 82 insertions(+) create mode 100644 browser/extensions/webcompat/bootstrap.js create mode 100644 browser/extensions/webcompat/install.rdf.in create mode 100644 browser/extensions/webcompat/moz.build create mode 100644 browser/extensions/webcompat/test/browser/.eslintrc.js create mode 100644 browser/extensions/webcompat/test/browser/browser.ini create mode 100644 browser/extensions/webcompat/test/browser/browser_check_installed.js (limited to 'browser/extensions/webcompat') diff --git a/browser/extensions/webcompat/bootstrap.js b/browser/extensions/webcompat/bootstrap.js new file mode 100644 index 000000000..19141a0f5 --- /dev/null +++ b/browser/extensions/webcompat/bootstrap.js @@ -0,0 +1,9 @@ +/* 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"; +function startup() {} +function shutdown() {} +function install() {} +function uninstall() {} diff --git a/browser/extensions/webcompat/install.rdf.in b/browser/extensions/webcompat/install.rdf.in new file mode 100644 index 000000000..2c4406f25 --- /dev/null +++ b/browser/extensions/webcompat/install.rdf.in @@ -0,0 +1,32 @@ + + + +#filter substitution + + + + + webcompat@mozilla.org + 1.0 + 2 + true + true + + + + + {ec8030f7-c20a-464f-9b0e-13a3a9e97384} + @MOZ_APP_VERSION@ + @MOZ_APP_MAXVERSION@ + + + + + Web Compat + Urgent post-release fixes for web compatibility. + + diff --git a/browser/extensions/webcompat/moz.build b/browser/extensions/webcompat/moz.build new file mode 100644 index 000000000..2423511b4 --- /dev/null +++ b/browser/extensions/webcompat/moz.build @@ -0,0 +1,18 @@ +# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# 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/. + +DEFINES['MOZ_APP_VERSION'] = CONFIG['MOZ_APP_VERSION'] +DEFINES['MOZ_APP_MAXVERSION'] = CONFIG['MOZ_APP_MAXVERSION'] + +FINAL_TARGET_FILES.features['webcompat@mozilla.org'] += [ + 'bootstrap.js' +] + +FINAL_TARGET_PP_FILES.features['webcompat@mozilla.org'] += [ + 'install.rdf.in' +] + +BROWSER_CHROME_MANIFESTS += ['test/browser/browser.ini'] diff --git a/browser/extensions/webcompat/test/browser/.eslintrc.js b/browser/extensions/webcompat/test/browser/.eslintrc.js new file mode 100644 index 000000000..7c8021192 --- /dev/null +++ b/browser/extensions/webcompat/test/browser/.eslintrc.js @@ -0,0 +1,7 @@ +"use strict"; + +module.exports = { + "extends": [ + "../../../../../testing/mochitest/browser.eslintrc.js" + ] +}; diff --git a/browser/extensions/webcompat/test/browser/browser.ini b/browser/extensions/webcompat/test/browser/browser.ini new file mode 100644 index 000000000..500224636 --- /dev/null +++ b/browser/extensions/webcompat/test/browser/browser.ini @@ -0,0 +1,3 @@ +[DEFAULT] + +[browser_check_installed.js] diff --git a/browser/extensions/webcompat/test/browser/browser_check_installed.js b/browser/extensions/webcompat/test/browser/browser_check_installed.js new file mode 100644 index 000000000..b77458054 --- /dev/null +++ b/browser/extensions/webcompat/test/browser/browser_check_installed.js @@ -0,0 +1,13 @@ +"use strict"; + +add_task(function* test_enabled() { + let addon = yield new Promise( + resolve => AddonManager.getAddonByID("webcompat@mozilla.org", resolve) + ); + isnot(addon, null, "Check addon exists"); + is(addon.version, "1.0", "Check version"); + is(addon.name, "Web Compat", "Check name"); + ok(addon.isCompatible, "Check application compatibility"); + ok(!addon.appDisabled, "Check not app disabled"); + ok(addon.isActive, "Check addon is active"); +}); -- cgit v1.2.3