Commit Graph

4533 Commits

Author SHA1 Message Date
Kris Maglione
2a06977fb4 Bug 1192435: Support updates for WebExtensions. r=Mossop 2015-11-17 16:23:15 -08:00
Johann Hofmann
35c769367c Bug 1200674 - Allow flexible icon sizes in ExtensionUtils. r=dtownsend 2015-11-24 18:20:26 +01:00
Christoph Kerschbaumer
053758c154 Bug 1225641 - Change default security flags within NetUtil.newChannel (r=sicking) 2015-11-17 17:35:30 -08:00
Robert Helmer
a2347b9b5b Bug 1209341 - allow loading unsigned restartless add-ons at runtime. r=mossop 2015-11-03 10:07:08 -08:00
Jim Chen
c752f09637 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
835a7fd409 Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-20 10:56:55 -08:00
Gijs Kruitbosch
f65f3b2042 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
41ea3b20cb Merge mozilla-central to fx-team 2015-11-19 15:24:02 +01:00
Carsten "Tomcat" Book
e4e47d652e merge mozilla-inbound to mozilla-central a=merge 2015-11-19 14:44:11 +01:00
Nigel Babu
d4001c301d Backed out changeset 9155ee3d42d8 (bug 1182546) for Android M(c) bustage 2015-11-19 14:26:20 +05:30
Gijs Kruitbosch
36a1e7a401 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
48683bccc4 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
4e30558ee7 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
e75c629633 Bug 1225629: Always verify signatures for hotfixes and system add-on updates. r=rhelmer 2015-11-17 14:05:04 -08:00
Mike Hommey
dc8d7f5659 Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
Christoph Kerschbaumer
03280e6f92 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Christoph Kerschbaumer
902dd90304 Bug 1182546 - Test update: make inlinesettings accessible from content (r=bz) 2015-11-18 19:25:03 -08:00
Mike Hommey
da29499642 Bug 1216371 - Use the PiecemealFormatter for the OmniJarFormatter. r=gps 2015-11-19 08:05:51 +09:00
Andrew Halberstadt
e900916435 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
18e5fc3212 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
a2dfb0c947 Backed out changeset 46eadccf444d (bug 1223435) 2015-11-16 16:03:18 +05:30
Christoph Kerschbaumer
3dd09cf3d7 Bug 1223435 - Use channel.asyncOpen2 in toolkit/mozapps/extensions/internal/XPIProvider.jsm (r=sicking) 2015-11-15 14:48:11 -08:00
Mike Hommey
e828282e6c 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
9300fab4c2 Bug 967873 - Fix some recently enabled tests 2015-11-11 16:24:34 -08:00
Nick Alexander
e948cf8d4b 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
398f559bac Merge m-c to fx-team, a=merge 2015-11-05 18:47:26 -08:00
Wes Kocher
0e58b074af Merge inbound to central, a=merge 2015-11-05 18:44:24 -08:00
Kris Maglione
5b0975034f 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
832402c105 Merge mozilla-central to fx-team 2015-11-05 12:17:28 +01:00
Andrew McCreight
95774ee030 Bug 1221185 - Enable more e10s tests in toolkit/mozapps/extensions/test/browser/. r=felipe 2015-11-03 09:12:00 +01:00
aleth
26ae831589 Bug 1221356 - Don't package mozharness for Thunderbird builds. r=gps 2015-11-04 01:26:46 +01:00
Carsten "Tomcat" Book
fcf25e1eba merge mozilla-inbound to mozilla-central a=merge 2015-11-04 11:59:46 +01:00
Kris Maglione
454a6399b9 Bug 1213632: Prevent WebExtensions from using versioned JavaScript. r=billm 2015-10-22 23:25:43 -07:00
Dave Townsend
19bbb28740 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
4e9a5e6814 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
925c64fc5a 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
0ca0a616cf 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
f9a7b6977b 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
dc35780762 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
e84fed1b96 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
e7c1ca70c2 Merge fx-team to central, a=merge 2015-10-29 17:07:41 -07:00
Fabrice Desré
8bfe7da329 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
1b29c63fda 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
effb7045a4 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é
082cb3dc7f 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
b69f02d1a9 Bug 1217985 Follow up fix test bustage 2015-10-28 09:16:44 -07:00
Kathy Brade
ab6b0b6a75 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
08bb1d3e45 Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-11-04 10:56:15 -08:00
Bill McCloskey
cbca5a7c3e Bug 1219504 - Test changes (r=Gijs,mconley,jryans,MattN,Mossop) 2015-11-04 10:56:15 -08:00
Nick Thomas
d58119302f Bug 1220763 - 43.0b1 build1 osx en-US beta build failing to upload, r=glandium 2015-11-03 21:22:38 +13:00
Johann Hofmann
1b1abe1be1 Bug 1192432 - Support custom icons in Web Extensions. r=mossop 2015-10-14 11:03:40 +02:00
Dave Townsend
590ddf5027 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.
2015-10-21 10:26:28 -07:00
Tooru Fujisawa
c127559b93 Bug 1217082 - Remove for-each from toolkit/. r=Gijs 2015-10-19 04:57:14 +09:00
J. Ryan Stinnett
d4008a481b Bug 1203159 - Rewrite DevTools resource URLs. r=ochameau 2015-10-21 12:48:53 -05:00
Ehsan Akhgari
903d8a13b8 Bug 1215676 - Disable leak reporting during packaging; r=glandium 2015-10-20 08:41:31 -04:00
Nick Thomas
0f909ae44d Bug 1213721 - unbuffered python output during 'make upload', r=glandium 2015-10-20 10:59:19 +13:00
Chris Manchester
049256648c Backed out changeset 92e5edb0d02e (bug 992983) for breaking fix_stack_using_bpsyms.py 2015-10-19 12:15:43 -07:00
Chris Manchester
9e9678a72e Bug 992983 - Build and upload the gtest libxul during test packaging. r=ted 2015-07-16 16:52:31 -07:00
Alexandre Poirot
56e4b75c0b Bug 1204812 - Keep Console.jsm in toolkit/modules/ r=jryans,Mossop 2015-10-15 03:45:22 -07:00
Carsten "Tomcat" Book
8a9d35471d merge mozilla-inbound to mozilla-central a=merge 2015-10-14 12:46:09 +02:00
Felipe Gomes
49581250bf Bug 1214052 - Remove unnecessary files from the pre-processing list. r=glandium 2015-10-13 23:50:30 -03:00
Felipe Gomes
7d4ef94179 Backed out changeset b78c1b06764c (bug 1212618), because a better fix landed in bug 1211344 2015-10-13 23:50:28 -03:00
Mike Hommey
a40deb2059 Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg
The configure option has explicitly thrown an error for more than a year now,
and it happens that the remaining way to still forcefully use it has been
broken for more than 8 months.
2015-10-14 08:02:34 +09:00
Felipe Gomes
6dfe169f3a Bug 724353. r=Mossop 2015-10-13 20:33:35 -03:00
Felipe Gomes
7b79d55752 Bug 1116385. r=Mossop 2015-10-13 20:32:25 -03:00
Jared Wein
3f2c32c359 Bug 1212618 - unknownContentType.xul grows size when toggling the "Do this for all files". r=felipc 2015-10-09 10:14:00 +02:00
Phil Ringnalda
df55fa69b7 Back out 2 changesets (bug 1116385, bug 724353) for test_unknownContentType_delayedbutton.xul failures
Backed out changeset aaade64d3f28 (bug 724353)
Backed out changeset dca478776c91 (bug 1116385)
2015-10-12 21:37:58 -07:00
Felipe Gomes
4b89eee9b2 Bug 724353. r=Mossop 2015-10-12 22:05:42 -03:00
Felipe Gomes
5d122f140a Bug 1116385. r=Mossop 2015-10-12 22:05:38 -03:00
Neil Deakin
bf2cc207f4 Bug 1173330, fix to use content tasks and BrowserTestUtils, and reenable browser_bug638292.js, r=felipe 2015-10-09 08:50:13 -04:00
J. Ryan Stinnett
30736fdbf2 Bug 1212153 - Clean up Cu.isModuleLoaded after migration. r=bgrins 2015-10-08 15:25:23 -05:00
Dave Townsend
612d78bf35 Bug 1212059: Don't require shipped system add-ons to be signed, always require updated system add-ons to be signed. r=rhelmer 2015-10-07 10:29:18 -07:00
Bill McCloskey
bf892cf58b Back out bug 967873 - Test changes for async removeTab 2015-10-07 11:15:11 -07:00
Wes Kocher
09022f945d Merge inbound to m-c a=merge 2015-10-07 10:29:41 -07:00
Carsten "Tomcat" Book
9f1c0bf17d Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst
378b7180e7 Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
Dave Townsend
9ffa72eef7 Bug 1192928: Purge outdated system add-ons. r=rhelmer 2015-09-28 16:16:10 -07:00
Gijs Kruitbosch
d5a7cc7557 Bug 1211255 - fix downloads on fennec, r=mak 2015-10-05 13:55:22 +01:00
Carsten "Tomcat" Book
9eaa0d1abc Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
53a85861c1 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo
335cec2303 Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Wes Kocher
18b7fcf702 Merge m-c to inbound, a=merge 2015-10-06 12:16:50 -07:00
Carsten "Tomcat" Book
91e1ac6fd2 Merge m-c to mozilla-inbound 2015-10-02 13:37:27 +02:00
Carsten "Tomcat" Book
c964cde471 merge fx-team to mozilla-central a=merge 2015-10-02 11:44:11 +02:00
Dave Townsend
cae412a957 Bug 1193973: System add-ons that shipped with the app should be loaded in safe mode. r=rhelmer
By making the updated system add-on install location return an empty set when
in safe mode it causes us to rescan and enable the default system add-ons.

