Commit Graph

19318 Commits

Author SHA1 Message Date
Nick Alexander
5f4bcf6727 Bug 1248160 - Part 3: Move MOZ_ANDROID_SHARED_ID to branding; remove mobile/android/defs.mk. r=ted.mielczarek
MozReview-Commit-ID: KAxIYsHvAC4
2016-02-13 10:19:25 -08:00
Nick Alexander
deff89956f Bug 1248160 - Part 2: Inline MOZ_ANDROID_SHARED_FXACCOUNT_TYPE. r=ted.mielczarek
This is per-package, so there's no cross-package definition needed.

MozReview-Commit-ID: 8qy2SGJtCh1
2016-02-13 10:13:10 -08:00
Nick Alexander
aaff2ddd7e Bug 1248160 - Part 1: Remove MOZ_ANDROID_SHARED_ACCOUNT_TYPE. r=ted.mielczarek
This is cleaning up after Bug 1220906, which removed Old Sync.

MozReview-Commit-ID: EmP4RTMIZ9
2016-02-13 10:00:58 -08:00
Mark Finkle
5fb627ff1d Bug 1249096 - Use a more forgiving URL parser when getting the fallback favicon r=rnewman 2016-02-21 11:54:34 -05:00
Andi-Bogdan Postelnicu
45cff21e15 Bug 1250144 - call super.onAttachedToWindow in ToolbarEditLayout::onAttachedToWindow. r=sebastian
MozReview-Commit-ID: 5ld41tfhVGv
2016-02-22 17:04:52 +02:00
Edwin Flores
4aa4d53551 Bug 1246984 - Fix scrolling on Blackberry capacitive keyboard - r=kats 2016-02-22 09:36:22 +00:00
vivek
840c94856f Bug 946857 - Part 1: Expose disabled hosts through Password CP r=nalexander
Added a simple robocop test to verify that it is possible to query disabledHosts with PasswordProviders.

MozReview-Commit-ID: K4j4Aczp2xv
2015-12-15 19:23:14 +02:00
Andrzej Hunt
e870bf03e3 Bug 1252501 - Coalesce topsites position with rowid to ensure a valid position r=rnewman
MozReview-Commit-ID: BFcs3sUT0Ff
2016-03-01 14:00:22 -08:00
Chenxia Liu
0fdf116bcd Bug 1232866 - Establish clearer IA for panel list items. r=mcomella
MozReview-Commit-ID: 40quuVQxL2K
2016-03-02 10:42:19 -08:00
Carsten "Tomcat" Book
54d05803a2 Merge mozilla-central to fx-team 2016-03-02 16:05:38 +01:00
Tristan
295adc9dc7 Bug 1244197 - Fixed conditional logic for two performance optimizations, r=capella 2016-03-02 08:19:11 -05:00
Phil Ringnalda
af4b02227d Merge f-t to m-c, a=merge 2016-02-20 17:25:14 -08:00
Chenxia Liu
50bd8bb392 Backed out changeset a47d5f97fca8. r=bustage, CLOSED TREE
MozReview-Commit-ID: 6AoqIQWcOKd
2016-02-19 20:18:08 -08:00
Chenxia Liu
4e5d96c5c3 Bug 1246130 - Gather onboarding telemetry experiments separately from other active experiments. r=margaret
MozReview-Commit-ID: INBoGNmVndw
2016-02-16 19:08:43 -08:00
Chenxia Liu
de91161ea3 Bug 1243216 - Run pngquant on images to compress them further. r=mfinkle
MozReview-Commit-ID: ISx9rUsB4PX
2016-02-18 18:45:15 -08:00
Mark Finkle
2a9c84bb03 Bug 1249314 - Cleanup 'tabstray' Telemetry method r=liuche 2016-02-19 14:56:43 -05:00
Mark Finkle
46c9b10f56 Bug 1249094 - Add UI Telemetry probes for application foreground / background changes r=margaret 2016-02-19 14:56:40 -05:00
Margaret Leibovic
b3e6967557 Bug 1227743 - Remove snippet (id) from rotation after the user clicks on it. r=mfinkle
MozReview-Commit-ID: 10m8yssL94U
2016-02-11 15:29:25 -05:00
Jim Chen
e4d0ce1fdc Bug 1247293 - Set search suggestion prompted pref along with enabled pref; r=ahunt
Set the prompted pref along with the enabled prefs so that we don't have
to detect setting the enabled pref elsewhere in order to set the
prompted pref.
2016-02-19 17:14:58 -05:00
Carsten "Tomcat" Book
6154ac43b6 Merge mozilla-central to fx-team 2016-02-19 12:08:37 +01:00
Carsten "Tomcat" Book
c69829500b merge mozilla-inbound to mozilla-central a=merge 2016-02-19 12:02:26 +01:00
Chenxia Liu
130b7c31df Bug 1249331 - Update copy for datasaving firstrun panel. r=margaret
MozReview-Commit-ID: 5B6SlddSwDW
2016-02-18 09:44:49 -08:00
Margaret Leibovic
14eea75795 Bug 1247324 - Disable Switchboard in automation. r=gbrown,mfinkle
MozReview-Commit-ID: ItqHBIEdD0Q
2016-02-18 12:03:51 -05:00
chaithanya
afb1e7d3e4 Bug 1243435 Remove unused prefs toolkit.telemetry.prompted / toolkit.telemetry.notifiedOptOut from test suites r=Dexter
MozReview-Commit-ID: 83IOB4Xvf8I
2016-02-18 10:51:24 -08:00
Sebastian Kaspari
bfcaedd135 Bug 1246707 - Set all Snackbar durations to LONG. r=ahunt
MozReview-Commit-ID: EuSc6movOlX
2016-02-17 14:14:20 +00:00
Priyen
a887b77429 Bug 1245722 - Replace org.mozilla.gecko.sync.Utils.getLanguageTag with Locales.getLanguageTag. r=nalexander
The code at was duplicated for build reasons that no longer apply.

