Commit Graph

5479 Commits

Author SHA1 Message Date
Robert Helmer
e339903d0b Bug 1209341 - allow loading unsigned restartless add-ons at runtime. r=mossop
--HG--
extra : transplant_source : %9EhX%F7%9D%AE%F5%14%18%E6%3B%A7%D3w%E3%3B%CAl%27%05
2015-11-03 10:07:08 -08:00
Jim Chen
3f2aedd313 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
5975a9caee Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-20 10:56:55 -08:00
Gijs Kruitbosch
161662dac8 Bug 1191468 - always load app dir add-ons irrespective of enabledScopes, r=Mossop,froydnj
--HG--
extra : commitid : 4O0JNbchonb
extra : rebase_source : f218722dd70f74a45e4dbb461a7faaa3ef1d1d81
extra : amend_source : 538b86815da89ccf5b3e7e42412019064123ccfe
2015-11-17 13:55:31 +00:00
Carsten "Tomcat" Book
3e3681faa3 Merge mozilla-central to fx-team 2015-11-19 15:24:02 +01:00
Carsten "Tomcat" Book
839fa910f5 merge mozilla-inbound to mozilla-central a=merge 2015-11-19 14:44:11 +01:00
Nigel Babu
8638a9854f Backed out changeset 9155ee3d42d8 (bug 1182546) for Android M(c) bustage 2015-11-19 14:26:20 +05:30
Gijs Kruitbosch
a5e69a8a5a Bug 1040005 - fix nsHelperAppDlg.js to cope with always ask in combination with a preferred helper app, r=mconley
--HG--
extra : commitid : 3bfX8YfVfg5
extra : rebase_source : 4074335ed3ea7ffebed56cacce310e8c62de661c
2015-11-17 16:56:16 +00:00
Dave Townsend
d9c57718d0 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.

--HG--
extra : commitid : I1KdZYTWAyE
extra : rebase_source : 352634d8e980a6f7a9c2121607283f5b08dc8484
2015-11-09 15:02:29 -08:00
Dave Townsend
0ca2ae256e 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.

--HG--
extra : commitid : LnQTmpOqRgj
extra : rebase_source : be63740ca7613bf685c9d69722e9fb2e1bb0d5e3
2015-11-09 15:02:05 -08:00
Dave Townsend
95d4a64276 Bug 1225629: Always verify signatures for hotfixes and system add-on updates. r=rhelmer
--HG--
extra : commitid : HZM3glYLa3L
extra : rebase_source : e6c2c366ba7a96f5b66ed24b00c97c3ca4333e6b
extra : amend_source : e536be12a4d97d83f38b0cb8a9d931544902d75d
2015-11-17 14:05:04 -08:00
Mike Hommey
5ab167c3b0 Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
Christoph Kerschbaumer
a6cb71ab15 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Christoph Kerschbaumer
59449aca2c Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-18 19:25:03 -08:00
Mike Hommey
01f29630c8 Bug 1216371 - Use the PiecemealFormatter for the OmniJarFormatter. r=gps 2015-11-19 08:05:51 +09:00
Andrew Halberstadt
1252d85394 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.

--HG--
rename : testing/specialpowers/components/SpecialPowersObserver.js => testing/specialpowers/content/SpecialPowersObserver.jsm
extra : commitid : Bbg8gFten8S
extra : rebase_source : 99d0b841a1f8f9eb6b6ca846363a158836482e57
2015-11-05 10:00:59 -05:00
Mark Goodwin
854efb9851 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
70eb23339b Backed out changeset 46eadccf444d (bug 1223435) 2015-11-16 16:03:18 +05:30
Christoph Kerschbaumer
438e0eb3d0 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Mike Hommey
e88f90548f 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
d3c47f743b Bug 967873 - Fix some recently enabled tests 2015-11-11 16:24:34 -08:00
Nick Alexander
ade40baf2d 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.