The complication is calling the uninstall method on the updated add-ons when
switching to safe mode, for that we have to cache the fact that an add-on
can run in safe mode in the bootstrappedAddons data so it persists to the
next restart and can be accessed when the updated add-on has been hidden.
2015-09-24 11:23:35 -07:00
Gijs Kruitbosch
71ef8417d7 Bug 1205620 - fix default visibility of warning/error buttons in addon manager, r=Mossop 2015-10-01 13:55:42 -04:00
Yoshi Huang
bc28b70384 Bug 1210459: Add originAttributes for tests that implement nsILoadContext. r=bholley 2015-09-30 18:14:12 -07:00
Bill McCloskey
2a4d871bbc Bug 967873 - Test changes for async removeTab (r=Gijs) 2015-10-01 21:18:05 -07:00
Dave Townsend
ffcb0b2667 Bug 1207772: Add some better sanity checks for the bootstrap function calls. r=rhelmer
Unifies the methods we have to check that bootstrap add-ons are correctly loaded
and makes it easier to make changes to them all in the future without needing to
re-sign add-ons etc.

This code allows a bootstrap script to use a shared script in a single line of
code. The shared scripts sends out all the relevant info over the observer
service, the add-ons manager test harness receives and retains the current state
for every add-on also performing sanity checks like making sure an "install"
method is always called before any "startup" method etc. It also provides simple
functions to check the state of a given add-on.
2015-09-15 10:45:52 -07:00
Wes Kocher
a2d99f2fea Backed out changeset 3d3f055ade52 (bug 1207772) for test_system_update.js failures 2015-09-30 13:45:02 -07:00
Dave Townsend
605381428d Bug 1207772: Add some better sanity checks for the bootstrap function calls. r=rhelmer
Unifies the methods we have to check that bootstrap add-ons are correctly loaded
and makes it easier to make changes to them all in the future without needing to
re-sign add-ons etc.