MozReview-Commit-ID: Hk7n9beobsY
2016-02-14 21:59:24 -06:00
Margaret Leibovic
1c1ecdc48e Bug 1245497 - (Part 2) Measure FENNEC_GECKOAPP_STARTUP_ACTION when we handle a new intent. r=mcomella
MozReview-Commit-ID: IOlo2kzRhzh
2016-02-03 12:22:06 -05:00
Margaret Leibovic
d1fe17d2d4 Bug 1245497 - (Part 1) Update FENNEC_GECKOAPP_STARTUP_ACTION to measure homescreen shortcut launches. r=mcomella
MozReview-Commit-ID: CkvS3eP5wTy
2016-02-03 12:08:15 -05:00
Carsten "Tomcat" Book
f14d6c92b4 merge fx-team to mozilla-central a=merge 2016-02-18 12:41:52 +01:00
Carsten "Tomcat" Book
f8289f4f90 merge mozilla-inbound to mozilla-central a=merge 2016-02-18 12:01:24 +01:00
Nick Alexander
bda6ae718e Bug 1074258 - Follow-up: Force Gradle JVM to use utf-8 encoding. r=me
MozReview-Commit-ID: J7emtEFBbvX
2016-02-17 22:45:47 -08:00
Nick Alexander
20ef13feb2 Bug 1074258 - Expand entities at build time when copying strings.xml in Gradle. r=me
DONTBUILD NPOTB

Android Studio (and IntelliJ) does not correctly handle &entity;
definitions in Android strings.xml files.  Strings with entities (in
Fennec, all of them) are rendered in the IDE as blank.  This patch
expands the entities when copying for use by Gradle, improving the IDE
integration.

MozReview-Commit-ID: 2T6CzoKc7v8
2016-02-17 17:16:51 -08:00
Nick Alexander
ccec523945 Bug 1233882 - Post: Make Gradle app manifest package be org.mozilla.gecko. r=me
MozReview-Commit-ID: 7YP0mShKc0S
2016-02-17 16:18:13 -08:00
Nick Alexander
ee75d8a77d Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella
DONTBUILD NPOTB

Using the real Android manifest tripped up Robolectric, so I've taken
the easy way out and added a dummy TestGeckoApplication; see comment
in the code.

MozReview-Commit-ID: 4fCY504UgPu
2016-02-17 19:25:54 -08:00
Michael Comella
efd611eed3 Bug 1244861 - Gzip outgoing telemetry pings. r=rnewman
This commit adds the GzipNonChunkedCompressingEntity which is necessary because
the telemetry servers don't support chunked uploading, which the built in
GzipCompressingEntity does.

I tested this on my local device and logs for successful uploads were sent for
both the testing gzip server as well as the official telemetry server. My data
correctly appears on the former and I did not check the latter.

MozReview-Commit-ID: 4bCNiRYyqFD
2016-02-17 18:20:20 -08:00
Michael Comella
6d6156efb2 Bug 1249150 - Remove FakeProfileTestCase. r=nalexander
MozReview-Commit-ID: Ksz68WSJLyy
2016-02-17 15:35:29 -08:00
Chenxia Liu
2ba6de265a Bug 1243216 - Make clickable slides more visible. r=Margaret
MozReview-Commit-ID: ECC9BgVI5AC
2016-02-16 18:35:30 -08:00
Margaret Leibovic
6253d61988 Bug 1234693 - Point Switchboard URLs to production mozilla-services endpoint. r=mfinkle
MozReview-Commit-ID: ArdTpolY7rQ
2016-02-17 10:14:53 -05:00
Carsten "Tomcat" Book
1e4876ec2e Backed out changeset 53b0b5b29776 (bug 1243435) 2016-02-17 15:00:51 +01:00
Sebastian Kaspari
365e4a9819 Bug 1236431 - Use contentDescription to verify URL in tests. r=mcomella
MozReview-Commit-ID: IrcsLaNExEM
2016-02-12 18:42:40 +01:00
Sebastian Kaspari
a66ebd34bc Bug 1236431 - ToolbarDisplayLayout: Only show base domain. r=mcomella
MozReview-Commit-ID: GwH3XDVim4F
2016-02-11 15:54:11 +01:00
Sebastian Kaspari
701a49a31f Bug 1236431 - (Pre) ToolbarDisplayLayout: Address lint warnings and clean up code. r=mcomella
MozReview-Commit-ID: JkD7uqRMQhQ
2016-02-12 09:42:41 +01:00
Carsten "Tomcat" Book
3fb6ea9889 Merge mozilla-central to fx-team 2016-02-17 14:38:01 +01:00
Carsten "Tomcat" Book
3e9ea9b4fc Backed out changeset bc3e37b63def (bug 1246918) for fix frequent android c1 test failures 2016-02-17 14:35:10 +01:00
Carsten "Tomcat" Book
05fbdd5951 merge fx-team to mozilla-central a=merge 2016-02-17 12:07:39 +01:00
chaithanya
3b8c4786a0 Bug 1243435 - Remove unused prefs toolkit.telemetry.prompted / toolkit.telemetry.notifiedOptOut from test suite. r=Dexter 2016-02-16 05:11:00 +01:00
Carsten "Tomcat" Book
1e25d912bc Merge mozilla-central to fx-team 2016-02-17 12:20:16 +01:00
Sebastian Kaspari
0f7272cbaa Bug 1247366 - AppMenuComponent.findAppMenuItemView(): Wait for views and not for text to appear. r=margaret
MozReview-Commit-ID: Hb5BHnu15nm
2016-02-12 21:00:01 +01:00
Michael Comella
71bb58a700 Bug 1244295 - Add getClientId test for when client ID file already exists. r=me
Similar to gfritzsche's suggestion in bug 1244295 comment 26.

