Граф коммитов

2441 Коммитов

Автор SHA1 Сообщение Дата
Alessio Placitelli 9f6f7449c9 Bug 1217282 - Add test coverage. r=gfritzsche 2015-12-15 05:44:00 +01:00
Carsten "Tomcat" Book c63e52138d Backed out changeset 7a5367ac58a4 (bug 1209344) for various test failures
G: changed toolkit/mozapps/extensions/test/xpcshell/xpcshell-shared.ini
2015-12-16 14:44:20 +01:00
Carsten "Tomcat" Book 9471544690 Backed out changeset a1393f2f306e (bug 1209344) 2015-12-16 14:43:53 +01:00
Robert Helmer 8728971b80 Bug 1209344 - link to about:debugging from about:addons r=mossop
--HG--
extra : transplant_source : %80%C8%B7f%80%AC9%CA%A5%13%98%B1%FD%F2%8F%C4%B377%05
2015-12-14 13:52:38 -08:00
Robert Helmer 1f3b89a6c7 Bug 1209344 - remove debug button from about:addons r=mossop
--HG--
extra : transplant_source : %DF-u%83%B8%A5%9E%EA%B5%8D%9B%B1%92G%02m%08%BE%3D%E3
2015-12-13 09:02:17 -08:00
Chris Pearce 591eb6df76 Bug 1232799 - Remove KEY_PLUGIN_TRIAL_CREATE pref from GMPProvider and friends. r=spohl
The GMPVideoDecoderTrialCreator was removed from Gecko in bug 1232527, and so
we don't need to set/reset this pref in the GMPProvider any more.

--HG--
extra : rebase_source : 3bb70b21388cdc8adb1aec25cff837a0348a6e3c
2015-12-16 10:38:51 +13:00
Chris Pearce 8cdc81c1eb Bug 1232795 - Remove VIDEO_EME_DISABLED telemetry probe. r=spohl
--HG--
extra : rebase_source : 6d7ee246707b0dad8493944af629a9ea0097184e
2015-12-16 10:32:41 +13:00
Robert Helmer 5fb8db01a4 Bug 1231003 - clarify in variable names and comments that temporary add-ons can be files or dirs r=mossop
--HG--
extra : transplant_source : %26%DBzr%14%18J%F0e6%40%5BY%5E%D3%14L%3Cs%3E
2015-12-07 14:53:11 -05:00
Georg Fritzsche 943da0d5c5 Bug 1231055 - Fix tags usage in PluginProvider. r=dtownsend 2015-12-08 19:52:45 -05:00
Dave Townsend 40279b9be7 Bug 1227981: Test that referencing a DTD from the inline options of an add-on works. r=rhelmer
--HG--
extra : commitid : GEBPImsntYP
extra : rebase_source : 356f7cd9825337dd24073a39a97c6b442ffcc077
2015-11-25 10:18:53 -08:00
Robert Helmer 5ce1b1be5a bug 1228792 - remove leading 0, be explicit about octals r=mossop
--HG--
extra : commitid : 2BNMh5TCvs8
extra : rebase_source : b25d3380032ac363377804a76769554d74a7f11f
extra : histedit_source : a6d22c6f3a7ee97ae99820349cd7fd8cc3719fc6
2015-12-02 18:43:09 -08:00
Robert Helmer 67c3facd3e bug 1228792 - use function* for generators r=mossop
--HG--
extra : commitid : gjt3xC1DJc
extra : rebase_source : f13bb0a43be036a0d4694b0bb6d0690e999b872f
extra : histedit_source : e591411c3b588f247e9988d1b6b66e09cf7b4b94
2015-12-02 18:42:50 -08:00
Robert Helmer d40ca0dad5 bug 1228792 - use standard version of catch r=mossop
--HG--
extra : commitid : FpwpzNvnHDs
extra : rebase_source : cb4adf8ce77ed5231fc463c907facfd509b4a4ef
extra : histedit_source : 96a513f23dbb96f71e99bc73164e37bd258b4f6a
2015-12-02 18:42:16 -08:00
Robert Helmer d4b4a83098 bug 1228792 - remove use of array comprehensions r=mossop
--HG--
extra : commitid : I7JbIRZK5Pk
extra : rebase_source : 516f056afbb164b0b7b9fd9889c5cc998626c15d
extra : histedit_source : da178544faf7ff52591d96712921ddd73de2b48a
2015-12-02 18:40:59 -08:00
Carsten "Tomcat" Book d1e027ccae Merge mozilla-central to fx-team 2015-12-01 15:28:12 +01:00
Carsten "Tomcat" Book f3e1aec951 merge mozilla-inbound to mozilla-central a=merge 2015-12-01 15:25:14 +01:00
Robert Helmer 978190afcd Bug 1195353 - leave extension proxy files that point to invalid manifests r=mossop
--HG--
extra : transplant_source : %5C%FA%F5%8E%BE%3E%24%EB%CFN%CC%8DS%9C%9A%A7C%A5%B6/
2015-11-25 23:28:30 -08:00
Dave Townsend 552c0bb27b Bug 1226386: Remove or fix many uses of Array.forEach. r=rhelmer
--HG--
extra : commitid : BCzc4kuShSp
extra : rebase_source : 8517ce0913bb72ee340cb400e4f45c43bf964d67
2015-11-20 15:31:17 -08:00
Dave Townsend f946cdabc4 Bug 1226386: Remove use of non-standard __defineGetter__ and __defineSetter__. r=rhelmer
Moved these mostly onto the prototype. We couldn't do this before without making
the target of the wrapper a property of the wrappers and we don't want to expose
that but now WeakMaps allow us to get the target without exposing it.

