Commit Graph

4483 Commits

Author SHA1 Message Date
Dave Townsend
558a3fca62 Bug 1228359: Allow experiments to register chrome. r=felipe
Simple obvious fix. Adds tests by making BootstrapMonitor (which
test_experiments.js and others use for verifying bootstrap startup and shutdown)
verify the list of registered chrome manifests at various points. Without the
fix this makes test_experiment fail as expected.
2015-11-27 12:44:22 -08:00
Kris Maglione
cec61e6961 Bug 1192435: Support updates for WebExtensions. r=Mossop 2015-11-17 16:23:15 -08:00
Johann Hofmann
4bfc6f1e8c Bug 1200674 - Allow flexible icon sizes in ExtensionUtils. r=dtownsend 2015-11-24 18:20:26 +01:00
Robert Helmer
96d1a54534 Bug 1209341 - allow loading unsigned restartless add-ons at runtime. r=mossop 2015-11-03 10:07:08 -08:00
Jim Chen
71b77b9a88 Bug 1221270 - Let AddonUpdateService use AddonManagerPrivate to check for updates; r=mfinkle
The Android-specific AddonUpdateService has a bit of redundant code
because AddonManagerPrivate has a backgroundUpdateCheck method that does
a lot of the same thing. This patch makes AddonUpdateService call that
method so there's less code and more consistency.

This requires flipping the "extensions.update.enabled" pref, which was
disabled in bug 528588 for showing the XUL addon update dialog. I don't
think this is relevant anymore in native Fennec and with the later
rewrite of AddonManager, so I'm fairly certain it's okay to flip that
pref.

The patch also disables the AddonManager update timer because we have
our own update timer on Android.
2015-11-23 23:31:49 -05:00
Christoph Kerschbaumer
4c605d31cb Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-20 10:56:55 -08:00
Gijs Kruitbosch
2ee7d35854 Bug 1191468 - always load app dir add-ons irrespective of enabledScopes, r=Mossop,froydnj 2015-11-17 13:55:31 +00:00
Carsten "Tomcat" Book
bee53c8625 Merge mozilla-central to fx-team 2015-11-19 15:24:02 +01:00
Carsten "Tomcat" Book
8c38596e70 merge mozilla-inbound to mozilla-central a=merge 2015-11-19 14:44:11 +01:00
Nigel Babu
174d79f200 Backed out changeset 9155ee3d42d8 (bug 1182546) for Android M(c) bustage 2015-11-19 14:26:20 +05:30
Gijs Kruitbosch
8362f8f434 Bug 1040005 - fix nsHelperAppDlg.js to cope with always ask in combination with a preferred helper app, r=mconley 2015-11-17 16:56:16 +00:00
Dave Townsend
f478a4b069 Bug 1220911: Remove most of the special casing around experiments. r=rhelmer
Experiments should differ from normal add-ons in a few ways:

* They can always be enabled regardless of compatibility info
* They default to disabled when installed
* They cannot be checked for updates
* They only stay enabled for the lifetime of the current process
* The UI doesn't give users the ability to enable/disable

This makes a few changes to keep these differences but remove much of the special casing code for experiments.

Being able to use regardless of compatibility was mostly fixed by bug 1220198 but I've also removed the redundant override in isCompatible.

Previously the "enabled until restart" feature worked with by not updating the DBAddonInternal object and instead using a hack to make the wrapper still seem enabled. This seems likely to break other code that relies on the state of the DBAddonInternal object so instead we update that as normal and simply don't persist the enabled state to disk.

Also switch the DBAddonInteral.prototype code to use some newer JS features.