MozReview-Commit-ID: Agqyj47uSZR
2016-02-18 17:46:52 -08:00
Michael Comella
7588564b44 Bug 1244295 - Add junit4 tests for GeckoProfile.getClient & friends. r=mfinkle
Added testGetDir to sanity check how the profile is set up for the test and
left it in as a bonus.

Additionally, changed access levels on the ensureParentDirs method because it
only needed to be `protected` for testing.

MozReview-Commit-ID: CDVQjyf3yP2
2016-02-18 17:38:16 -08:00
Michael Comella
5f3968b2e9 Bug 1244295 - Validate client IDs before sending them in a Telemtry report. r=mfinkle
Additionally, we log some of the Exceptions thrown while retrieving the client
ID to make it clearer what is happening. The underlying GeckoProfile methods
ensure the profile path is not printed so we don't have to worry about leaking
that.

MozReview-Commit-ID: 3o0rvXDRZzM
2016-02-17 12:22:18 -08:00
Michael Comella
71c7ea29f1 Bug 1244295 - Create client ID if it doesn't already exist in GeckoProfile. r=mfinkle
Additionally, we'll try to migrate the client ID from FHR if it doesn't already
exist.

MozReview-Commit-ID: B9vfefeVi2i
2016-02-12 16:34:43 -08:00
Ting-Yu Lin
0cded77e54 Bug 1246918 - Fix carets missing after scrolling down in selection mode on Fennec. r=roc
Fennec enables sCaretsExtendedVisibility which uses
Appearance::NormalNotShown instead of Appearance::None to keep actionbar
shown during scrolling. This breaks selection mode update when the
positions of the carets are not changed after scrolling.

To fix this, we need to implement appearance recovering for selection
mode scrolling like we did for cursor mode in bug 1212732, and make
UpdateCaretsForSelectionMode() respects UpdateCaretsHint.

MozReview-Commit-ID: LkfUIGKHL0h
2016-02-11 16:22:57 +08:00
Xidorn Quan
7cada478d1 Bug 743198 part 8 - Use unprefixed Fullscreen API in chrome code. r=smaug 2016-02-17 08:47:11 +08:00
Jim Chen
4b45341431 Bug 1248459 - Get more logs for debugging crash; r=snorp
This patch turns on logging for GeckoEditable and GeckoInputConnection,
and makes us fetch more lines of logcat when submitting crash reports.
2016-02-16 16:57:49 -05:00
Jim Chen
1e590abbf2 Bug 1248033 - Support GAME_ROTATION_VECTOR sensor events with no W parameter; r=snorp 2016-02-16 16:57:49 -05:00
Jim Chen
c1b0c71624 Bug 1248047 - Switch back to UI thread when using physical keyboards; r=esawin
When using physical keyboards, we get key events on the UI thread. To
improve performance, and to support key listeners better, we should
switch the IC thread to the UI thread in that case.
2016-02-16 16:02:39 -05:00
Jim Chen
21ab07e123 Bug 1248047 - Simplify GeckoInputConnection.processKey; r=esawin
Right now, processKey uses a IC-thread proxy in order to handle key
events on the UI thread. This patch makes it post the key event to the
IC thread and avoid the proxy entirely.
2016-02-16 16:02:39 -05:00
Jim Chen
4d6ac799f6 Bug 1248047 - Make GeckoInputConnection.sendKeyEvent more efficient; r=esawin
Right now, sendKeyEvent does a round trip from the IC thread to the UI
thread back to the IC thread. This patch makes it stay on the IC thread.
2016-02-16 16:02:38 -05:00
Carsten "Tomcat" Book
c0a8e566e1 merge mozilla-inbound to mozilla-central a=merge 2016-02-16 11:51:26 +01:00
ISHIKAWA, Chiaki
72d38a6835 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Margaret Leibovic
939092e62b Bug 1225842 - Properly send message to update open search state. r=liuche
MozReview-Commit-ID: 77s1zWo9vrr
2016-02-05 12:56:23 -05:00
Margaret Leibovic
ca89cf07bb Bug 1245930 - Disable zoomed view on non-Nightly builds. r=mcomella
MozReview-Commit-ID: 3RfprujEO1h
2016-02-12 12:54:50 -05:00
Nick Alexander
c386e3e379 Bug 1248092 - Replace preprocessor -I with CONFIGURE_SUBST_FILES. r=glandium
MozReview-Commit-ID: IT4cHsAOMwd
2016-02-12 16:27:24 -08:00
David Rajchenbach-Teller
a4d88c56a6 Bug 1243706 - Release PerformanceStats/PerformanceWatcher;r=Felipe
MozReview-Commit-ID: 4XT21bfBSa9
2016-01-28 13:41:14 +01:00
Mark Finkle
e34e500a85 Bug 1046859 - Add telemetry flag for search suggestion opt-in r=liuche 2016-02-14 21:20:37 -05:00
Phil Ringnalda
e67329a593 Merge m-i to m-c, a=merge 2016-02-13 19:18:53 -08:00
Mark Finkle
6bbc62012c Bug 1246973 - Support clearing UI Telemetry when creating pings r=gfritzsche 2016-02-12 18:02:03 -05:00
Nick Alexander
f7269cd80a Bug 1119520 - Add opt-in Gradle build mode for mobile/android. r=gps
Opt-in by adding --enable-gradle-mobile-android-builds.

