Commit Graph

5387 Commits

Author SHA1 Message Date
Gijs Kruitbosch
1afe94882d 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
e0579e52cd merge mozilla-inbound to mozilla-central a=merge 2015-09-28 14:13:24 +02:00
Ehsan Akhgari
e1e9f36e74 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
bb0986f1e3 Typo fix for bug 1192926. CLOSED TREE. 2015-09-25 17:38:37 -07:00
Dave Townsend
f78e5e18e6 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
51dcae08b4 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
Dave Townsend
6186552d07 Bug 1192924: Check for updated system add-ons and download and install them. r=rhelmer
This performs the update check for system add-ons. It runs as part of the daily
add-on update checks similar to hotfix checks. Currently no URL is set so builds
won't actually start checking yet.

I've taken a few shortcuts here by only staging updates and needing a restart to
install as well as always downloading updates rather than using existing local
copies. At least the latter probably needs fixing before turning this on but
it makes more sense to iterate on those in tree.
2015-09-10 10:57:39 -07:00
Dave Townsend
94567cd7f2 Bug 1192924: Split out add-on update.xml parsing code from GMP modules. r=spohl
The system add-on update checks will use the same update.xml format as GMP so
this splits out the code for parsing and downloading files into a standalone
module that both can reuse.
2015-09-08 15:00:28 -07:00
Dave Townsend
f657500ff0 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Dave Townsend
6591721a41 Bug 1206897: Don't attempt to cancel installs that are already cancelled. r=dveditz 2015-09-21 15:10:52 -07:00
Nick Alexander
54c3e9fe77 Bug 1108782 - Part 1: straighten out Java classpaths. r=glandium
This commit is us getting out of our own way.  We were specifying
-classpath twice, once in $(JAVAC) and once in java-build.mk.  Only
the latter of these is active.  This a problem for ANDROID_EXTRA_JARS
-- those JARs should be on the classpath and input to $(DX) -- and
JARs that should be on the classpath but *not* input to $(DX).  This
commit removes the global flags to $(JAVAC) and adds
JAVA_{BOOT}CLASSPATH_JARS.  This required some hijinkery moving
wildcards to moz.build files, but everything seems to work.

As well as clarifying some parts of the build, part 2 uses this work
to modify the classpath.
2015-08-31 13:35:05 -07:00
Wes Kocher
69b522405d Backed out 3 changesets (bug 1192924) for Android bustage CLOSED TREE
Backed out changeset 30d612836685 (bug 1192924)
Backed out changeset a6860f880e01 (bug 1192924)
Backed out changeset 10e1fa2cc23a (bug 1192924)
2015-09-22 11:02:55 -07:00
Dave Townsend
a19b5df33c Bug 1192924: Check for updated system add-ons and download and install them. r=rhelmer
This performs the update check for system add-ons. It runs as part of the daily
add-on update checks similar to hotfix checks. Currently no URL is set so builds
won't actually start checking yet.

I've taken a few shortcuts here by only staging updates and needing a restart to
install as well as always downloading updates rather than using existing local
copies. At least the latter probably needs fixing before turning this on but
it makes more sense to iterate on those in tree.
2015-09-10 10:57:39 -07:00
Dave Townsend
0737c547c1 Bug 1192924: Split out add-on update.xml parsing code from GMP modules. r=spohl
The system add-on update checks will use the same update.xml format as GMP so
this splits out the code for parsing and downloading files into a standalone
module that both can reuse.
2015-09-08 15:00:28 -07:00
Dave Townsend
eef8701d19 Bug 1192924: Expose the update URL formatting code a new UpdateUtils module. r=rstrong
The GMP manager uses a copy of the update service's url formatting code and has
since fallen out of sync. We'll also want to use the same formatting code for
the system add-on update checks so this just exposes it in a shared API.

I've moved the contents of UpdateChannel.jsm to UpdateUtils.jsm and exposed
formatUpdateURL there as well as a few properties that the update service still
needs access to.