Once change with this approach is that when the test suite shuts down the
add-ons manager it kills the map and so wrappers cease to function. A couple of
tests were relying on accessing wrapper properties after that but that would
have likely been unsafe anyway.

--HG--
extra : commitid : 6OI6dLyM45D
extra : rebase_source : c8a53360ce582186dcdc5cbf0dfc2b5057881eac
2015-11-20 10:55:13 -08:00
Dave Townsend f6c6e0cc02 Bug 1226386: Switch to fat arrow functions where it makes sense. r=rhelmer
Both for brevity and to remove the use of |self = this|.

--HG--
extra : commitid : 7gNXRCzxPxM
extra : rebase_source : 4dccdf8bf99f5979664ca3ca3d9e61f66e217bfe
2015-11-20 10:06:14 -08:00
Dave Townsend e2b946adfc Bug 1226386: Remove functions names where possible. r=rhelmer
We used to need explicit names for functions to make stack traces display
properly. The JS engine is smarter now so doesn't need them and they just
make the code messy and redundant.

--HG--
extra : commitid : 4FEIiQYhRQu
extra : rebase_source : 26689d5417f592d0f327f32076245cb4f154229a
2015-11-19 16:35:41 -08:00
Dave Townsend d252cadc1f Bug 1226386: Remove createWrapper function and replace with a memoized property. r=rhelmer
--HG--
extra : commitid : 7sR5hnOEWW2
extra : rebase_source : c7b44681ac2f727f34b2b21e6459ceb9fb52e264
extra : amend_source : 8e1f0eb8d1cbac8b47526ded9c05de6c1a48503a
2015-11-19 14:19:33 -08:00
Dave Townsend c872ff3d33 Bug 1226386: Remove most of the preprocessing from the add-ons manager. r=gps
For build speed, for correct line numbers in errors, for faster development, for so many reasons.
Still a couple of cases left mostly in XUL files for different strings on Windows.

Bonus: The new lexical scope means ADDON_SIGNING and REQUIRE_SIGNING can just
be declared as regular constants and outside code can't get to them easily.

--HG--
extra : commitid : Kj8khjuCwG2
extra : rebase_source : 2e0a3143900c0c414cda43254306f0c070f8e621
2015-11-19 15:30:47 -08:00
Dave Townsend 361cd471ff 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.

--HG--
extra : commitid : DhCOtar9Mqu
extra : rebase_source : c194a4d390bbd460b9c17ec09e9c3a219b5025d6
2015-11-27 12:44:22 -08:00
Kris Maglione 6713ba9ac7 Bug 1192435: Support updates for WebExtensions. r=Mossop
--HG--
extra : commitid : 2NZYNYBpFs4
extra : rebase_source : 06a5d6fe9b91872f31f17323766e74fc4dc24646
2015-11-17 16:23:15 -08:00
Johann Hofmann 75a90ffc8e Bug 1200674 - Allow flexible icon sizes in ExtensionUtils. r=dtownsend 2015-11-24 18:20:26 +01:00
Christoph Kerschbaumer 413a60a063 Bug 1225641 - Change default security flags within NetUtil.newChannel (r=sicking) 2015-11-17 17:35:30 -08:00
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 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
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
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
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
Bill McCloskey d3c47f743b Bug 967873 - Fix some recently enabled tests 2015-11-11 16:24:34 -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
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
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