Gradle dependencies (including the Android-Gradle plugin) are assumed
to be present.  Local developers will fetch them from the jcentral
repository.

Android-specific Maven dependencies are shipped as "extras" with the
Android SDK, and should be found automatically by the Android-Gradle
plugin.

MozReview-Commit-ID: 966XgddWgEu
2016-02-12 10:06:40 -08:00
Nick Alexander
4777f0cd86 Bug 1248005 - Use com.stanfy.spoon:spoon-gradle-plugin:1.0.4. r=me
MozReview-Commit-ID: 8hSOCq8XpZ7
2016-02-11 12:44:53 -08:00
Andrzej Hunt
33bea3e9a1 Bug 1245580 - Post: document that OnFaviconLoadedListener runs on the UI thread r=liuche
MozReview-Commit-ID: HcsTHl8ttUQ
2016-02-04 19:22:59 -08:00
Andrzej Hunt
aaf005f02c Bug 1245580 - Part 2: assert GeckoAppShell.createShortcut is run on background thread r=liuche
MozReview-Commit-ID: 4KsxfvQ5mOd
2016-02-04 19:24:20 -08:00
Andrzej Hunt
d74032c6f7 Bug 1245580: Part 1 - doCreateShortcut no longer needs to be on the Background thread r=liuche
When doCreateShortcut was first created, it also handled webapp intents. This required additional
work, meaning doCreateShortcut had to be run on the background thread. We now only
create an Android Intent, with no additional work, hence we can run directly on the UI thread.

MozReview-Commit-ID: BFrAuNfDiFj
2016-02-04 19:22:16 -08:00
Geoff Brown
71e9757356 Bug 1235689 - Fix and enable robocop testAppMenuPathways; r=sebastian 2016-02-19 08:19:54 -07:00
Carsten "Tomcat" Book
4f89063dcd Merge mozilla-central to mozilla-inbound 2016-02-19 12:07:49 +01:00
Ting-Yu Lin
f838b222e3 Bug 1246918 - Fix carets missing after scrolling down in selection mode on Fennec. r=roc
Fennec enables sCaretsExtendedVisibility which uses
Appearance::NormalNotShown instead of Appearance::None to keep actionbar
shown during scrolling. This breaks selection mode update when the
positions of the carets are not changed after scrolling.

To fix this, we need to implement appearance recovering for selection
mode scrolling like we did for cursor mode in bug 1212732, and make
UpdateCaretsForSelectionMode() respects UpdateCaretsHint.

MozReview-Commit-ID: LkfUIGKHL0h
2016-02-11 16:22:57 +08:00
Carsten "Tomcat" Book
cc458bb98e Merge mozilla-central to fx-team 2016-02-12 15:21:12 +01:00
Carsten "Tomcat" Book
ab1e5f44dc merge mozilla-inbound to mozilla-central a=merge 2016-02-12 15:15:17 +01:00
Carsten "Tomcat" Book
73e08a4e77 Backed out changeset 306cf0271d3e (bug 1119520) for causing merge conflicts with m-i to m-c merge 2016-02-12 15:14:36 +01:00
Mihai Pop
a5c87276df Bug 1247294 - Add "Full-screen browsing" settings, in Settings -> General menu for tablets. r=sebastian 2016-02-11 15:57:36 +02:00
Andrzej Hunt
d755ef8861 Bug 1246704 - Either create URLMetadataTable, or upgrade it, don't do both r=liuche
MozReview-Commit-ID: HyYPbIwqMGc
2016-02-08 10:55:44 -08:00
Andrzej Hunt
fcf3b8657a Bug 1239823 - Part 2: sanitise input dates for DatePicker r=margaret
MozReview-Commit-ID: GiXgQwscGPT
2016-02-03 15:23:09 -08:00
Andrzej Hunt
c87e0ede58 Bug 1239823 - Part 1: Parse min/max date before use r=margaret
MozReview-Commit-ID: 4th3CJwwcDg
2016-02-03 15:17:38 -08:00
Nick Alexander
500e6635c8 Bug 1119520 - Add opt-in Gradle build mode for mobile/android. r=gps
Opt-in by adding --enable-gradle-mobile-android-builds.

Gradle dependencies (including the Android-Gradle plugin) are assumed
to be present.  Local developers will fetch them from the jcentral
repository.

Android-specific Maven dependencies are shipped as "extras" with the
Android SDK, and should be found automatically by the Android-Gradle
plugin.

MozReview-Commit-ID: 966XgddWgEu
2016-02-03 11:18:38 -08:00
Nick Alexander
94bd918d8c Bug 1247637 - Remove browser_intent_*; use ActivityUtils to open FxA links. r=sebastian
This fixes a crash, since Bug 1242213 removed the .App
<activity-alias> that browser_intent_class references.

I debated just updating the strings, and decided that it was best to
remove a pattern that is used only once in our codebase, even though
it moves more functionality to code.