UpdateUtils.UpdateChannel is intended to be a lazy getter but isn't for now
since tests expect to be able to change the update channel at runtime.
2015-09-14 11:04:19 -07:00
Carsten "Tomcat" Book
420432e990 merge mozilla-inbound to mozilla-central a=merge 2015-09-22 12:35:13 +02:00
Dave Townsend
2236e260d8 Bug 1203787: When the add-on ID is longer than 64 characters compare the signing certificate's common name to the sha256 hash of the ID. r=dveditz 2015-09-18 10:17:54 -07:00
J. Ryan Stinnett
2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
Tooru Fujisawa
352bf3eb67 Bug 1207497 - Part 3: Fix wrong replacement in debug print in toolkit/mozapps/downloads/tests/unit/test_lowMinutes.js. r=me DONTBUILD 2015-09-25 18:06:19 +09:00
Tooru Fujisawa
7e974cd5fd Bug 1207497 - Part 2: Remove use of expression closure from tests in toolkit/. r=Gijs 2015-09-24 21:25:24 +09:00
Tooru Fujisawa
e1e42ff6d3 Bug 1207497 - Part 1: Remove use of expression closure from toolkit/, exept tests. r=Gijs 2015-09-24 21:20:04 +09:00
Carsten "Tomcat" Book
9937292492 Merge mozilla-central to b2g-inbound 2015-09-17 15:08:41 +02:00
Alexandre Lissy
3fadbc5ae7 Bug 1201556 - Send hashed device id for foxfooders. r=fabrice 2015-09-17 05:06:00 +02:00
Wes Kocher
050b69a1d0 Merge mozilla-inbound to m-c a=merge CLOSED TREE 2015-09-16 10:52:53 -07:00
Justin Dolske
80aaa2cbee Bug 1204154 - Clean up jar manifests that needlessly specify the source file. r=dao 2015-09-15 18:33:57 -07:00
Wes Kocher
73b9e55662 Merge inbound to central, a=merge 2015-09-15 17:16:24 -07:00
Carsten "Tomcat" Book
9890a3123e Merge mozilla-central to mozilla-inbound 2015-09-15 15:10:11 +02:00
Carsten "Tomcat" Book
9dbe2e36ff merge mozilla-inbound to mozilla-central a=merge 2015-09-15 15:05:24 +02:00
Chris Pearce
3a0c17a885 Bug 1205178 - Make GMPProvider check that GMPs are the right arch before loading. r=spohl 2015-09-17 13:28:48 +12:00
Jacek Caban
f1774511f9 Bug 1199615 - Fixed toolkit/mozapps/update/ compilation on mingw. r=rstrong 2015-09-15 13:12:03 +02:00
Dave Townsend
2a3f591cb0 Bug 1204012: Lightweight themes are disabled if any add-ons are detected or modified during startup. r=rhelmer
When a lightweight theme is active the default theme is the selected skin but
the default theme's addon object is marked as inactive (to deal with the horror
of only allowing the user to select a single theme through the UI).

During startup we should only switch back to the default theme if there is a
non-default skin selected that we didn't see.
2015-09-11 10:38:35 -07:00
Carsten "Tomcat" Book
3677bca7e9 Merge mozilla-central to fx-team 2015-09-11 16:42:01 +02:00
Trevor Rowbotham
bded863ed5 Bug 1180901 - Test that an extension can be installed when a locked file exists in the extensions trash directory as long as the extension being installed does not touch the locked file. r=mossop 2015-09-09 13:44:00 +02:00
Nicholas Nethercote
0d40f6d4a2 Bug 1202971 (part 2) - Fix compile warnings in toolkit/mozapps/update/tests. r=rstrong. 2015-09-15 17:39:12 -07:00
Wes Kocher
4037741ef5 Merge m-c to inbound, a=merge 2015-09-15 17:20:16 -07:00
Christoph Kerschbaumer
d984ed2de4 Bug 1195162 - Move mozapps/plugins into pluginproblem (r=sicking,bsmedberg) 2015-09-14 19:08:06 -07:00
Dave Townsend
1692df1a02 Bug 1192925: Test that system add-ons are marked as un-uninstallable and un-upgradable. r=rhelmer 2015-09-11 10:51:06 -07:00
Wes Kocher
6dd486ff0d Merge inbound to central, a=merge CLOSED TREE 2015-09-09 13:47:08 -07:00
Carsten "Tomcat" Book
e1c1bdb3cb Merge mozilla-central to fx-team 2015-09-09 14:10:46 +02:00
Dave Townsend
8691738731 Bug 1192930 - Require a special certificate for system add-ons. r=rhelmer
Makes sure that add-on objects always have the _installLocation property for
the location they will be installed into so that isUsableAddon can test for the
right signature.
2015-08-26 16:14:00 -07:00
Dave Townsend
2261296844 Bug 1192921: Add an install location for system add-ons. r=rhelmer
This adds two new directory install locations. One contains the default system
add-ons that ship with the application, the other contains system add-on that
will eventually be updatable at runtime.

