Commit Graph

23243 Commits

Author SHA1 Message Date
Grigory Kruglov
6197cd033b Bug 1356386 - Support for FxA sign-in deep links r=nechen
Adds support for opening FxA deep links, a la firefox://fxa-signin

Whitelisted set of query parameters::
- signin - expected to be the "magic token"
- entrypoint - for internal tracking purposes
- utm_* - all query parameters with utm_ prefix are allowed

Deep links are opened as: about:accounts?signin=<token>&entrypoint=<entrypoint>&utm_one=<utm1>....

MozReview-Commit-ID: LfGi1ChPvUr

--HG--
extra : rebase_source : e469250590d6db83ff75b314c6c72d4970b8a449
2017-05-30 00:16:21 -04:00
Jan Henning
881ed98e8d Bug 1367851 - Use ComponentCallbacks to listen for low memory notifications. r=ahunt
At the moment, we forward these from GeckoActivity, which means that they won't work if no GeckoActivity-based activity is active (can happen within our settings for example).

As of API14, we can now register an app-wide ComponentCallbacks(2) class, allowing us to easily receive low memory notifications no matter which activity is currently alive.

MozReview-Commit-ID: 5GjSjsTKxAD

--HG--
extra : rebase_source : a598b55d01ab2c8cf3ae8a7d1f7392fab926faa5
2017-05-25 21:22:24 +02:00
Kilik Kuo
444875671e Bug 1350253 - Provide GeckoHlsDemuxerWrapper & corresponding generated JNI files as the glue for HLSDemuxer and GeckoHlsPlayer. r=jolin,jya
MozReview-Commit-ID: 62cnGQsmdNS

--HG--
extra : rebase_source : 4431d9e55f4ee38faeae50d03b46fbb57629fb8e
2017-05-25 20:48:03 +08:00
Dan Banner
ea09f270ab Bug 1368041 - Enable no-array-constructor across mozilla-central r=standard8
MozReview-Commit-ID: EXJNufdKKhJ

--HG--
extra : rebase_source : 66d17c7981c4b0987c482ce092b25990b42c07fb
2017-05-27 15:17:29 +01:00
Jan Henning
50c15957c0 Bug 1357778 - Exclude non browsing tabs in the TabStripView, too. r=walkingice
We're already doing this in the tab strip, but this presumably didn't cover the initialisation via TabStripView.refreshTabs().

MozReview-Commit-ID: Abdk1mD5HyZ

--HG--
extra : rebase_source : 0d94ae86011ac100f57dad1e03f9496913b8cc26
2017-05-26 20:15:27 +02:00
Xidorn Quan
9dc47921e1 Bug 1368418 part 1 - Remove nsISemanticUnitScanner. r=emk
Code search indicates that this is not used internally, and the only
addon uses this is Breadcrumbs, which hasn't been updated since 2009,
thus it is already not compatible with current Firefox.

MozReview-Commit-ID: 1lUs7ceaaE1

--HG--
extra : rebase_source : 87060c33291ba415c6c70767c132c4a5b74d29fb
2017-05-29 16:05:29 +10:00
Nevin Chen
0f2aff9431 Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 6 things. They are related so I put them in the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.
6. Fix proguard. Only keep necceary files.

MozReview-Commit-ID: APEmr1JXBLH

--HG--
extra : rebase_source : 35b54c11004905c950c1ace84507554a2e1b4f39
2017-05-17 01:25:45 +08:00
Nevin Chen
41b293dfc2 Bug 1361664 - Part1. Udate MMA API, make init() accept activity. r=maliu
MozReview-Commit-ID: AcfoeCPV8SV

--HG--
extra : rebase_source : 6441ed54f9e19b6c384281084699e5247ec5d3f6
2017-05-24 11:23:10 +08:00
Nick Alexander
d59f61ebff Bug 1365089 - Follow-up: Don't require Leanplum SDK secrets for repacks. r=nthomas
The l10n builders don't have the access to secrets that the regular
builders do, so don't expect Leanplum SDK secrets in l10n repacks.