MozReview-Commit-ID: 4Wgw0oITgue
2016-02-11 10:07:20 -08:00
malayaleecoder
2b698981bb Bug 1243821 - Remove unused Old Sync strings. r=nalexander
MozReview-Commit-ID: 48Nm8SxZEbG
2016-02-03 02:02:25 +05:30
Carsten "Tomcat" Book
0a555533a6 merge mozilla-inbound to mozilla-central a=merge 2016-02-11 11:52:01 +01:00
Ting-Yu Lin
7ea335f8e8 Bug 1246572 - Remove the two blue bars of the text selection for Fennec. r=snorp 2016-02-09 23:19:43 +08:00
Randall Barker
e57e8c417c Bug 1247095 - Disable re-targeting mouse event in Fennec r=snorp 2016-02-10 08:20:01 -08:00
Carsten "Tomcat" Book
24a4428cfe Merge mozilla-central to mozilla-inbound 2016-02-10 14:29:05 +01:00
Carsten "Tomcat" Book
3847eaf3bd merge mozilla-inbound to mozilla-central a=merge 2016-02-10 11:47:34 +01:00
Jim Chen
0c9549bd87 Bug 1241558 - Re-enable testInputConnection on 4.3; r=gbrown 2016-02-09 23:36:41 -05:00
Jim Chen
906cd783ea Bug 1241558 - Add test to testInputConnection; r=esawin 2016-02-09 23:36:41 -05:00
Jim Chen
45c8ed0b53 Bug 1241558 - Don't ignore Gecko selection when Gecko commits composition; r=esawin
When Java is changing the composition, we should ignore the Gecko
selection. However, when Gecko is committing its composition, we should
not be ignoring the corresponding Gecko selection change. In other
words, we should only ignore selection changes when we know the change
is from Java.
2016-02-09 23:36:41 -05:00
Nick Alexander
406dc13a1d Bug 1173229 - Apply Google-recommended PRNG fixes before generating DSA keys. r=rnewman
See
https://android-developers.blogspot.com/2013/08/some-securerandom-thoughts.html
for a thorough discussion.

It's very expensive (at least 200ms on modern devices) to do this in
Application.onCreate, so we'll do this just before generating DSA keys.
In exchange, we accept some risk that we'll introduce the same issue
again.  As we lint more aggressively in automation, this risk will
decrease.

Google licenses the fixes file very permissively.  I have added some
serialization IDs to prevent certain compile warnings.
2016-02-03 15:39:16 -08:00
Michael Comella
b71a17e843 Bug 1246839 - Close Reader in ApkResources. r=rnewman
MozReview-Commit-ID: Ks2AkrPDF3Q
2016-02-08 17:58:03 -08:00
Michael Comella
31ec0db69f Bug 1246839 - Close FileOutputStream in BrowserApp. r=rnewman
MozReview-Commit-ID: C2tWuetVrqp
2016-02-08 17:55:48 -08:00
Michael Comella
09035ff65f Bug 1246209 - Add profile creation date to core ping. r=mfinkle
This patch adds 2 workarounds for the fact that getProfileCreationDate
returns -1 when it can't find a creation date. Returning -1 turned
out to be not particularly robust but I did it this way to avoid
adding too many additional versions of methods in order to have
optional parameters such as profileCreationDate. The workarounds
are added as TODOs w/ bug #'s in the code and mentioned in the
comments of bug 1246816 itself.

A future implementation should probably add a Builder to pass a
single Object as the argument to TelemetryPingGenerator.createCorePing
to prevent the argument list from growing unreasonably large and
to properly operate on optional parameters. I didn't do this in
this patch in order to simplify the uplifted code.
2016-02-08 17:17:14 -08:00
Michael Comella
59539bf626 Bug 1246209 - Add getProfileCreationDate, implement from filestystem, & add stencil code. r=mfinkle
Retrieving the profile creation date from the filesystem is not strictly
necessary to upload this data and returns -1 until it is implemented. If the
decision is r+'d here, it will be implemented in bug 1246816.
2016-02-08 17:10:26 -08:00
Michael Comella
85c3cb6030 Bug 1246209 - Extract readJSONObjectFromFile out of getClientId. r=mfinkle 2016-02-08 15:03:21 -08:00
Michael Comella
e96bcf3add Bug 1233238 - Compile with play-services-{ads,analytics,appindexing} to support Adjust SDK. r=nalexander
On a CLOSED TREE because this is Android only.

When we switched to fine-grained Google Play Services bundling (Bug
1115004), we stopped shipping com.google.android.gms.analytics.  That
silently breaks Adjust, which queries the Google Ad ID using
reflection: now the package isn't present!  This patch restores the
Play Services libraries that Adjust relies on.  (Sadly, this bloats
our APK tremendously.)

