Commit Graph

18982 Commits

Author SHA1 Message Date
Nick Alexander
2533b6a1c6 Bug 1234629 - Part 3: Make bouncer's <intent-filter> set a larger subset of Fennec's <intent-filter> set. r=margaret 2016-01-27 15:44:29 -08:00
Nick Alexander
a390c29b80 Bug 1234629 - Part 1: Create bouncer APK for OTA distribution installs. r=margaret,gps
This commit produces an "install bouncer" APK which is a "hollow
shell" that looks like the main Fennec APK.  In particular, both APKs have:

* the same Android package name (application id); and
* the same set of <permission>, <uses-permission>, and <uses-feature>
  blocks in their manifests.

The bouncer APK must always have an android:versionCode smaller than
the main Fennec APK; for now, we will just bump that manually
mobile/android/bouncer/moz.build.
2016-01-27 15:28:31 -08:00
Nick Alexander
ca190092a3 Bug 1234629 - Pre: Make Distribution look in /data/data/$PACKAGE/distribution last. r=rnewman
Call a distribution in /data/data/$PACKAGE/distribution a "data
distribution".  Right now we read data distributions only in response
to writing them via another code path (extracting from APK, or
downloading).  We don't recognize a data distribution in the same way
that we recognize a system distribution (in /system/.../distribution)
in the Java code, simply because we don't look for it; and I haven't
investigated, but I think that Gecko may in fact recognize a data
distribution in this case.

This patch simply recognizes data distributions after looking for
other distributions.  That way data distributions written by the
bouncer APK are recognized and initialized, but not given precedence
over other distribution channels.
2016-01-26 17:06:27 -08:00
Nick Alexander
e075d1ad5b Bug 1168175 - Turn on screen and disable keyboard before running each test. r=gbrown 2016-02-04 09:54:12 -08:00
Nick Alexander
d8104a59cd Bug 1163082 - Part 2: Extract Android distribution from packaged assets rather than APK root. r=rnewman
This reads from "assets/distribution/**" in the APK and writes to
"distribution/**" in the data directory.  That output is the same, but
the input used to read from "distribution/**", which is not really
supported by modern build tooling (Gradle), which doesn't allow to
write files directly into the APK root.

I manually tested this without issue.  I see no way to add meaningful
tests to our current Robocop test suite; the long term testing
approach is to develop a new test for this functionality and only run
it against the "distribution" build type that was added in Bug
1163080.  However, that's a larger project than I have time for now.
2016-01-26 10:36:09 -08:00
Nick Alexander
61ddcc0a51 Bug 1163082 - Part 1: Add --with-android-distribution-directory. r=gps
This simply packs the assets/ subdirectory of the distribution
directory into the assets/ directory of the Android APK using existing
mechanisms.  It also removes the older method of manually pushing
files into dist/bin/distribution, from where they would be packaged
into the APK under distribution/.
2016-01-27 12:25:04 -08:00
Michael Comella
043c63414a Bug 1245711 - Update Adjust proguard cfg to match docs. r=mfinkle 2016-02-03 16:49:30 -08:00
Carsten "Tomcat" Book
2a07da30de Merge mozilla-central to fx-team 2016-02-04 12:08:00 +01:00
Carsten "Tomcat" Book
f84c32592e merge mozilla-inbound to mozilla-central a=merge 2016-02-04 12:02:05 +01:00
Nick Alexander
212a46e40e Backed out 2 changesets (bug 1163082) for Robocop rc1 failures.
Backed out changeset baf25be8d491 (bug 1163082)
Backed out changeset e228040a044b (bug 1163082)
2016-02-03 23:15:00 -08:00
Mark Finkle
5f9cd7a039 Bug 1245576 - Add missing unsave.1 UI Telemetry for removing bookmarks and readinglist items from Home Panels r=margaret 2016-02-04 02:45:02 -05:00
Nick Alexander
59ab1804e4 Bug 1163082 - Part 2: Extract Android distribution from packaged assets rather than APK root. r=rnewman
This reads from "assets/distribution/**" in the APK and writes to
"distribution/**" in the data directory.  That output is the same, but
the input used to read from "distribution/**", which is not really
supported by modern build tooling (Gradle), which doesn't allow to
write files directly into the APK root.