I've removed the hack from addon.permissions which was hiding the enable/disable buttons in the UI and instead just hidden them in the UI stylesheet. This makes the API make sense and means callers can use addon.permissions to verify that enabling will work.
2015-11-09 15:02:29 -08:00
Dave Townsend
ea9d8c6a76 Bug 1220911: Switch test_experiment.js to task style. r=rhelmer
Before changing the handling of experiments make the tests a bit more readable
and use BootstrapMonitor to verify things.
2015-11-09 15:02:05 -08:00
Dave Townsend
c5bfb6b827 Bug 1225629: Always verify signatures for hotfixes and system add-on updates. r=rhelmer 2015-11-17 14:05:04 -08:00
Mike Hommey
21ea6a1c90 Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
Christoph Kerschbaumer
bfa00b54c4 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Christoph Kerschbaumer
3ff59d2c04 Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-18 19:25:03 -08:00
Mike Hommey
c15f45a0d4 Bug 1216371 - Use the PiecemealFormatter for the OmniJarFormatter. r=gps 2015-11-19 08:05:51 +09:00
Andrew Halberstadt
e7ce0828a2 Bug 1219442 - Re-write specialpowers as a restartless addon, r=jmaher
In order to meet the addon signing requirement for tests, specialpowers
needs to be installed at gecko runtime. This means it must be restartless.
This patch packages specialpowers as a restartless addon, but it does not
yet install it at runtime.
2015-11-05 10:00:59 -05:00
Mark Goodwin
d349a25c8e Bug 1224467 - Add a preference for controlling whether oneCRL blocklists are updated via AMO. Also add a test. r=keeler,mossop 2015-11-18 11:53:54 +00:00
Nigel Babu
cf11bc894c Backed out changeset 46eadccf444d (bug 1223435) 2015-11-16 16:03:18 +05:30
Christoph Kerschbaumer
4c9499e970 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Mike Hommey
c248dd34b4 Bug 1222323 - Avoid passing extra defines to the compiler from config.mk. r=gps
C/C++ code should not be relying on XPI_NAME or AB_CD being defined, so
moving them out works.
2015-11-14 08:40:54 +09:00
Bill McCloskey
7f0b500571 Bug 967873 - Fix some recently enabled tests 2015-11-11 16:24:34 -08:00
Nick Alexander
3ba90b4e47 Bug 938994 - Move build/mobile/robocop into mobile/android/tests/browser/robocop. r=gbrown
This builds the Robocop tests with |mach build mobile/android|, making
it easier for developers to build Fennec and the tests at the same
time.
2015-11-09 12:55:38 -08:00
Wes Kocher
98dbbbe89e Merge m-c to fx-team, a=merge 2015-11-05 18:47:26 -08:00
Wes Kocher
22c6858903 Merge inbound to central, a=merge 2015-11-05 18:44:24 -08:00
Kris Maglione
01f0997d2c Bug 1192433: Part 3 - Support localized names and descriptions in WebExtension manifests. r=Mossop 2015-11-02 16:50:42 -08:00
Carsten "Tomcat" Book
d47bd77a6f Merge mozilla-central to fx-team 2015-11-05 12:17:28 +01:00
Andrew McCreight
539c3b4785 Bug 1221185 - Enable more e10s tests in toolkit/mozapps/extensions/test/browser/. r=felipe 2015-11-03 09:12:00 +01:00
aleth
15b414b395 Bug 1221356 - Don't package mozharness for Thunderbird builds. r=gps 2015-11-04 01:26:46 +01:00
Carsten "Tomcat" Book
7fd446b11f merge mozilla-inbound to mozilla-central a=merge 2015-11-04 11:59:46 +01:00
Kris Maglione
ce6bf11d43 Bug 1213632: Prevent WebExtensions from using versioned JavaScript. r=billm 2015-10-22 23:25:43 -07:00
Dave Townsend
6fbdb4ec02 Bug 1220198: Never appDisable experiments if they don't have the right app compatibility information available. r=rhelmer 2015-11-02 11:15:12 -08:00
Matt Howell
ac8a5113c6 Bug 1205843 - Part 2: Disable maintenance service on WinXP < SP3 - r=rstrong
Attempt to get around the fact that XP SP2 (and below) systems won't be able to
handle Authenticode signatues with SHA-2 digests by disabling the maintenance
service, the only thing on our update path that uses Authenticode, on systems
running WinXP below SP3.

This patch both prevents the service from being included in new installations,
and prevents the service from being used where it is already installed.
2015-10-27 14:31:34 -07:00
Kris Maglione
3767292a88 Bug 1214058: Part 2 - Run add-on update tests against comparable JSON and RDF manifests. r=Mossop
I tried to keep the changes to existing tests as minimal as
possible. There were a few exceptions, though:

* test_update_ignorecompat.js was completely broken. I couldn't
  figure out why it was suddenly failing after I changed it to use
  `add_test`, and it turned out that it had been failing all along,
  but in a way that the harness didn't pick up.