There is some hijinkery, however: the Play Services libraries
reference a library (org.apache.http) that is deprecated in Android
23!  However, the library is still present on Android 23 devices,
which buys Google time to replace the offending code.  This compiles
just fine, breaks the Proguard global optimization pass.  To give
Proguard the information, we add the library as a Proguard "library
JAR".  This is equivalent to the Google-provided Gradle `useLibrary`
directive.
2016-02-04 16:10:29 -08:00
Mark Finkle
ec6fe8647c Bug 1244966 - Re-enable testBookmarklets using a simpler test r=margaret 2016-02-09 11:24:36 -05:00
Shatur
a182a1d524 Bug 1228170 - Remove legacy menu code from AppMenuComponent. r=sebastian 2016-02-02 23:46:58 +05:30
Carsten "Tomcat" Book
63e921a3d8 merge mozilla-inbound to mozilla-central a=merge 2016-02-09 12:02:38 +01:00
Christoph Kerschbaumer
f6da4b30e3 Bug 1229890 - Convert JS callsites to use asyncOpen2 within mobile/ (r=mfinkle,sicking) 2016-02-08 08:53:17 -08:00
Kartikaya Gupta
4ac5bf70ed Bug 1243854 - Tweak fling curving to make medium-length flings go a bit faster. r=snorp 2016-02-08 11:46:21 -05:00
Ting-Yu Lin
1cd5cc8dd9 Bug 1246064 - Support long press to show AccessibleCaret on empty input for Fennec. r=roc 2016-02-08 16:08:46 +08:00
Mark Goodwin
94b7618b12 Bug 1227956 - Implement Kinto.js OneCRL client r=rnewman 2016-02-09 18:51:08 +00:00
Chenxia Liu
5a95cf156e Bug 1208138 - Handle tablet-specific cases. r=margaret 2016-01-28 19:26:05 -08:00
Chenxia Liu
6e2e64f26d Bug 1208138 - Firstrun is not dismissed in some cases. r=margaret 2016-01-28 19:02:32 -08:00
Andrzej Hunt
98d00e4304 Bug 826400 - Post: update DATABASE_VERSION comment, and clarify why we do this r=liuche 2016-02-08 10:10:46 -08:00
Wes Kocher
9ec70209ca Backed out changeset d007cfebe661 (bug 1234693) for android robocop failures CLOSED TREE 2016-02-08 12:53:10 -08:00
Chenxia Liu
84a918d554 Bug 1245368 - Add telemetry for home panel customizations. r=margaret 2016-02-04 16:14:34 -08:00
Chenxia Liu
b9f5c237d4 Bug 1201653 - Provide a way to self-select into a specific experiment [Switchboard]. r=margaret 2016-02-03 16:49:09 -08:00
Margaret Leibovic
9258079105 Bug 1234693 - Point Switchboard URLs to production mozilla-services endpoint. r=mfinkle 2016-02-05 08:08:42 -05:00
Margaret Leibovic
d83c489bca Bug 1243387 - (Part 2) Update SuggestClient to use NetworkUtils. r=mfinkle 2016-02-05 09:38:48 -05:00
Margaret Leibovic
e9ba3ecf54 Bug 1243387 - Add telemetry probe to understand how often users load reading list items when offline. r=mfinkle 2016-02-05 09:37:15 -05:00
Margaret Leibovic
653e06ab02 Bug 1244329 - Flip the preference to on for requiring signed addons. r=mfinkle 2016-02-05 09:59:29 -05:00
Margaret Leibovic
39e38e1e79 Bug 1246170 - Remove about:logins histogram telemetry probes. r=mfinkle 2016-02-05 10:11:54 -05:00
Margaret Leibovic
d0095b992d Bug 1113297 - Back out match case mode for find-in-page. r=liuche 2016-02-03 15:51:46 -05:00
Shih-Chiang Chien
c3e400ba96 Bug 1129785 - support video sharing via Presentation API. r=mfinkle. 2016-02-06 18:15:22 -08:00
Nick Alexander
1aaa667c0e Backed out changeset 746468f5d979 (bug 1233882). 2016-02-05 21:19:13 -08:00
Nick Alexander
04f2d28f94 Bug 1234629 - Post: Add simple bouncer APK docs. r=me 2016-02-04 15:54:12 -08:00
Nick Alexander
1c6c3b60c1 Bug 1234629 - Post: Add Gradle support for bouncer. r=me 2016-01-26 11:54:00 -08:00
Nick Alexander
6b67826901 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
522820bdb3 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
45d70f711a Bug 1234629 - Part 0: 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-02-04 17:41:54 -08:00
Nick Alexander
5f4e1f9723 Backed out changeset 10dfe5e3ded1 (bug 1242213) 2016-02-05 16:35:45 -08:00
Michael Comella
601cfe71c0 Bug 1246314 - Add comment to explain why we don't log exceptions. r=me 2016-02-05 16:38:05 -08:00
Michael Comella
393beacaa7 Bug 1246314 - Don't log exception when throwing in client ID. r=ahunt 2016-02-05 16:07:15 -08:00
Nick Alexander
e93b1f84d2 Bug 1244944 - Don't stick an org.json.JSONArray into an ExtendedJSONObject. r=rnewman
This works due to string conversions, but it's not elegant.  Let's
just define the API we want, and work to improve the implementation
when we remove org.json.simple entirely.

MozReview-Commit-ID: GseI427PeDi
2016-02-01 16:57:24 -08:00
Nick Alexander
72024f9202 Bug 1244944 - Don't catch or throw ParseException. r=rnewman
MozReview-Commit-ID: G7gIlAOFy7k
2016-01-20 17:18:55 -08:00
Nick Alexander
a8f03e0257 Bug 1244944 - Don't throw ParseException from ExtendedJSONObject. r=rnewman
One step further on the path of removing dependence on
org.json.simple: don't expose its exceptions to consumers of EJO.  We
re-purpose the existing UnexpectedJSONException classes to incorporate
what were once ParseException instances.

MozReview-Commit-ID: KOwM3cf0fm
2016-01-20 17:02:55 -08:00
Nick Alexander
67fa56a6cc Bug 1244944 - Inline ExtendedJSONObject.parseJSONObject. r=rnewman
MozReview-Commit-ID: 5J46KlYoLx6
2016-01-20 16:40:32 -08:00
Nick Alexander
c115a3b4b5 Bug 1244944 - Use typed put() variants. r=rnewman
MozReview-Commit-ID: 2Uxk9jcxQ7F
2016-02-01 16:55:36 -08:00
Nick Alexander
1f3c649055 Bug 1244944 - Fix test. r=rnewman
MozReview-Commit-ID: AKOcras22LX
2016-01-20 16:24:01 -08:00
Nick Alexander
80a6d27839 Bug 1244944 - Remove untyped EJO.putAll. r=rnewman
MozReview-Commit-ID: 2TQNGErFAMv
2016-01-20 16:23:44 -08:00
Nick Alexander
c6f78cf224 Bug 1244944 - Remove unused deepCopy method. r=rnewman
MozReview-Commit-ID: 5LAtdJ5W3fX
2016-01-19 18:02:56 -08:00
Nick Alexander
6903c86a8c Bug 1244944 - Remove old and crufty defer{Get,Put}. r=rnewman
This is safe because the single consumer of `MetaGlobal.fetch` is
`FetchMetaGlobalStage.execute`, which already expects to be called on
a thread and have another thread waiting for the callback.