--HG--
rename : build/mobile/robocop/AndroidManifest.xml.in => mobile/android/tests/browser/robocop/AndroidManifest.xml.in
rename : build/mobile/robocop/Makefile.in => mobile/android/tests/browser/robocop/Makefile.in
rename : build/mobile/robocop/README => mobile/android/tests/browser/robocop/README
rename : build/mobile/robocop/moz.build => mobile/android/tests/browser/robocop/moz.build
rename : build/mobile/robocop/res/values/strings.xml => mobile/android/tests/browser/robocop/res/values/strings.xml
rename : build/mobile/robocop/robotium-solo-4.3.1.jar => mobile/android/tests/browser/robocop/robotium-solo-4.3.1.jar
extra : commitid : BuNBjgXdm1d
extra : rebase_source : c36b8bf0183d8f5821b7f7839668ca963065d894
extra : histedit_source : a86fef3b834420ea496a9c2644ca72786a2d7da9
2015-11-09 12:55:38 -08:00
Wes Kocher
0614b39cb9 Merge m-c to fx-team, a=merge
--HG--
extra : commitid : J6I6LGuQcFJ
2015-11-05 18:47:26 -08:00
Wes Kocher
0069e6af90 Merge inbound to central, a=merge
--HG--
extra : commitid : 426lsCwC1FX
2015-11-05 18:44:24 -08:00
Kris Maglione
4a1b170b2c Bug 1192433: Part 3 - Support localized names and descriptions in WebExtension manifests. r=Mossop
--HG--
extra : commitid : 79RHXd1mZtp
extra : rebase_source : 3bbd8ae3184d58ba5d2c1d332e0209fb2d0a19ef
2015-11-02 16:50:42 -08:00
Carsten "Tomcat" Book
0a34392a9e Merge mozilla-central to fx-team 2015-11-05 12:17:28 +01:00
Andrew McCreight
a56cc47ac7 Bug 1221185 - Enable more e10s tests in toolkit/mozapps/extensions/test/browser/. r=felipe 2015-11-03 09:12:00 +01:00
aleth
3a98b54f34 Bug 1221356 - Don't package mozharness for Thunderbird builds. r=gps
--HG--
extra : rebase_source : ca3f0cb22899616c4eb1c28b8256f7f33f6ddf54
2015-11-04 01:26:46 +01:00
Carsten "Tomcat" Book
3e11f2fe34 merge mozilla-inbound to mozilla-central a=merge 2015-11-04 11:59:46 +01:00
Kris Maglione
9768c79d20 Bug 1213632: Prevent WebExtensions from using versioned JavaScript. r=billm
--HG--
extra : commitid : 3aQ4wS5I7LP
extra : rebase_source : 252277140f700ab305877f3bfd0ba9b582ff0b7a
2015-10-22 23:25:43 -07:00
Dave Townsend
efdebbd94c Bug 1220198: Never appDisable experiments if they don't have the right app compatibility information available. r=rhelmer
--HG--
extra : commitid : FRWLOAxSmbi
extra : rebase_source : 8783c5c2c347a9cc9cdfad45ea2e26aa9fc9111c
2015-11-02 11:15:12 -08:00
Matt Howell
501c275eec 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.

--HG--
extra : transplant_source : %F7%BE%0B%FDYd%CF%24%E7%B2%A5l%40%8D%E5%81%88F%E4%07
2015-10-27 14:31:34 -07:00
Kris Maglione
1f33d6ac2d 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.

--HG--
extra : commitid : 2jBJ2yUht46
extra : rebase_source : a123db431a26b29f3deb81e6b961bf556005c2a6
extra : source : 90e625ac70b2071f1c2430725892f7c266928521
2015-10-19 09:18:42 -07:00
Kris Maglione
c663cc0727 Bug 1214058: Part 1 - Add a simplified JSON-based add-on update protocol. r=Mossop
--HG--
extra : commitid : HUFAitZpdVA
extra : rebase_source : b2eb9ede0582b804e1e583570e165e27f42c8fa7
extra : source : a4d5d63a03ef3938d95f629a6a9ea31d3e88627d
2015-11-03 14:49:46 -08:00
Wes Kocher
7a3e94be61 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
110d21abaa 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.

--HG--
extra : commitid : 84oLUw4ZPOg
extra : rebase_source : 2bd6c921c6b677e4d487d0ee9c33b1130163bc39
2015-10-19 09:18:42 -07:00
Kris Maglione
84b37ed6ea Bug 1214058: Part 1 - Add a simplified JSON-based add-on update protocol. r=Mossop
--HG--
extra : commitid : kx59XtC26O
extra : rebase_source : 95f8fa8f13be16f2353ea3dcaa230a92563e6af6
2015-11-03 14:49:46 -08:00
Wes Kocher
1b36d95442 Merge fx-team to central, a=merge
--HG--
extra : commitid : HRvqk20Jqmp
2015-10-29 17:07:41 -07:00
Fabrice Desré
1021bedfa7 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
a47220809f 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)

--HG--
extra : commitid : 78rPKP5sInK
2015-10-29 12:17:25 -07:00
Tim Nguyen
f991aca55c 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é
67f6fb0a63 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
2325f694ea Bug 1217985 Follow up fix test bustage 2015-10-28 09:16:44 -07:00
Kathy Brade
4885c2cc81 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
c76ae8f933 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-11-04 10:56:15 -08:00
Bill McCloskey
de23733337 Bug 1219504 - Test changes (r=Gijs,mconley,jryans,MattN,Mossop) 2015-11-04 10:56:15 -08:00
Nick Thomas
ef1e43c903 Bug 1220763 - 43.0b1 build1 osx en-US beta build failing to upload, r=glandium
--HG--
extra : source : d64148d6bb6075f8d02ee921e1a5b3310c34cfec
extra : intermediate-source : bc9c6e9960069076f78bd91cb660e05779c01aa2
2015-11-03 21:22:38 +13:00
Johann Hofmann
2225f650f8 Bug 1192432 - Support custom icons in Web Extensions. r=mossop 2015-10-14 11:03:40 +02:00
Dave Townsend
d7446578d5 Bug 1217070: Fix accessing the bootstrap methods when they are declared in the new lexical scope. r=rhelmer
Rather that trying to get the method from the sandbox global object which will
only work for var and function declared methods instead evaluate the function
name in the sandbox scope and get the result which will give us access to the
lexical scope.

--HG--
extra : commitid : 1yWu6Go3XoQ
extra : rebase_source : 447ef2f2184229693cd6a45d6d5ac9705b200847
2015-10-21 10:26:28 -07:00
Tooru Fujisawa
65e2703499 Bug 1217082 - Remove for-each from toolkit/. r=Gijs
--HG--
extra : commitid : Ewr7Bixammr
extra : rebase_source : 91e560a7b8b8d4b78debb1db2512867262b18375
2015-10-19 04:57:14 +09:00