* I changed most of the `do_throw` in update callbacks to `ok(false`
  because it took me about an hour to figure out where the test was
  failing when I hit one of them.

* I made some changes to sync `test_update.js` and `test_update_ignorecompat.js`
  where one appeared to have been changed without updating the
  other.

* I made `promiseFindAddonUpdates` a bit more generic, because I was
  planning to convert most of `test_update.js` to use it, rather
  than nested callbacks. I changed my mind a quarter of the way
  through, but decided to keep the changes, since they'll probably
  be useful elsewhere.
2015-10-19 09:18:42 -07:00
Kris Maglione
7ffbc9e953 Bug 1214058: Part 1 - Add a simplified JSON-based add-on update protocol. r=Mossop 2015-11-03 14:49:46 -08:00
Wes Kocher
1aa2dd2be4 Backed out 2 changesets (bug 1214058) for xpcshell bustage
Backed out changeset 90e625ac70b2 (bug 1214058)
Backed out changeset a4d5d63a03ef (bug 1214058)
2015-11-03 16:06:23 -08:00
Kris Maglione
411a416b0e Bug 1214058: Part 2 - Run add-on update tests against comparable JSON and RDF manifests. r=Mossop
I tried to keep the changes to existing tests as minimal as
possible. There were a few exceptions, though:

* test_update_ignorecompat.js was completely broken. I couldn't
  figure out why it was suddenly failing after I changed it to use
  `add_test`, and it turned out that it had been failing all along,
  but in a way that the harness didn't pick up.

* I changed most of the `do_throw` in update callbacks to `ok(false`
  because it took me about an hour to figure out where the test was
  failing when I hit one of them.

* I made some changes to sync `test_update.js` and `test_update_ignorecompat.js`
  where one appeared to have been changed without updating the
  other.

* I made `promiseFindAddonUpdates` a bit more generic, because I was
  planning to convert most of `test_update.js` to use it, rather
  than nested callbacks. I changed my mind a quarter of the way
  through, but decided to keep the changes, since they'll probably
  be useful elsewhere.
2015-10-19 09:18:42 -07:00
Kris Maglione
b55ae08207 Bug 1214058: Part 1 - Add a simplified JSON-based add-on update protocol. r=Mossop 2015-11-03 14:49:46 -08:00
Wes Kocher
917b5f3bb1 Merge fx-team to central, a=merge 2015-10-29 17:07:41 -07:00
Fabrice Desré
ae5427b571 Bug 1208242 - Part 1: hook up the blocklist service to b2g web extensions r=mossop,ferjm
* * *
Bug 1208242 - Part 3: don't ship things that should not ship r=me
2015-10-29 07:32:50 -07:00
Wes Kocher
99535144f4 Backed out 3 changesets (bug 1208242) for emulator mochitest bustage
Backed out changeset d2f87bf3aced (bug 1208242)
Backed out changeset c38225ee4378 (bug 1208242)
Backed out changeset 6dff307959f2 (bug 1208242)
2015-10-29 12:17:25 -07:00
Tim Nguyen
1a4049e512 Bug 1169679 - browser_inlinesettings.js: Scroll button into view before clicking on it. r= Mossop 2015-10-29 12:00:36 +01:00
Fabrice Desré
e8aa747fc4 Bug 1208242 - Part 1: hook up the blocklist service to b2g web extensions r=mossop,ferjm 2015-10-29 07:32:50 -07:00
Philip Chee
bf105cbd5b Bug 1217985 Follow up fix test bustage 2015-10-28 09:16:44 -07:00
Kathy Brade
1ef9a7b47e Bug 1217985 - Don't depend on Windows crypto DLLs
If not building the Windows Maintenance Service, avoid a dependency
on crypt32.dll and wintrust.dll.

Also, avoid setting sUsingService inside the updater code; this
ensures that all Maintenance Service related codepaths are skipped.
2015-10-27 17:50:32 -07:00
Bill McCloskey
a48b175c54 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-11-04 10:56:15 -08:00
Bill McCloskey
210c879835 Bug 1219504 - Test changes (r=Gijs,mconley,jryans,MattN,Mossop) 2015-11-04 10:56:15 -08:00
Nick Thomas
f02b2763af Bug 1220763 - 43.0b1 build1 osx en-US beta build failing to upload, r=glandium 2015-11-03 21:22:38 +13:00