MozReview-Commit-ID: 5XXd5aBkljc
2016-01-19 16:20:37 -08:00
Carsten "Tomcat" Book
e3a57dfbae Merge mozilla-central to fx-team 2016-02-10 14:30:05 +01:00
Sebastian Kaspari
d3197b144b Bug 1244071 - Move reading of restrictions to dedicated cache class. r=mcomella
MozReview-Commit-ID: 7u40m0Wdusi
2016-02-01 22:14:16 +01:00
Sebastian Kaspari
715fbd4820 Bug 1245236 - (Part 2) DownloadContentService: Do not run on unsupported systems. r=rnewman
MozReview-Commit-ID: 7jEe76SEFpc
2016-02-09 13:54:37 +01:00
Sebastian Kaspari
904e3413d0 Bug 1245236 - (Part 1) Move isSupportedSystem() from GeckoApp to HardwareUtils. r=rnewman
MozReview-Commit-ID: 6p7UQZBSt0C
2016-02-09 13:53:45 +01:00
Varun Naganathan
047c72c007 Bug 1238796 - Changed message on tab close if Private Tab. r=margaret 2016-02-09 10:55:00 +01:00
Nick Alexander
19001498af Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella
DONTBUILD NPOTB

Using the real Android manifest tripped up Robolectric, so I've taken
the easy way out and added a dummy TestGeckoApplication; see comment
in the code.
2016-01-17 21:52:46 -08:00
Bogdan Postelnicu
dff7d5f10a Bug 1248908 - ToolbarDisplayLayout: Remove unnecessary null checks. r=sebastian
MozReview-Commit-ID: LBtVN8F0oO4
2016-02-18 14:31:16 +02:00
Nick Alexander
0376933f7c Bug 1247375 - Part 3: Use Gradle to build Fennec with --disable-compile-environment. r=glandium
MozReview-Commit-ID: 3oolQKHxkBs
2016-02-12 10:07:11 -08:00
Nick Alexander
0f0d885623 Bug 1247375 - Part 2: Add build system Gradle defines for Fennec. r=glandium
Enable building with Gradle using --with-gradle.  Configure the
location of Gradle with --with-gradle=/path/to/gradle.  For local
developers, this is always the in tree Gradle wrapper, which downloads
and installs the correct Gradle version automatically.  In automation,
this will be a version of Gradle fetched from tooltool.

Configure the location to use to download Gradle Maven dependencies
(including the Android-Gradle plugin) by setting
GRADLE_MAVEN_REPOSITORY in your mozconfig. For local developers, this
defaults to the jcenter repository.  In automation, this will be an
archived directory fetched from tooltool.

Android-specific Maven dependencies are shipped as "extras" with the
Android SDK, and should be found automatically by the Android-Gradle
plugin.

MozReview-Commit-ID: Hrkn88Vig5H
2016-02-10 19:29:27 -08:00
Nick Alexander
f0b13f4be4 Bug 1247375 - Part 1: Add TaskCluster job building Fennec with --disable-compile-environment. r=dustin
MozReview-Commit-ID: 4FDevhlYnUC
2016-02-02 18:09:44 -08:00
Sebastian Kaspari
47dc283066 Bug 1233799 - Enable DownloadContentService (and exclude fonts) in Nightly. r=rnewman
MozReview-Commit-ID: G7zDhHVt67C
2016-02-16 16:43:27 +00:00
Mike Hommey
ed1c39fba6 Bug 1246874 - Unify GRE_BUILDID and MOZ_APP_BUILDID at the build system level. r=mshal 2016-02-10 07:39:30 +09:00
Geoff Brown
08fac249ea Bug 1235689 - Disable robocop testAppMenuPathways for frequent failures; r=me 2016-02-09 15:24:34 -07:00
Sebastian Kaspari
a6af4aa824 Bug 1219078 - Delegate OMA downloads to external app (if available). r=mfinkle
This patch will prevent Firefox from downloading OMA download descriptors on
its own. Instead it will prompt to complete the action with an external app
if available. An error will be shown if no external app can handle the download.
2015-12-17 14:49:37 +01:00
Abhishek Potnis
c61a989102 Bug 1243930 - Removed redundant statement of |obj.icon| assignment in |_setListItems|. r=mcomella 2016-02-05 23:32:14 +05:30
Nigel Babu
2682409fe4 Backed out 10 changesets (bug 1234629, bug 1233882) for bustage on Android rc tests
Backed out changeset 9aa32d9a25df (bug 1234629)
Backed out changeset d73d36c9619b (bug 1234629)
Backed out changeset a7f63b3721cd (bug 1233882)
Backed out changeset c79f4a8c3e86 (bug 1234629)
Backed out changeset 400c030d3c01 (bug 1234629)
Backed out changeset 54a3d0851bc6 (bug 1234629)
Backed out changeset f80912ecfa87 (bug 1234629)
Backed out changeset 50bcadca2131 (bug 1234629)
Backed out changeset aaa420ed66d7 (bug 1234629)
Backed out changeset 7a62e97f07c2 (bug 1234629)
2016-02-05 15:42:28 +05:30
Nick Alexander
7042d638e5 Bug 1234629 - Follow-up: clear distributions from /data/data during test. r=bustage
On a CLOSED TREE