Since MOZ_ANDROID_MMA requires a Leanplum SDK token file, we'd also
need to opt-out of MOZ_ANDROID_MMA in this case.  I interpret this to
show that the update channel is not the right mechanism with which to
enable the Nightly-only MOZ_ANDROID_MMA feature; it's better to just
opt-in for Nightly builds.  This patch does that.

MozReview-Commit-ID: 81WTFjsT7br

--HG--
extra : rebase_source : 5338fb33c13733335ed4f9e58cc3ea969d6e705a
2017-05-29 09:48:32 -07:00
Nick Alexander
b6fef5fc95 Bug 1365089 - Add MOZ_ANDROID_MMA and --with-leanplum-sdk-keyfile to configure. r=chmanchester
This is the equivalent of MOZ_INSTALL_TRACKING, but for MMA (Mobile
Marketing Automation) using the Leanplum SDK.

To test this locally, add lines like:

export MOZ_ANDROID_MMA=1
ac_add_options --with-adjust-sdk-keyfile=/path/to/adjust-sdk-developer.token

MOZ_ANDROID_MMA depends on MOZ_NATIVE_DEVICES and MOZ_ANDROID_GCM,
since Leanplum requires Google Play Services library that those flags
are a proxy for and enable, respectiviely.

We want to enable MOZ_ANDROID_MMA in Nightly, but only for
MOZILLA_OFFICIAL builds.  Since MOZILLA_OFFICIAL is still defined in
old-configure.in, we can't interrogate it in
mobile/android/moz.configure, and therefore we enable using the
automation mozconfigs.

MozReview-Commit-ID: 1tiToeyH5Hx

--HG--
extra : rebase_source : f85706c5a0911c7d2edc109d8c47ecc1c1bc6ffc
2017-05-26 12:31:20 -07:00
Sebastian Hengst
5941f01963 merge mozilla-central to autoland. r=merge a=merge 2017-05-28 18:46:28 +02:00
Sebastian Hengst
f98a774379 Backed out changeset 645836bfad25 (bug 1361664) because bug 1365089 got backed out and this depends on it. r=backout 2017-05-28 18:45:28 +02:00
Sebastian Hengst
a12aaca96d Backed out changeset 49714b590d48 (bug 1361664) 2017-05-28 18:44:50 +02:00
Sebastian Hengst
66d9eb3103 Backed out changeset 9c7688e54e92 (bug 1365089) for breaking Android L10n nightlies. r=backout a=backout
MozReview-Commit-ID: FxH7nBskSNj
2017-05-28 16:53:10 +02:00
Kilik Kuo
c6bf611b7a Bug 1350241 -Part2: Create a customized player based on ExoPlayer and inject customzied {Audio,Video}Renderers as the source of HLS demuxed samples. r=jolin,jya
MozReview-Commit-ID: CAyaxKUoJzm

--HG--
extra : rebase_source : fd8d3c019236a1ffe3172fbf1d8855b8aadf8de6
2017-05-25 20:48:43 +08:00
Kilik Kuo
7f124232fa Bug 1350241 -Part1: Provide data structure of {Audio,Video}Info and demuxed sample for the use of HLS on Fennec. r=jolin,jya
MozReview-Commit-ID: 11triLS84Gq

--HG--
extra : rebase_source : a1c0d04a476560156ddf4919ab4fc277833b4db1
2017-05-25 12:46:06 +08:00
Nevin Chen
3558f2df91 Bug 1358117 - Add pref to turn on/off leanplum. r=maliu,sebastian
MozReview-Commit-ID: 8LHvMPSxAdl