The updatable location tracks the expected list of add-ons in a pref. and only
returns add-ons from that list when asked for its list of add-ons.

After processFileChanges has scanned all add-ons and updated the database it
checks if the updated system add-ons match the expected set. If not we ignore
those add-ons when working out which add-ons should be visible. If they do match
then we ignore the app-shipped system add-ons when working out which are
visible.
2015-09-04 12:00:47 -07:00
Dave Townsend
cabd54a9d7 Bug 1192921: Split DirectoryInstallLocation into an immutable and mutable version. r=rhelmer
Most directory install locations are immutable at runtime. Only the profile
location can be installed into and uninstalled from. The system add-on locations
will be immutable as well but also be extended with some extra functionality so
it is useful to split the immutable parts out into a shared class that both
the mutable location and eventually system add-on locations can inherit from.
2015-08-25 16:01:55 -07:00
Dave Townsend
1814f4e9b1 Bug 1192921: Remove most assumptions that add-on IDs match filenames. r=rhelmer
Normal directory install locations expect add-ons to exist on disk with the
naming convention "<id>.xpi". Originally system add-ons were going to do
something different so I started working on this. In the end it is unnecessary
but this work did reveal some cases where _sourceBundle wasn't being updated
for add-ons and removing most of these assumptions is still valuable.
2015-08-25 15:18:43 -07:00
Mike Shal
11062ffc28 Bug 1198179 - Kill gen_mach_buildprops.py; r=ted 2015-08-25 11:42:44 -04:00
Dave Townsend
c943c97092 Bug 1192921: Refactor add-on manager startup loop to better support validating install locations after scanning. r=rhelmer
The add-ons manager recognises the notion of "install locations". Each location
can contain add-ons that are installed in the application. There are two main
types, directory locations which exist as a directory somewhere in the
filesystem and registry locations which exist in the Windows registry. The
profile location is the one where add-ons installed through the UI exist, the
other locations are for add-ons that are bundled with the application,
installed by the OS or by third-party applications.

Install locations have priorities. The profile location has the highest priority
then the others gradually lower priorities. When an add-on exists in more than
one install location the version in the highest priority location is the one
that is visible and can be active in the application. We still retain details
about the other versions in the database.

On every startup the add-ons manager scans over these install locations to see
if the set of installed add-ons has changed at all. A very quick check is done
to see if the more thorough check in processFileChanges (which synchronously
loads the add-ons database and install manifests for the add-ons) is needed.

The job of processFileChanges is to load information about all the add-ons and
update the add-ons database to match. It has to decide which add-ons to make
visible, track what changes were made to the visible set of add-ons and call
restartless add-ons install and uninstall scripts.

The original version of processFileChanges attempted to optimise this by doing
all of the work in a single loop over the add-ons in the locations. This mostly
worked but made certain situations difficult to handle (see bug 607818 f.e.).
There isn't much need for this level of optimisation. We're already in a slow
pass and once all the data is loaded off the disk looping over it is fast.

This changeset moves processFileChanges into the XPIProviderUtils file which is
lazy loaded when necessary. While most of the code is the same it instead does
one loop to update the database and gather information, then a second loop to
update add-on visibility, record changes and call bootstrap scripts.
2015-08-21 16:49:56 -07:00
Dave Townsend
dff9159048 Bug 1192921: Load XPIProviderUtils in a sandbox to simulate the way it is loaded in B2G. r=rhelmer 2015-09-04 12:22:24 -07:00
Julien Pagès
7c6d2855c8 Bug 787200 - Move the Talos code into mozilla-central: create the talos test .zip file. r=ted 2015-08-27 10:51:32 +02:00
Dave Townsend
9d995bd34f Bug 1194784: Sideloaded add-ons without full signing don't display an appropriate warning in the add-ons manager. r=dao 2015-09-03 12:39:29 -07:00
Carsten "Tomcat" Book
2984e8cec2 merge mozilla-inbound to mozilla-central a=merge 2015-09-04 16:05:11 +02:00
Phil Ringnalda
cecab21d10 Backed out 4 changesets (bug 1192921) for b2g desktop Gu hangs
Backed out changeset 1bfa2dead61f (bug 1192921)
Backed out changeset f310cab1dd4e (bug 1192921)
Backed out changeset c3009691dfe6 (bug 1192921)
Backed out changeset d8233b994741 (bug 1192921)
2015-09-03 20:53:50 -07:00