I manually tested this without issue.  I see no way to add meaningful
tests to our current Robocop test suite; the long term testing
approach is to develop a new test for this functionality and only run
it against the "distribution" build type that was added in Bug
1163080.  However, that's a larger project than I have time for now.
2016-01-26 10:36:09 -08:00
Nick Alexander
406f06596d Bug 1163082 - Part 1: Add --with-android-distribution-directory. r=gps
This simply packs the assets/ subdirectory of the distribution
directory into the assets/ directory of the Android APK using existing
mechanisms.  It also removes the older method of manually pushing
files into dist/bin/distribution, from where they would be packaged
into the APK under distribution/.
2016-01-27 12:25:04 -08:00
Nick Alexander
040223ed15 Bug 1243855 - Add Java client for interacting with autopush endpoint service. r=rnewman,sebastian
A few notes: the test is live, so I've marked it @Ignore, so that it
doesn't run during |mach gradle test|.  There's some value in mocking
the service endpoint, but this is how I verify that the server works,
so it has more value right now as a live test than a mocked test.  In
the future, that probably won't be true.

There are issues running the test locally because Robolectric doesn't
provide all the cipher suites we use in GlobalConstants: in
particular, the GCM suites aren't supported.  This may improve as
Robolectric matures, or we may add a work-around in the code (like at
http://androidxref.com/4.4.4_r1/xref/libcore/support/src/test/java/libcore/java/security/StandardNames.java#68),
or we may add a test-specific flag.  For now, I'm not going to address
it directly.

Finally, I put the code in mobile/android/services, simply because the
less that goes into base, the better our build times will be.
2016-01-29 13:47:20 -08:00
Andrzej Hunt
39237fa17b Bug 1243307 - Post: convert AsyncTask to ThreadUtils.postToBackgroundThread r=liuche 2016-02-01 15:38:35 -08:00
Andrzej Hunt
9b1ca4ca41 Bug 1243307 - Post: clarify where onPromptFinished is run r=liuche 2016-02-01 15:37:47 -08:00
Andrzej Hunt
ca01440bdb Bug 1243307 - Part 2: Ensure homescreen shortcut creation happens on background thread r=liuche 2016-02-01 15:36:38 -08:00
Andrzej Hunt
ff01801dc7 Bug 1243307 - Part 1: Make onPromptFinished run in the UI thread again r=liuche
This seems more consistent with what Android UI callbacks do. This commit also
means all callees must be adapted to use the background thread if needed.
2016-02-01 15:07:47 -08:00
Michael Comella
65c9462b35 Bug 1244293 - Don't upload telemetry if user opts out. r=mfinkle
I'm slightly concerned we're providing too much configuration information in
the debugging statements.
2016-01-29 15:21:50 -08:00
Margaret Leibovic
fde5c8e182 Bug 1241566 - Put malware download protection behind a switchboard flag. r=liuche 2016-01-29 16:30:35 -05:00
Carsten "Tomcat" Book
a636b23432 merge mozilla-inbound to mozilla-central a=merge 2016-02-03 11:59:20 +01:00
Ting-Yu Lin
103832f156 Bug 1240917 - Tweak ActionBar behavior when selection is collapsed. r=snorp
* Long pressing on empty input -> show the ActionBar.
* Single tapping on input (either empty or non-empty) -> do not show the
  ActionBar.
2016-02-02 14:32:31 +08:00
Ting-Yu Lin
5327de631c Bug 1240917 - Turn off caret timeout on Fennec. r=snorp 2016-02-02 14:32:31 +08:00
Andrzej Hunt
ba6b13ff04 Bug 1240500 - Don't repeatedly create ArrayLists when searching for occurrences r=margaret 2016-02-01 17:24:28 -08:00
Andrzej Hunt
87341a135e Bug 1242666 - Support apple-touch-icon-precomposed too r=mfinkle 2016-02-01 11:25:52 -08:00
Sebastian Kaspari
9614ad9a45 Bug 1244760 - DownloadContentService: Use HttpUrlConnection instead of HttpClient. r=rnewman 2016-02-01 17:32:07 +01:00
Margaret Leibovic
770a94c393 Bug 1244727 - Remove expired histogram probes. r=mfinkle 2016-02-01 10:02:53 -05:00
Margaret Leibovic
60ff557e83 Bug 1244704 - Create a more granular BOOKMARKS_COUNT probe for mobile. r=mfinkle 2016-02-01 09:58:03 -05:00
Michael Comella
4d40d63ff3 Bug 1244859 - Remove trailing slash in telemetry urls. r=mfinkle r=mfinkle
It was not to-spec (though it doesn't appear to have an effect on how the
server reads the data).
2016-02-01 13:25:40 -08:00
Margaret Leibovic
50c45752af Backed out changeset 5a593c624332 2016-02-02 10:07:55 -05:00
Margaret Leibovic
4e4079ce84 Backed out changeset cd18c8af8b56 2016-02-02 10:06:52 -05:00
Margaret Leibovic
b841a69d27 Bug 1244727 - Remove expired histogram probes. r=mfinkle 2016-02-01 10:02:53 -05:00
Margaret Leibovic
d3d5545a8f Bug 1244704 - Create a more granular BOOKMARKS_COUNT probe for mobile. r=mfinkle 2016-02-01 09:58:03 -05:00
Margaret Leibovic
b8d4212a67 Bug 1244734 - Handle a null tab URL in enterEditingMode. r=liuche 2016-02-01 10:47:10 -05:00
Carsten "Tomcat" Book
42bc85234d Merge mozilla-central to fx-team 2016-02-02 11:54:43 +01:00
Carsten "Tomcat" Book
9468a26fac merge mozilla-inbound to mozilla-central a=merge 2016-02-02 11:50:53 +01:00
Geoff Brown
695fcf875c Bug 1241907 - Grant runtime permissions before running browser tests; r=jmaher 2016-02-01 15:52:34 -07:00
Jim Chen
5f448383ca Bug 1243070 - Remove obsolete size-change code; r=snorp
Remove obsolete SIZE_CHANGED event and its handler in nsWindow. Also
remove some other supporting code (such as gAndroidBounds and the
FORCED_RESIZE event) that should be unnecessary by now.
2016-02-01 17:38:14 -05:00
Jim Chen
728b693286 Bug 1243070 - Use native method to notify window size change; r=snorp
Convert the SIZE_CHANGED event to a native method in GLController, and
carry over the SIZE_CHANGED implementation to the new implementation in
GLController. Some other changes were made for correctness in handling
size changes.
2016-02-01 17:38:14 -05:00
Jim Chen
04869506de Bug 1243069 - Control GeckoThread state entirely from C++ code; r=snorp
Right now, we rely on browser.js sending Gecko:Ready, to set the
GeckoThread state to RUNNING upon receiving Gecko:Ready. This patch
gets rid of this dependency on browser.js and Gecko:Ready.
2016-02-01 17:38:14 -05:00
Jim Chen
41e607e6aa Bug 1243049 - Update robocop tests to use new prefs API; r=gbrown
Change old robocop prefs API to the new API and add helper classes for
getting prefs. Also switch all tests that use prefs to use the new API.
2016-02-01 17:38:14 -05:00
Jim Chen
e226127161 Bug 1243049 - Use PrefHelper.addObserver; r=snorp
Use the new PrefHelper.addObserver method for adding pref observers.
2016-02-01 17:38:14 -05:00
Jim Chen
195a41f4e6 Bug 1243049 - Convert browser.js prefs code to use observer; r=margaret
Convert the old prefs code in browser.js to use observer notifications
that are sent by the new PrefsHelper implementation, in order to handle
pseudo-prefs.
2016-02-01 17:38:14 -05:00
Jim Chen
668e130fb8 Bug 1243049 - Introduce new PrefsHelper implementation; r=snorp
Introduce a new implementation for PrefsHelper that does not use events
or rely on browser.js for getting and/or setting prefs. Also add an
addObserver method to better match the removeObserver method.
2016-02-01 17:38:13 -05:00
Sebastian Kaspari
c3541a0d8a Bug 1244748 - Remove unused network_offline.png. r=mfinkle 2016-02-01 17:08:37 +01:00
Jordan Lund
53bbeaa0f5 Bug 1219094 - releng - kill api-11 mozconfigs NPOTB DONTBUILD CLOSED TREE r=rail 2016-02-01 13:42:38 -08:00
Sebastian Kaspari
12ae8599a6 Bug 1244241 - Fix quotes in tab_queue_notification_settings. r=Pike 2016-02-01 22:48:12 +01:00
Mark Capella
f22b6377e0 Bug 1235510 - Remove obsolete robocop tests for SelectionHandler routines, r=jchen 2016-02-01 16:42:12 -05:00
Sebastian Kaspari
34a77b262e Bug 1243817 - DownloadContentCatalog: Store catalog as JSON object instead of array. r=rnewman 2016-01-28 19:26:09 +01:00
Andrzej Hunt
4c1b04256b Bug 1243354 - Part 1: Correctly handle TextInputLayout in PromptInput r=mcomella 2016-01-29 15:33:18 -08:00