--HG--
extra : rebase_source : fb968097e7722ebcfb1245c366f9224c5a57857f
2017-05-18 19:27:13 +08:00
Sebastian Hengst
0d62851e61 Backed out changeset 08b93bba921c (bug 1358117) for Android Nightly bustage. r=backout a=backout
MozReview-Commit-ID: IgiZGwOZ3tD
2017-05-27 14:01:55 +02:00
Sebastian Hengst
97eca2b15c Backed out changeset 44e144a782e1 (bug 1361664) for Android Nightly bustage. r=backout a=backout
MozReview-Commit-ID: L3hDVLxBkoJ
2017-05-27 14:01:07 +02:00
Sebastian Hengst
bebf8c82cb Backed out changeset d289ee2c794d (bug 1361664)
MozReview-Commit-ID: gNRtEiyg7W
2017-05-27 14:00:27 +02:00
Nevin Chen
03067cd900 Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 6 things. They are related so I put them in the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.
6. Fix proguard. Only keep necceary files.

MozReview-Commit-ID: APEmr1JXBLH

--HG--
extra : rebase_source : eeea2ba90a495bdcb628644ef388f4dab918963b
2017-05-17 01:25:45 +08:00
Nevin Chen
58ddc51361 Bug 1361664 - Part1. Udate MMA API, make init() accept activity. r=maliu
MozReview-Commit-ID: AcfoeCPV8SV

--HG--
extra : rebase_source : b3e80c4d9066bd96b3775258e2a73af8acea5efe
2017-05-24 11:23:10 +08:00
Nick Alexander
0a0a08ec4c Bug 1365089 - Add MOZ_ANDROID_MMA and --with-leanplum-sdk-keyfile to configure. r=chmanchester
This is the equivalent of MOZ_INSTALL_TRACKING, but for MMA (Mobile
Marketing Automation) using the Leanplum SDK.

To test this locally, add lines like:

export MOZ_ANDROID_MMA=1
ac_add_options --with-adjust-sdk-keyfile=/path/to/adjust-sdk-developer.token

MOZ_ANDROID_MMA depends on MOZ_NATIVE_DEVICES and MOZ_ANDROID_GCM,
since Leanplum requires Google Play Services library that those flags
are a proxy for and enable, respectiviely.

We want to enable MOZ_ANDROID_MMA in Nightly, but only for
MOZILLA_OFFICIAL builds.  Since MOZILLA_OFFICIAL is still defined in
old-configure.in, we can't interrogate it in
mobile/android/moz.configure, and therefore we enable using the
automation mozconfigs.

MozReview-Commit-ID: 1tiToeyH5Hx

--HG--
extra : rebase_source : 5390cf8c5c2eb7ffe675757b372debbb639bc900
2017-05-26 12:31:20 -07:00
Nick Alexander
716a57ca26 Bug 1363526 - Revert .App rewriting to restore Android Studio launch for developers. r=maliu
Per https://bugzilla.mozilla.org/show_bug.cgi?id=1320310#c14, the fix
for Bug 1320310 interferes with the Android Studio launch experience.
This reverts that change for non-official audiences, i.e., the
local{Old} configurations used by developers.

MozReview-Commit-ID: 2Mc5MUj8Utl

--HG--
extra : rebase_source : 62d113e85453bb695b59e780653a34cab199872f
2017-05-09 14:06:18 -07:00
Chris Pearce
d7d3abb576 Bug 1367950 - Only throttle download of src=url video if the download is 'fast' on desktop. r=jwwang
Our canplaythrough logic is opaque to the users, so I expect that our recent
change to throttle when we hit the readahead limit would be confusing to users;
those on a slow connection would want their media to prebuffer, and not expect
the download to stop part way through.  They would think that Firefox had
stalled at an arbitrary point for some unknown reason, i.e., they'd think
Firefox was broken. So I think we're better to instead only throttle if the
network is good enough that the user probably doesn't worry about the download
not keeping up with playback.

We should restore the previous behaviour on mobile of throttling when the
download reached the readaheadd limit regardless of canplaythrough or network
speed, as the calculus is different on mobile; the user may also be concerned
about battery life, or hitting their data cap. And often the faster the
cellular network is, the more expensive data on it is.