This code allows a bootstrap script to use a shared script in a single line of
code. The shared scripts sends out all the relevant info over the observer
service, the add-ons manager test harness receives and retains the current state
for every add-on also performing sanity checks like making sure an "install"
method is always called before any "startup" method etc. It also provides simple
functions to check the state of a given add-on.
2015-09-15 10:45:52 -07:00
Dave Townsend
ae29f88651 Bug 1204158: Skip downloading system add-ons when we already have a copy locally. r=rhelmer
When we have a local copy of an add-on in the updated add-on set try to make a
temporary copy rather than re-downloading.
2015-09-24 14:55:27 -07:00
Dave Townsend
4a8012885b Bug 1204159: Switch to existing system add-ons when they match the wanted set. r=rhelmer
Checks the set that balrog gives us against the existing sets and switches
without needing to download again.
2015-09-24 14:26:13 -07:00
Matt Howell
24b18c78ee Bug 1208626 - Add needed parameter to getHistogramById. r=rstrong 2015-09-25 13:43:18 -07:00
Gijs Kruitbosch
8592690a27 Bug 1196144 - source window disappearance still breaks downloading to custom directories on windows, r=felipe 2015-09-25 16:17:27 +01:00
Carsten "Tomcat" Book
d3d65f378b merge mozilla-inbound to mozilla-central a=merge 2015-09-28 14:13:24 +02:00
Ehsan Akhgari
6a90cc8448 Bug 1208926 - Initialize hOldFont so that it can't be accessed uninitialized; r=rstrong
Found by Viva64.
2015-09-27 20:54:31 -04:00
Dave Townsend
f14a0af9d4 Typo fix for bug 1192926. CLOSED TREE. 2015-09-25 17:38:37 -07:00
Dave Townsend
433b956d63 Bug 1207287: Move the app-shipped system add-ons somewhere where they will be included in up date MARs. r=froydnj r=rhelmer
This moves the app-shipped system add-ons into <appdir>/features. I've created
a new directory provider location for this since it allows us to override the
location without allowing external apps to do so as would be the case with
prefs.
2015-09-24 16:03:01 -07:00
Dave Townsend
37517ad884 Bug 1192926: Hide system add-ons from the add-ons manager. r=rhelmer
We've wanted a hidden property for add-ons for a while so we can do things like
hide "uninstalled" sideloaded add-ons so this adds the basic version of it to
hide system add-ons.
2015-09-24 11:36:40 -07:00