I don't understand why I didn't see this in local testing or try
builds, but I didn't.  Simple enough: we now load a distribution from
/data/data as a matter of course, which means that tests that install
such a distribution need to remove it when they are done.  This patch
does that.
2016-02-04 17:41:54 -08:00
Nick Alexander
2f4cc4cba4 Bug 1168175 - Follow-up: Guard against null contexts. r=bustage
On a CLOSED TREE.

So, apparently we race to have a non-null application context from the
target context.  No matter, we can use the target context directly.
2016-02-04 17:17:07 -08:00
Nick Alexander
779ea83d1f Bug 1234629 - Follow-up: Add forgotten documentation file. r=me
Documentation only: DONTBUILD NPOTB
2016-02-04 15:54:12 -08:00
Nick Alexander
bf5ea4d671 Bug 1233882 - Fold base Gradle project into app Gradle project. r=sebastian,mcomella
DONTBUILD NPOTB

Using the real Android manifest tripped up Robolectric, so I've taken
the easy way out and added a dummy TestGeckoApplication; see comment
in the code.
2016-01-17 21:52:46 -08:00
Mark Finkle
0b7adf0a42 Bug 1227662 - Fix code and add tests for fetching video mimetypes r=margaret 2016-02-04 18:19:59 -05:00
Nick Alexander
7048631bca Bug 1242213 - Part 3: Use android:packageName="org.mozilla.gecko" and --rename-manifest-package. r=mfinkle
ON A CLOSED TREE

I have manually verified that this results in a byte-identical
gecko.ap_.  This is because after the earlier patches there are no
definitions (or aliases) that are package-local (like .App or
.Webapp), which are the only things (other than the Android package
name) that get rewritten by --rename-manifest-package.
2016-01-24 22:00:30 -08:00
Nick Alexander
7c9eb55ac0 Bug 1242213 - Part 2: Fold App <activity-alias> into BrowserApp <activity>. r=mfinkle
Way back in Fennec 33 (Bug 929865, see
https://hg.mozilla.org/mozilla-central/rev/a4f39c9db1d9) we replaced
org.mozilla.gecko.App with org.mozilla.gecko.BrowserApp and introduced
the .App <activity-alias>.  Per the entry for android:name of
http://developer.android.com/guide/topics/manifest/activity-element.html,
.App translates to $ANDROID_PACKAGE_NAME.App.  We haven't referenced
an Activity qualified with a non-org.mozilla.gecko *class* name (for
example, from bookmark shortcuts) since well before Fennec 33, so this
probably never did what it was intended to do: we wanted to redirect
org.mozilla.gecko.App to org.mozilla.gecko.BrowserApp, but it instead
has been redirecting org.mozilla.fennec.App to
org.mozilla.gecko.BrowserApp.  I don't think we've been referring to
$ANDROID_PACKAGE_NAME.App since well before Fennec 29, if ever.

The <activity-alias> has been servicing essentially all
<intent-filter> invocations of Fennec by passing them directly to
org.mozilla.gecko.BrowserApp.

This pushes a long programme of simplification forward.  Fallout might
look like very old homescreen shortcuts failing to launch, but I'm
quite confident that won't actually happen.
2016-01-24 22:00:29 -08:00
Nick Alexander
2d1aa73a7f Bug 1242213 - Part 1: Remove old-style Webapp entry-point. r=mfinkle f=myk
This <activity> and <activity-alias> support old-style homescreen
shortcuts to old-style Webapps.  Such shortcuts must have been
produced at least 18 months ago, and pre-date the new-style synthetic
APK Webapps entirely.  New-style APK Webapps are slated to be removed
from the product entirely, and there's no reason to keep their even
less viable predecessor around.

Telemetry from http://mzl.la/23kXGV5 shows that there were no launches
of webapps (old-style or new-style) for Fennec 43 release.  Telemetry
from http://mzl.la/23kXFAs shows that there were 40.7k launches of
webapps (again, old-style or new-style) for Fennec 44 beta (of 39.0M
total -- for 0.1% total).  We cannot distinguish old-style from
new-style, but it is safe to assume it's a tiny proportion.

Users with such homescreen shortcuts will see a bogus "App isn't
installed" message and need to delete and re-create their shortcut in
some way.

The org.mozilla.gecko.Webapp class cannot be removed until new-style
APK Webapps are removed.
2016-01-24 22:00:29 -08:00
Andrzej Hunt
18ee77d9f8 Bug 1245516 - Don't shadow originHost, so we can process appOrigin correctly r=margaret 2016-02-03 15:27:35 -08:00
Nick Alexander
85450c9ba9 Bug 1234629 - Post: Add simple bouncer APK docs. r=me 2016-02-04 11:23:27 -08:00
Nick Alexander
c2377a3cbe Bug 1234629 - Post: Make bouncer APK Java package org.mozilla.gecko, like the main APK. r=me
This small change is a follow-up to Bug 1242213, which did the same
for the main package.  This is a nod to the future and Gradle, which
cleanly splits the internal Java package (org.mozilla.gecko) from the
external Android package (org.mozilla.fennec and friends).
2016-01-27 15:28:12 -08:00
Nick Alexander
5590b049e3 Bug 1234629 - Post: Add Gradle support for bouncer. r=me 2016-01-26 11:54:00 -08:00
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