So this patch changes us to throttle when we reach the readahead limit only if
the network is fast, where fast is defined as being able to stream at twice the
rate estimated to be required to playback without stalling.

It also adds a pref to revert to the old behaviour of not considering the
network speed, which we enable on mobile to restore it to its previous
behaviour.

MozReview-Commit-ID: KLIGaQZV6dX

--HG--
extra : rebase_source : c2e0c6be3158fa661be49d1267d976af43aff6d7
2017-05-26 13:55:48 +12:00
Nevin Chen
1fd979b26c Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 5 things. They are related so I put them is the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.

MozReview-Commit-ID: APEmr1JXBLH

--HG--
extra : rebase_source : 07913749581b2426f0e5ba3aeb8364b85dbd1b72
2017-05-17 01:25:45 +08:00
Nevin Chen
9e40576357 Bug 1361664 - Part1. Udate MMA API, make init() accept activity. r=maliu
MozReview-Commit-ID: AcfoeCPV8SV

--HG--
extra : rebase_source : fc000e03cfed84129d30734493539b6f3784ad68
2017-05-24 11:23:10 +08:00
Ryan VanderMeulen
25cb66b774 Merge m-c to autoland on a CLOSED TREE. a=merge 2017-05-26 15:45:41 -04:00
Ryan VanderMeulen
75fa1fd85f Merge inbound to m-c. a=merge 2017-05-26 15:43:59 -04:00
Nevin Chen
054b372b44 Bug 1358117 - Add pref to turn on/off leanplum. r=maliu,sebastian
MozReview-Commit-ID: 8LHvMPSxAdl

--HG--
extra : rebase_source : fb968097e7722ebcfb1245c366f9224c5a57857f
2017-05-18 19:27:13 +08:00
Sebastian Hengst
dc3b84b5f1 Backed out changeset c77265a29cc7 (bug 1358117) for mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java:25: error: cannot find symbol, e.g. in findbugs job. r=backout on a CLOSED TREE 2017-05-26 20:24:18 +02:00
Nevin Chen
0b488bfce3 Bug 1358117 - Add pref to turn on/off leanplum. r=maliu,sebastian
MozReview-Commit-ID: 8LHvMPSxAdl

--HG--
extra : rebase_source : c2cf440acceb5f8bbc34546c51e58444adf4b846
2017-05-18 19:27:13 +08:00
Delphine Lebédel
aef4b57bfa Bug 1365431 - [el] Search engine setup for Firefox Mobile for Greek, r=flod
MozReview-Commit-ID: AQmKIjwzBef

--HG--
extra : rebase_source : 08b04747fa95885522d82a77080d468ec4a23b17
2017-05-26 09:28:01 -07:00
Eden Chuang
68cf4559f8 Bug 1345361 - PaymentRequest constructor implementation. r=baku 2017-05-26 01:50:32 +08:00
Ryan VanderMeulen
a71f4a2308 Merge m-c to inbound. a=merge 2017-05-25 21:31:19 -04:00
Ryan VanderMeulen
e38fed0cd1 Merge inbound to m-c. a=merge 2017-05-25 21:30:20 -04:00
Jim Chen
46ed8bc7f8 Bug 1367234 - 2. Hide action bar on full screen in geckoview_example; r=droeh
Hide the action bar on full screen in geckoview_example so the page
content covers the entire screen.

MozReview-Commit-ID: IbLj7gei7ct
2017-05-25 18:35:19 -04:00
Jim Chen
a96d808466 Bug 1367234 - 1. Support fullscreen for e10s GeckoView; r=droeh
Add event listeners and implement basic messages between chrome and
content so let e10s content in GeckoView request/exit fullscreen. Once
we're on the parent side, we still go through the normal fullscreen flow
so there is no platform or Java change involved.

MozReview-Commit-ID: G1tBIOoFqkB
2017-05-25 18:35:19 -04:00
Jim Chen
c4f7fca79b Bug 1366716 - Encode crash submission URI correctly; r=snorp
Correctly encode the crash submission URI so it's valid.

MozReview-Commit-ID: KFqloHXDCSd
2017-05-25 18:35:19 -04:00
Jim Chen
97df49f5c2 Bug 1365711 - Set GeckoInterface from GeckoApplication; r=snorp
Now that GeckoInterface only contains openUriExternal and
getHandlersFor* methods, we can set GeckoInterface from GeckoApplication
only, and not GeckoApp or GeckoView. This also lets us get rid of
BaseGeckoInterface.

MozReview-Commit-ID: KQloIO6ITlK
2017-05-25 18:33:30 -04:00
Jim Chen
b63492861c Bug 1363885 - 1. Remove GeckoAppShell.AppStateListener; r=droeh
Remove GeckoAppShell.AppStateListener and its associated methods in
GeckoInterface (orientation listener and app state listener methods).

MozReview-Commit-ID: 4BCrTysSEHZ
2017-05-25 18:33:30 -04:00
Ryan VanderMeulen
df9dd3967c Backed out changeset 437d6df1859c (bug 1345361) for ESLint failures. 2017-05-25 18:05:15 -04:00
Eden Chuang
80717194b1 Bug 1345361 - PaymentRequest constructor implementation. r=baku 2017-05-26 01:50:32 +08:00
Jim Chen
f3b0a31d44 Bug 1366404 - Add AArch64 Nightly build; r=nalexander r=dustin
Add configurations for building and uploading AArch64 Nightly builds, in
tier 1 and without artifact support for now.

As for not denoting AArch64 builds as "api-21", I don't really think we
will split AArch64 the way we split ARMv7 before.  Originally, we split
into API 9 and API 11+ because of lots of "constrained" devices that
were stuck with API 9. We made an API 9 APK in order to lower our
footprint on those devices. That probably will not be a problem for
AArch64, because devices with API 21+ and AArch64 support are usually
more than capable for running Fennec. Secondly, it was a big change for
Android going from API 9 to API 11+, so we saved quite a bit of
code/resources when we stripped out API 11+.  I don't see such drastic
changes going from API 21 to upcoming versions, so even if we did split,
I don't think it'll get us much benefit.

MozReview-Commit-ID: 7N7Slv1pPgb
2017-05-25 16:53:33 -04:00
Sebastian Hengst
1e43f4ab4d Backed out changeset 87e59d65e1b2 (bug 1367201) for crashes in Android's robocop tests, e.g. testANRReporter. r=backout 2017-05-25 22:57:18 +02:00
Sebastian Hengst
5f1b61f2b5 Backed out changeset fba7b035a4f9 (bug 1358117) for bustage at mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java:25: symbol not found. r=backout 2017-05-26 13:42:06 +02:00
Sebastian Hengst
e3a6904ac7 Backed out changeset f54fb8956671 (bug 1361664) so bug 1358117 can be backed out. r=backout 2017-05-26 13:41:23 +02:00
Sebastian Hengst
0c334f17dd Backed out changeset 59dc8710d768 (bug 1361664) 2017-05-26 13:40:51 +02:00
Nevin Chen
14a09a7b1f Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 5 things. They are related so I put them is the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.

MozReview-Commit-ID: APEmr1JXBLH

--HG--
extra : rebase_source : 59c360244bb41467763e3fa11305c00893b7198d
2017-05-17 01:25:45 +08:00
Nevin Chen
91af5e978d Bug 1361664 - Part1. Udate MMA API, make init() accept activity. r=maliu
MozReview-Commit-ID: AcfoeCPV8SV

--HG--
extra : rebase_source : 05d3ed2665e7ad12870a0a9aa129dabeca34c995
2017-05-24 11:23:10 +08:00