Граф коммитов

25446 Коммитов

Автор SHA1 Сообщение Дата
Jim Chen 29cb580a50 Bug 1431201 - Clear native queue when disposing window; r=snorp
Dispose the native call queue when disposing a window object, so we
don't end up with stale calls in the queue that can cause crashes.

MozReview-Commit-ID: J1HNOXKAX6E

--HG--
extra : rebase_source : 9a3ec940c19513d29c692d4e550fa3fd046d73f9
2018-01-24 10:39:49 -05:00
Narcis Beleuzu 9279994eae Merge inbound to mozilla-central. a=merge 2018-01-24 23:56:14 +02:00
Brindusan Cristian 9e0ffdd8cb Backed out 7 changesets (bug 1419581) as requested by nalexander a=backout
Backed out changeset 7f41dd3bbc2d (bug 1419581)
Backed out changeset d4d42899e5cd (bug 1419581)
Backed out changeset 78828bf781d7 (bug 1419581)
Backed out changeset 5224db0c36aa (bug 1419581)
Backed out changeset 072108d16590 (bug 1419581)
Backed out changeset f8b3e95f18e4 (bug 1419581)
Backed out changeset 5f7645a19bf1 (bug 1419581)
2018-01-24 22:28:19 +02:00
Dylan Roeh f3710af757 Bug 1427771 - Fix broken exitFullScreen() in GeckoSession and call it in onBackPressed in custom tabs and PWAs. r=snorp 2018-01-23 16:18:15 -06:00
Nick Alexander 5fbb927713 Bug 1419581 - Part 6: Add Android build configuration --without-google-play-services. r=dustin
MozReview-Commit-ID: 526BCiQwlm6

--HG--
rename : mobile/android/config/mozconfigs/android-api-16/nightly-artifact => mobile/android/config/mozconfigs/android-api-16/nightly-without-google-play-services
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_without_google_play_services.py
extra : rebase_source : 3b15d8f9fa95769caa06be9aad145becd9729694
extra : intermediate-source : 4ead5bb6937c1396d41a859d65184a60f28f6e93
extra : source : bd1e3857b5bac3dc710521a5eb7377a1168b56ac
2018-01-04 15:45:56 -08:00
Nick Alexander 847818a3e1 Bug 1419581 - Part 5: Add --without-google-play-services. r=chmanchester
Historically, we used MOZ_NATIVE_DEVICES to proxy for Google Play
Services.  (MOZ_NATIVE_DEVICES was the first GPS-consuming feature in
Fennec.)  With Python moz.configure, we can easily add the real
top-level flag that distributions like F-Droid actually want, which is
to build without (non-free) Google Play Services entirely.

MozReview-Commit-ID: 7YJKw3G1lQA

--HG--
extra : rebase_source : f599de01c63b873a95252d6b01128a6f069ff105
extra : intermediate-source : 060290b66b370137cfd3dbbac7c442ef107aaa68
extra : source : be888fa125dc1948fc073ed69aa8116f47e22877
2018-01-04 15:37:15 -08:00
Nick Alexander b43c5179f1 Bug 1419581 - Part 4: Allow setting MOZ_ANDROID_GCM in mozconfig. r=chmanchester
This also verifies that we have Google Play Services (via
MOZ_NATIVE_DEVICES=1) if we ask to build with GCM.  This was just an
oversight earlier.

MozReview-Commit-ID: BvJi7Sfo4pu

--HG--
extra : rebase_source : 77470c2043598175c427a137b54f56263f6dc499
extra : intermediate-source : df53850e90878d703a2bd867dfbc13295aec998d
extra : source : 44bcb609e721598135a19bf41ba7ff94f3051553
2017-11-22 09:48:02 -08:00
Nick Alexander d9a68adc61 Bug 1419581 - Part 2: Guard media Fennec JNI primitives with MOZ_NATIVE_DEVICES. r=jchen
MozReview-Commit-ID: 3NWZ6BL5Tlr

--HG--
extra : rebase_source : 73927253fe9f8a70c2546eaf884631e456ce8b02
extra : intermediate-source : c21fcbad5a29b5259d4be71b6f2ed466b514eacb
extra : source : 2ea82ff4a757a0aeb7bdd8cff611d5b92dec14eb
2017-12-06 20:28:04 -08:00
Tad ac439ae1ba Bug 1419581 - Part 1: Simplify MMA GCM sender IDs logic. r=nechen
Right now, the MMA glue is built into constants.jar.  constants.jar is
the home of preprocessed Java code; it's built very early in the build
process and intended to be a tiny kernel of shared definitions.  The
fact that the MMA glue has to live there is just a sad consequence of
the non-Gradle build system, which makes dependency injection
difficult.  Unfortunately, another consequence is that it's not
possible to move reference org.mozilla.gecko.{gcm,push} in the MMA
glue, because those packages are built after constants.jar.

Instead, this patch lifts some of the logic into AppConstants, which
is part of constants.jar.  We had grown a twisty maze of indirection
around the GCM sender IDs and it just wasn't necessary; this just
lifts the static pieces up a level and removes a bunch of interface
indirection.

What surprises me is that asking Google's InstanceId.getToken for a
GCM token with a "comma,separated,list" of GCM sender IDs works -- and
indeed, has worked since we added the second MMA sender ID.  I didn't
expect that and can't explain it, but this doesn't change that logic
and local testing (both of the existing APKs, and APKs with this
modification) looks good.


MozReview-Commit-ID: 3hObfAwNlPH
***
a0c07e53 o draft Bug 1419581 - Part 1: Move MMA setGcmSenderID from MmaDelegate to MmaLeanplumImp. r=nechen

MozReview-Commit-ID: A4hrk6pVqGW

--HG--
extra : rebase_source : 9de77b6278bae76df3597bc2580bcedbf6d33075
extra : intermediate-source : c6e6fe49ecd2dd422878d80f57f1c89bf69eebff
extra : source : 8f1655752d43af33356d497d559888a967bbf6a0
2018-01-12 15:03:37 -08:00
Nick Alexander 712d05c0af Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : b1b5a191f6022f817ffefe4111041a9460841060
extra : intermediate-source : ef692850802df9bf97bf82bfa3faadb7ff018130
extra : source : 65195aae48d88edc3c23f88083cf77251d9556fe
2018-01-04 14:49:58 -08:00
Jan Henning 1664a019f4 Bug 1389829 - Part 4 - Add simple Robocop test for View Page Source. r=nechen
MozReview-Commit-ID: DFC17YSSinx

--HG--
extra : rebase_source : fb77bb098e086ee9aa99d5bab50e8cbc4345f332
2018-01-13 21:10:45 +01:00
Jan Henning 80158f4f3a Bug 1389829 - Part 3 - Handle "View Page Source" on the JS side. r=esawin
MozReview-Commit-ID: AOmTcNQ7qlj

--HG--
extra : rebase_source : 24dcc129fa666980cc360afa2acd761768133171
2017-08-13 18:28:50 +02:00
Jan Henning 1f2597dca1 Bug 1389829 - Part 1 - Add "View Page Source" to the Page menu in the UI. r=nechen
The Page menu is disabled when no tab is open, so not doing a null-check on the
currently selected tab in the menu click handler is safe.

MozReview-Commit-ID: CYKHJ5N1q8I

--HG--
extra : rebase_source : 3ec7b1a9708a905785850feb44b48723c24f1363
2017-08-13 16:15:26 +02:00
Gurzau Raul 6675c62a6e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-23 02:24:22 +02:00
Gurzau Raul 9801931bda Merge inbound to mozilla-central. a=merge 2018-01-23 02:21:47 +02:00
Dão Gottwald ded13b5888 Bug 1430647 - Remove remaining uses of -moz-border-*-colors from android themes. r=rnewman,snorp
MozReview-Commit-ID: eKGucTqWei
2018-01-15 20:36:31 +01:00
Grigory Kruglov 27652f947c Bug 1431456 - Bump url-matching regex patterns to their Android O counterparts r=nalexander
MozReview-Commit-ID: DZ1REabFyyo

--HG--
extra : rebase_source : eb3b169a1ee471abb676737a0b25ea01f3460b07
2018-01-22 16:57:57 -05:00
Grigory Kruglov 0298f7a4ed Bug 1431456 - Pre: junit4-ify weburlfinder tests, add a few extra test cases r=nalexander
MozReview-Commit-ID: 6y4zlcvBolW

--HG--
extra : rebase_source : c391076899cb2f78713bca6369ab20392e84fe80
2018-01-22 16:56:45 -05:00
Jan Henning 9358e0df96 Bug 1414928 - Part 2 - Updating the progress bar once is enough. r=nechen
We still need to explicitly set the progress when loading stops, so the progress
bar animates to completion before updateProgressState hides it, but in all other
cases calling just updateProgressState is enough to set the new progress value.

MozReview-Commit-ID: 9mQr5s83i9F

--HG--
extra : rebase_source : 7ce8751a97ea4220df7f3502c268507cd53a00dc
2017-11-06 20:36:10 +01:00
Jan Henning 3e8680bacd Bug 1414928 - Part 1 - Rename updateProgressvisibility to make its function clearer. r=nechen
MozReview-Commit-ID: 8mLUsJ0tfS3

--HG--
extra : rebase_source : e66859475406e5c1d6c64c5e0aadd0f7b63a0c51
2018-01-13 13:43:15 +01:00
Jan Henning c64da558ae Bug 1427260 - Skip deleted items when getting Activity Stream highlights. r=Grisha
All they do is clutter up the log with "HighlightsRanking: Skipping invalid
highlight item." entries, so we should just skip them in the query already.

MozReview-Commit-ID: 1ra7LcYxp4m

--HG--
extra : rebase_source : 5f150e9ed5fd293f27f110cd2973525d5b82e86d
2018-01-05 20:43:06 +01:00
Mike Conley b511744f61 Bug 888784 - Modify testFormHistory Fennec test to wait until FormHistory database is created. r=nalexander
MozReview-Commit-ID: Joysv4Qu9Li

--HG--
extra : rebase_source : b270fdc34fc4e0a37b3f946a5bec776819ad8e28
2018-01-10 17:17:31 -05:00
Mike Conley bda00666a9 Bug 888784 - Make sure Fennec's Sanitizer.jsm resolves a clearing Promise only after a data clearing attempt has finished. r=Grisha
MozReview-Commit-ID: 62JjwgozS5b

--HG--
extra : rebase_source : 6b96acf1b34168eaba681a0f400a487eba061df3
2018-01-09 15:48:33 -05:00
Narcis Beleuzu a9239fc56d Backed out 14 changesets (bug 888784) for ESlint failure on /FormHistory.jsm. on a CLOSED TREE
Backed out changeset 8c3fc3cb35b7 (bug 888784)
Backed out changeset 4f1b033d3cc0 (bug 888784)
Backed out changeset 4f7816c12e0b (bug 888784)
Backed out changeset 456d0f3e4e34 (bug 888784)
Backed out changeset 5044e2244d17 (bug 888784)
Backed out changeset 8a44ddb5f2c2 (bug 888784)
Backed out changeset 9e70d1f4489e (bug 888784)
Backed out changeset a799d6cd42e4 (bug 888784)
Backed out changeset f33b9cc53b30 (bug 888784)
Backed out changeset dc3b1653e70c (bug 888784)
Backed out changeset 53cb7d7c71da (bug 888784)
Backed out changeset 5f88a6ef1aac (bug 888784)
Backed out changeset 291e111da6ef (bug 888784)
Backed out changeset b2682e434b20 (bug 888784)
2018-01-22 18:13:06 +02:00
Mike Conley c2bcf0018f Bug 888784 - Modify testFormHistory Fennec test to wait until FormHistory database is created. r=nalexander
MozReview-Commit-ID: Joysv4Qu9Li

--HG--
extra : rebase_source : 5a6625b2a293cda44d40b81ccae15094eb6d0e21
2018-01-10 17:17:31 -05:00
Mike Conley c3aa7b7896 Bug 888784 - Make sure Fennec's Sanitizer.jsm resolves a clearing Promise only after a data clearing attempt has finished. r=Grisha
MozReview-Commit-ID: 62JjwgozS5b

--HG--
extra : rebase_source : c0b544898754fb8d3b0bcaa64bbb5dea4310359d
2018-01-09 15:48:33 -05:00
Geoff Brown 884a28894a Bug 1394170 - Try to make testSettingsPages more reliable; r=me, a=test-only
When checking settings categories, if category not found, scroll down; if still
not found, scroll up. This allows for the (apparently rare) case where settings
are initially rendered scrolled down, obscuring the top choice(s).
2018-01-20 07:41:53 -07:00
Shane Caraveo d78ea2931e Bug 1423725 add event, query and details for hidden status, r=Gijs,rpl
MozReview-Commit-ID: AMcmbh4m8lK

--HG--
extra : rebase_source : 6e8c246cbe69e4d298de031361e10276ddbf7551
2018-01-18 16:37:11 -07:00
Ciure Andrei 89bed92d39 Backed out changeset df5c47596915 (bug 1424252) for causing bug 1429757 a=backout 2018-01-18 23:57:56 +02:00
Geoff Brown 5fcd0c98f8 Bug 1395086 - Increase max wait time to avoid intermittent failure in testAudioFocus; r=alwu 2018-01-18 11:25:45 -07:00
Jim Chen 99b85681c5 Bug 1426244 - Follow-up to use notimestamp; r=me
Add a notimestamp option to not add timestamps to javadoc.
2018-01-18 12:12:31 -05:00
Tiberius Oros 0f3b1d6ace Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-18 00:28:57 +02:00
Tiberius Oros 25b2d642db Merge autoland to mozilla-central. a=merge 2018-01-17 23:46:17 +02:00
Ryan VanderMeulen ac18fd5152 Backed out 20 changesets (bug 1411654) for incorrect android:debuggable. r=nalexander, a=RyanVM
Backed out changeset cfad693be918 (bug 1411654)
Backed out changeset 55776829a744 (bug 1411654)
Backed out changeset c5bf85d56fed (bug 1411654)
Backed out changeset c270f97bb0da (bug 1411654)
Backed out changeset fde9bf9c14c3 (bug 1411654)
Backed out changeset 01836fd98c63 (bug 1411654)
Backed out changeset 730a70767743 (bug 1411654)
Backed out changeset 690e265c684c (bug 1411654)
Backed out changeset f918500d9cf5 (bug 1411654)
Backed out changeset cec2b8828cc8 (bug 1411654)
Backed out changeset 76085ddd5ac7 (bug 1411654)
Backed out changeset 2b37201606f5 (bug 1411654)
Backed out changeset d0d513d1c379 (bug 1411654)
Backed out changeset e7b0cc801cf1 (bug 1411654)
Backed out changeset 901b304603d9 (bug 1411654)
Backed out changeset 373c9a71d945 (bug 1411654)
Backed out changeset 3dc3beab95f8 (bug 1411654)
Backed out changeset 22a861db1573 (bug 1411654)
Backed out changeset 0850b319efd4 (bug 1411654)
Backed out changeset d276d3deba05 (bug 1411654)

--HG--
rename : mobile/android/app/src/main/res/values-v17/themes.xml => mobile/android/base/resources/values-v17/themes.xml
2018-01-17 15:55:38 -05:00
Ryan VanderMeulen f40d9dac13 Backed out changeset f5c4825b6ae8 (bug 1430417) for incorrect android:debuggable. r=nalexander 2018-01-17 15:54:42 -05:00
Ryan VanderMeulen 8ac2db0699 Backed out 7 changesets (bug 1419581) for incorrect android:debuggable. r=nalexander
Backed out changeset bd1e3857b5ba (bug 1419581)
Backed out changeset be888fa125dc (bug 1419581)
Backed out changeset 44bcb609e721 (bug 1419581)
Backed out changeset a7d75667c58b (bug 1419581)
Backed out changeset 2ea82ff4a757 (bug 1419581)
Backed out changeset 8f1655752d43 (bug 1419581)
Backed out changeset 65195aae48d8 (bug 1419581)
2018-01-17 15:54:22 -05:00
Noemi Erli 1c9bbfbebc Backed out 2 changesets (bug 1403519) for bustage on \python\mozbuild\mozbuild\test\frontend\test_reader.py on a CLOSED TREE
Backed out changeset f53f8adcd578 (bug 1403519)
Backed out changeset 5b293bcd3fc7 (bug 1403519)
2018-01-17 07:23:40 +02:00
Dustin J. Mitchell 26d48b3202 Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI

--HG--
extra : rebase_source : 8dd971e5c9b0eb5f47895664a4ea49442f303ecb
extra : source : 0881de9b2b5e36ec37cc866f1d4af109da57a919
2017-10-02 18:22:56 +00:00
Dustin J. Mitchell 00f03c413e Bug 1403519 - only build docs when necessary r=gps
This marks **/docs/** as exclusively docs, and code that is autodoc'd as
inclusively docs.

That means that a change that purely modifies documentation files will *only*
run `docs` tasks, while a change that modifies autodoc'd source code will
*additionaly* run `docs` tasks.  The tasks do not run by default.

MozReview-Commit-ID: G9tOK0AwtrI

--HG--
extra : rebase_source : 8dd971e5c9b0eb5f47895664a4ea49442f303ecb
extra : source : 0881de9b2b5e36ec37cc866f1d4af109da57a919
2017-10-02 18:22:56 +00:00
Nick Alexander 31f8c86b25 Bug 1419581 - Part 6: Add Android build configuration --without-google-play-services. r=dustin
MozReview-Commit-ID: 526BCiQwlm6

--HG--
rename : mobile/android/config/mozconfigs/android-api-16/nightly-artifact => mobile/android/config/mozconfigs/android-api-16/nightly-without-google-play-services
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_without_google_play_services.py
extra : rebase_source : b33d56c9c80a39129de525661dec459b7a40f09b
2018-01-04 15:45:56 -08:00
Nick Alexander 8aeea642d5 Bug 1419581 - Part 5: Add --without-google-play-services. r=chmanchester
Historically, we used MOZ_NATIVE_DEVICES to proxy for Google Play
Services.  (MOZ_NATIVE_DEVICES was the first GPS-consuming feature in
Fennec.)  With Python moz.configure, we can easily add the real
top-level flag that distributions like F-Droid actually want, which is
to build without (non-free) Google Play Services entirely.

MozReview-Commit-ID: 7YJKw3G1lQA

--HG--
extra : rebase_source : 04a8e4b89153a2a11e8a793e893a2e626cbc877a
2018-01-04 15:37:15 -08:00
Nick Alexander 589fd13270 Bug 1419581 - Part 4: Allow setting MOZ_ANDROID_GCM in mozconfig. r=chmanchester
This also verifies that we have Google Play Services (via
MOZ_NATIVE_DEVICES=1) if we ask to build with GCM.  This was just an
oversight earlier.

MozReview-Commit-ID: BvJi7Sfo4pu

--HG--
extra : rebase_source : 009c13d53663553ded4d3645c926f12ecee9da0b
2017-11-22 09:48:02 -08:00
Nick Alexander e7b25fe604 Bug 1419581 - Part 2: Guard media Fennec JNI primitives with MOZ_NATIVE_DEVICES. r=jchen
MozReview-Commit-ID: 3NWZ6BL5Tlr

--HG--
extra : rebase_source : 1cb20642addc0fde9e535bd3c0fc928bcf314109
2017-12-06 20:28:04 -08:00
Tad 99aa60a088 Bug 1419581 - Part 1: Simplify MMA GCM sender IDs logic. r=nechen
Right now, the MMA glue is built into constants.jar.  constants.jar is
the home of preprocessed Java code; it's built very early in the build
process and intended to be a tiny kernel of shared definitions.  The
fact that the MMA glue has to live there is just a sad consequence of
the non-Gradle build system, which makes dependency injection
difficult.  Unfortunately, another consequence is that it's not
possible to move reference org.mozilla.gecko.{gcm,push} in the MMA
glue, because those packages are built after constants.jar.

Instead, this patch lifts some of the logic into AppConstants, which
is part of constants.jar.  We had grown a twisty maze of indirection
around the GCM sender IDs and it just wasn't necessary; this just
lifts the static pieces up a level and removes a bunch of interface
indirection.

What surprises me is that asking Google's InstanceId.getToken for a
GCM token with a "comma,separated,list" of GCM sender IDs works -- and
indeed, has worked since we added the second MMA sender ID.  I didn't
expect that and can't explain it, but this doesn't change that logic
and local testing (both of the existing APKs, and APKs with this
modification) looks good.


MozReview-Commit-ID: 3hObfAwNlPH
***
a0c07e53 o draft Bug 1419581 - Part 1: Move MMA setGcmSenderID from MmaDelegate to MmaLeanplumImp. r=nechen

MozReview-Commit-ID: A4hrk6pVqGW

--HG--
extra : rebase_source : 4184f40d82bcd44c2bb380d1a8ab534967818af5
2018-01-12 15:03:37 -08:00
Nick Alexander d5f1dc0020 Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : be0d0eb238151ad589529a2e5e088d275c2b2895
2018-01-04 14:49:58 -08:00
Margareta Eliza Balazs b61bd7a503 Backed out 7 changesets (bug 1419581) for B bustage on /builds/worker/workspace/build/src/widget/android/nsWindow.h:0 on a CLOSED TREE
Backed out changeset 1af5a54e829d (bug 1419581)
Backed out changeset c9aef37de282 (bug 1419581)
Backed out changeset 8d0855cb17b7 (bug 1419581)
Backed out changeset d0eba5853ab6 (bug 1419581)
Backed out changeset bc4cda1cc57c (bug 1419581)
Backed out changeset 93547276fba8 (bug 1419581)
Backed out changeset 45b5309a73cb (bug 1419581)
2018-01-17 00:03:19 +02:00
Margareta Eliza Balazs 757c55dc4f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-16 23:49:24 +02:00
Nick Alexander 8adb3071f9 Bug 1419581 - Part 6: Add Android build configuration --without-google-play-services. r=dustin
MozReview-Commit-ID: 526BCiQwlm6

--HG--
rename : mobile/android/config/mozconfigs/android-api-16/nightly-artifact => mobile/android/config/mozconfigs/android-api-16/nightly-without-google-play-services
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_without_google_play_services.py
extra : rebase_source : 1eeffc4381f335fe56e380070852e363e6431eb7
2018-01-04 15:45:56 -08:00
Nick Alexander aaf5da4a9e Bug 1419581 - Part 5: Add --without-google-play-services. r=chmanchester
Historically, we used MOZ_NATIVE_DEVICES to proxy for Google Play
Services.  (MOZ_NATIVE_DEVICES was the first GPS-consuming feature in
Fennec.)  With Python moz.configure, we can easily add the real
top-level flag that distributions like F-Droid actually want, which is
to build without (non-free) Google Play Services entirely.

MozReview-Commit-ID: 7YJKw3G1lQA

--HG--
extra : rebase_source : 1a6f7414c0b8108862701dca896befd815d2ac16
2018-01-04 15:37:15 -08:00
Eugen Sawin 0b2fc75fce Bug 1430203 - [1.0] Ignore anchor elements with missing href when determining context menu type. r=nechen 2018-01-16 16:55:08 +01:00
Nick Alexander 0ea29cca03 Bug 1419581 - Part 4: Allow setting MOZ_ANDROID_GCM in mozconfig. r=chmanchester
This also verifies that we have Google Play Services (via
MOZ_NATIVE_DEVICES=1) if we ask to build with GCM.  This was just an
oversight earlier.

MozReview-Commit-ID: BvJi7Sfo4pu

--HG--
extra : rebase_source : 63e4eaab1cf81b765503750c9b356fcc4a2470dd
2017-11-22 09:48:02 -08:00
Nick Alexander d61bdc9e40 Bug 1419581 - Part 2: Guard media Fennec JNI primitives with MOZ_NATIVE_DEVICES. r=jchen
MozReview-Commit-ID: 3NWZ6BL5Tlr

--HG--
extra : rebase_source : 7db66ec51c0a3337527c76d02109db71804d23f8
2017-12-06 20:28:04 -08:00
Tad a056b461cc Bug 1419581 - Part 1: Simplify MMA GCM sender IDs logic. r=nechen
Right now, the MMA glue is built into constants.jar.  constants.jar is
the home of preprocessed Java code; it's built very early in the build
process and intended to be a tiny kernel of shared definitions.  The
fact that the MMA glue has to live there is just a sad consequence of
the non-Gradle build system, which makes dependency injection
difficult.  Unfortunately, another consequence is that it's not
possible to move reference org.mozilla.gecko.{gcm,push} in the MMA
glue, because those packages are built after constants.jar.

Instead, this patch lifts some of the logic into AppConstants, which
is part of constants.jar.  We had grown a twisty maze of indirection
around the GCM sender IDs and it just wasn't necessary; this just
lifts the static pieces up a level and removes a bunch of interface
indirection.

What surprises me is that asking Google's InstanceId.getToken for a
GCM token with a "comma,separated,list" of GCM sender IDs works -- and
indeed, has worked since we added the second MMA sender ID.  I didn't
expect that and can't explain it, but this doesn't change that logic
and local testing (both of the existing APKs, and APKs with this
modification) looks good.


MozReview-Commit-ID: 3hObfAwNlPH
***
a0c07e53 o draft Bug 1419581 - Part 1: Move MMA setGcmSenderID from MmaDelegate to MmaLeanplumImp. r=nechen

MozReview-Commit-ID: A4hrk6pVqGW

--HG--
extra : rebase_source : 0547c79ecf404688972fc55658f09bdfce07b613
2018-01-12 15:03:37 -08:00
Nick Alexander 4d89e3b968 Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : 46977618d002691b1f0add847faaec47d1b15404
2018-01-04 14:49:58 -08:00
Jan Henning 6622ab0540 Bug 1430414 - Remove unused package-manifest.in references. r=nalexander
Those are all remnants of APIs that are now gone for good.

MozReview-Commit-ID: 266GvgbES3s

--HG--
extra : rebase_source : d160f559bfcb805ecf02f53784777534ede943f4
2018-01-13 18:48:39 +01:00
Nick Alexander ba75165470 Bug 1430313 - Don't take brand.dtd from object directory. r=mshal
This thorn in my side turns out to be unnecessary!  For reasons
unknown, brand.dtd is not localized for mobile/android/ in the way it
is for browser/.  That means we can just pull from the branding
directory, which avoids a frustrating issue where single-locale
repacks couldn't actually produce strings.xml since the subtle
dependency on the branding directory being built first wasn't
satisfied.

MozReview-Commit-ID: CBBaxfj5lMW

--HG--
extra : rebase_source : f020c82a78bb2d14760ba6cfb5d586795471bd8d
2017-11-16 14:45:13 -08:00
Nick Alexander 9932883508 Bug 1430417 - Do not include LeakCanary in automation builds. r=jchen
This got mixed up by Bug 1411654, which migrated to Android-Gradle
3.0+.  However, it's also much easier to fix due to the changes in the
new version!  This patch uses the new audience flavor dimension to
control the version of LeakCanary included.

Note that this turns off LeakCanary for builds produced by |mach
build|, because |mach build| always builds the official audience
flavor dimension.  We could use MOZILLA_OFFICIAL to differentiate, but
it's not worth it: local developers who care about LeakCanary
will/should be running a local audience flavor dimension from Android
Studio.

MozReview-Commit-ID: ASgxhNOMsWc

--HG--
extra : rebase_source : a5de2b6fdaf92a1d91739ca0b480a9d04d434b8c
2018-01-16 10:50:23 -08:00
Nick Alexander bbcf106cbd Bug 1411654 - Post: Cull unused variables; guard more with MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=maliu
MozReview-Commit-ID: 8EGzVISIEQZ

--HG--
extra : rebase_source : 2e4d537f9dc336728c29a864a101ed2e47ee7abe
2017-11-14 15:03:52 -08:00
Nick Alexander 8b73eafa94 Bug 1411654 - Part 5c: Work through ResourceUnused lint issues. r=mcomella
MozReview-Commit-ID: 82rgLEEMQzG

--HG--
extra : rebase_source : ecb798ff7cd6c9da1e55bfd21f223099141250d8
2017-11-14 19:20:16 -08:00
Nick Alexander 9925256f15 Bug 1411654 - Part 5b: Work through WrongConstant lint issues. r=mcomella
MozReview-Commit-ID: 6zJ7EMu9rgO

--HG--
extra : rebase_source : 120657218f085fad178abcc7e7864c7db24c6692
2017-11-14 15:36:49 -08:00
Nick Alexander 425d9f6d09 Bug 1411654 - Part 6: Fix checkstyle. r=mcomella
MozReview-Commit-ID: GPRogNGKQBJ

--HG--
extra : rebase_source : f2a96c9acd918c81a4769fbc0f6f2453dcf20993
2017-11-14 09:49:27 -08:00
Nick Alexander 1ae5087753 Bug 1411654 - Part 5: Work through various new lint issues. r=mcomella
MozReview-Commit-ID: AhrT7jbztE3

--HG--
extra : rebase_source : b6d33e402a16b82c181408e3abdcb3d7726de85e
2017-11-08 10:11:25 -08:00
Nick Alexander a31ac9c2b7 Bug 1411654 - Part 4: Use flavorDimensions to simplify {with,without}GeckoBinaries logic. r=maliu
MozReview-Commit-ID: 2rbsP6A0BY0

--HG--
extra : rebase_source : cbb33702f841134d58b1e49678bd2a402885bcb7
2017-11-09 16:47:05 -08:00
Nick Alexander 701f1ee2f2 Bug 1411654 - Part 3: Make each variant handle source from moz.build. r=maliu
The advantage of doing this per-variant is that we can really separate
the 'local' behaviour (re-generate via re-entrant |mach build|
invocations) from the 'official' behaviour (never re-generate via
re-entrance).

This also uses new Android-Gradle plugin 3.0+ APIs to integrate the
generated resources and Java code.

MozReview-Commit-ID: 4pd2iw1nJSb

--HG--
extra : rebase_source : 9e62ed6adf4b0fa01bcb9a927fa24626d3ce4d29
2017-11-09 13:47:46 -08:00
Nick Alexander d8db003c57 Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella
There were a few API changes, mostly around explicitly creating
Services/Activities/ContentProvider instances, but they were pretty
easy to address.

Sadly, Robolectric doesn't really work with the new aapt2 processing
in Android-Gradle plugin 3.0+ -- see in particular
https://github.com/robolectric/robolectric/issues/3333#issuecomment-324300418
-- so we have to opt-out of the new implementation for now.  Hopefully
plugin 3.1+ will address these issues, which are widespread.

MozReview-Commit-ID: dlbd32kMs6

--HG--
extra : rebase_source : 325bc8142ec9b8a9d5029e7820e8f990d7e1a5fd
2017-11-07 20:26:43 -08:00
Nick Alexander 47c107e74f Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu
New Android-Gradle plugins pin the build-tools version, and we want to
be consistent between Gradle and moz.build.

MozReview-Commit-ID: ApWS4rHzPuH

--HG--
extra : rebase_source : 38a9781c472d858f3300cbbcbdc6d2311c465713
2017-10-26 11:00:36 -07:00
Nick Alexander f4efb03e4e Bug 1411654 - Part 0: Add rudimentary documentation about Gradle integration. r=maliu
This sketches the flavor dimensions.  The important ones are
`audience` and `geckoBinaries`, which I think simplify the situation
greatly.  Coupled with Bug 1417232 centralizing most everything in
`mobile/android/gradle.configure`, the Gradle configuration shouldn't
be so hard to evolve.

MozReview-Commit-ID: DILjVrnLA3F

--HG--
extra : rebase_source : 2373eecc45e670ff7a5697f2e8095a8ea8fb5058
2017-11-15 15:02:18 -08:00
Jim Chen 59bbfb5a7d Bug 1411654 - Pre: Fix CustomTabsSecurityPopup package. r=nalexander
MozReview-Commit-ID: ICTdy9WRlwG

--HG--
extra : rebase_source : d11fb2b2410bf9f1e7971b3c1adf2cb1beee1f67
extra : source : 805627e27bc602593349e7386ce79e7b607e153b
2018-01-09 14:59:55 -05:00
Nick Alexander 38c81ecf69 Bug 1411654 - Pre: Remove unused HomeExpandableListView. r=mcomella
This was added for the Remote Tabs panel in Bug 785199.  That code has
now morphed into the combined history panel, which uses a
RecyclerView.

MozReview-Commit-ID: J6KsVCn8mzh

--HG--
extra : rebase_source : 8e18f57882edee2de1e9decec323ea5831d314c8
2017-11-14 19:32:18 -08:00
Nick Alexander ff80906133 Bug 1411654 - Pre: Fix checkstyle whitespace error in GeckoHlsPlayer. r=nalexander
MozReview-Commit-ID: 4h1p4J5B8sM

--HG--
extra : rebase_source : 3703ef9e2d083761371449945117cdcb773a4878
2018-01-04 12:26:11 -08:00
Nick Alexander 88e814095b Bug 1411654 - Pre: Clear icon disk storage in test. r=mcomella
Newer versions of Robolectric seem to have different semantics about
clearing disk caches, so this is necessary.  But for older versions,
it shouldn't hurt, and is slightly more clear than relying on an
implicit clear.

MozReview-Commit-ID: LRcaEPasXj8

--HG--
extra : rebase_source : 3b26f65d455c049b6190a9c481f8a4bec4e06dfd
2017-11-07 20:24:04 -08:00
Nick Alexander 95a99b4b2a Bug 1411654 - Pre: Remove unused PerProfileDatabaseProvider. r=mcomella
No idea what is going on with this hierarchy, but this isn't used and
isn't helping anything.

MozReview-Commit-ID: Ir3LxLYHR6M

--HG--
extra : rebase_source : c883a3fa60d1a47b19b53f2bbc7a9c2f0e2cf711
2017-11-07 20:18:56 -08:00
Nick Alexander 39c11c49d5 Bug 1411654 - Pre: Fix dangling resource. r=mcomella
This is just wrong.

MozReview-Commit-ID: EBtKTD07aNu

--HG--
rename : mobile/android/base/resources/values-v17/themes.xml => mobile/android/app/src/main/res/values-v17/themes.xml
extra : rebase_source : 01df9bd8ff4f2d700999ee5d2045890f8acb51ac
2017-11-08 09:47:48 -08:00
Nick Alexander f866b2dcc8 Bug 1411654 - Pre: Teach |mach gradle| to take GRADLE_FLAGS from the command line. r=maliu
MozReview-Commit-ID: 150llND5h0j

--HG--
extra : rebase_source : 3c1859be6497dddf4cb9f05af7749cdd485776b7
2017-10-25 10:22:42 -07:00
Nick Alexander c033a8d02c Bug 1430309 - Remove classycle from the tree. r=froydnj
This was added in Bug 1096627 to enforce the baseline GeckoView
layering that we had at that time.  Now that GeckoView is a separate
Gradle project, that layering is automatically enforced.  It's time
for this to go.

MozReview-Commit-ID: Ly35QhgBdWM

--HG--
extra : rebase_source : 2a1807b3b06e332ca7d0980c01aa1e343f4df5d9
2017-11-16 09:58:51 -08:00
Coroiu Cristina 5081234fee Backed out 1 changesets (bug 1430309) for build bustage because of unused rule in mobile/android/moz.build after file removals on a CLOSED TREE
Backed out changeset 0b0cab4592d9 (bug 1430309)
2018-01-15 21:08:48 +02:00
Nick Alexander 6550a090f6 Bug 1430309 - Remove classycle from the tree. r=froydnj
This was added in Bug 1096627 to enforce the baseline GeckoView
layering that we had at that time.  Now that GeckoView is a separate
Gradle project, that layering is automatically enforced.  It's time
for this to go.

MozReview-Commit-ID: Ly35QhgBdWM

--HG--
extra : rebase_source : 8b7b6c5f3386804209bccca48a1549cc74cd0836
2017-11-16 09:58:51 -08:00
Emilio Cobos Álvarez 5a3cf530d2 Bug 1430512: Remove unnecessary use of -moz-border-bottom-colors in aboutBase.css. r=dao
A single color in the color list renders just as border-bottom-color.

This used to have two colors, but was changed in [1], so now it can go away.

[1]: https://hg.mozilla.org/mozilla-central/rev/cfdf310748918c3d5eadc16daa5153091e325995

MozReview-Commit-ID: LDocmCwjkzw

--HG--
extra : rebase_source : 0b5027434d7a964165f547c3c67f31045ecc3df4
2018-01-15 03:27:19 +01:00
Jim Chen 0fe980975c Bug 1426244 - 4. Add mach android geckoview-docs command; r=nalexander
Add a './mach android geckoview-docs' command that generates javadoc for
GeckoView using Gradle. Specifying the '--archive' option will generate
a geckoview-javadoc.jar archive. Specifying the '--upload' option,
intended primarily for Taskcluster, will upload the javadoc to Github
pages under the given user/repository.

MozReview-Commit-ID: HfwXlf8aFhw

--HG--
extra : rebase_source : 25ccbf3380ba2c8f391c48c882256f970be92c9f
2018-01-13 17:41:09 -05:00
Jim Chen 5f1d1d00db Bug 1426244 - 2. Fix javadoc comments; r=droeh,nalexander
Add some missing lines and fix some mistakes in our javadoc comments.

MozReview-Commit-ID: 9Q7qWJJ51Vo

--HG--
extra : rebase_source : afc70812b26de19e610412df014070b75c46017b
2018-01-13 17:41:08 -05:00
Jim Chen d72cb2053e Bug 1426244 - 1. Fix some errors from javadoc generation; r=nalexander
Tweak the javadoc task arguments to not generate errors for a standard
GeckoView javadoc run.

MozReview-Commit-ID: 931xCtUcX6N

--HG--
extra : rebase_source : 51e13cd4ec4a0ad9ec91e3bf2b52768aa6ba5e16
2018-01-13 17:41:08 -05:00
Dorel Luca ab63c465d9 Backed out 19 changesets (bug 1411654) for Android nightly bustages a=backout
Backed out changeset 649e7aa405ca (bug 1411654)
Backed out changeset c2e51b70519f (bug 1411654)
Backed out changeset a371f3ef4312 (bug 1411654)
Backed out changeset db978e230556 (bug 1411654)
Backed out changeset 56538ed998cf (bug 1411654)
Backed out changeset 6ff0cdf46a3d (bug 1411654)
Backed out changeset 0e493bacc5e3 (bug 1411654)
Backed out changeset 23cbcf427745 (bug 1411654)
Backed out changeset eda74143389f (bug 1411654)
Backed out changeset 359fadf9b3e9 (bug 1411654)
Backed out changeset 5c64eda20f1e (bug 1411654)
Backed out changeset bffb6a5b78d1 (bug 1411654)
Backed out changeset 43787f4089c3 (bug 1411654)
Backed out changeset 9141bbdfd13b (bug 1411654)
Backed out changeset 108674372ef7 (bug 1411654)
Backed out changeset fb15e1f54987 (bug 1411654)
Backed out changeset 264476c77210 (bug 1411654)
Backed out changeset d23f467218da (bug 1411654)
Backed out changeset 78576ff98660 (bug 1411654)

--HG--
rename : mobile/android/app/src/main/res/values-v17/themes.xml => mobile/android/base/resources/values-v17/themes.xml
2018-01-13 15:17:49 +02:00
Dorel Luca cad7f53be6 Backed out changeset 113f1c4b9564 (bug 1411654) for android nightly bustages a=backout 2018-01-13 14:07:31 +02:00
Nick Alexander 36512ce4d5 Bug 1411654 - Post: Cull unused variables; guard more with MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=maliu
MozReview-Commit-ID: 8EGzVISIEQZ

--HG--
extra : rebase_source : 62119e99ded0ca842b53b7bae5efc2ec07fece64
2017-11-14 15:03:52 -08:00
Nick Alexander 85c743be7e Bug 1411654 - Part 5c: Work through ResourceUnused lint issues. r=mcomella
MozReview-Commit-ID: 82rgLEEMQzG

--HG--
extra : rebase_source : 48c033eec89fa2708a7c1bced5c1da3363bc9dd7
2017-11-14 19:20:16 -08:00
Nick Alexander 13f62b22ce Bug 1411654 - Part 5b: Work through WrongConstant lint issues. r=mcomella
MozReview-Commit-ID: 6zJ7EMu9rgO

--HG--
extra : rebase_source : c0727fa0b856e49a55694cd07efb049a413a80d5
2017-11-14 15:36:49 -08:00
Nick Alexander b2e71b8573 Bug 1411654 - Part 6: Fix checkstyle. r=mcomella
MozReview-Commit-ID: GPRogNGKQBJ

--HG--
extra : rebase_source : d99489c5e1f6dcf9ca10b6ba4571bd9aefae86d7
2017-11-14 09:49:27 -08:00
Nick Alexander 2d91813ebe Bug 1411654 - Part 5: Work through various new lint issues. r=mcomella
MozReview-Commit-ID: AhrT7jbztE3

--HG--
extra : rebase_source : 1241d02bf70fe612be576fc51909be81fc5f3b5f
2017-11-08 10:11:25 -08:00
Nick Alexander 34208b22e7 Bug 1411654 - Part 4: Use flavorDimensions to simplify {with,without}GeckoBinaries logic. r=maliu
MozReview-Commit-ID: 2rbsP6A0BY0

--HG--
extra : rebase_source : d9df7bdb482b8605067303857ab6a3356fa87646
2017-11-09 16:47:05 -08:00
Nick Alexander c85490413c Bug 1411654 - Part 3: Make each variant handle source from moz.build. r=maliu
The advantage of doing this per-variant is that we can really separate
the 'local' behaviour (re-generate via re-entrant |mach build|
invocations) from the 'official' behaviour (never re-generate via
re-entrance).

This also uses new Android-Gradle plugin 3.0+ APIs to integrate the
generated resources and Java code.

MozReview-Commit-ID: 4pd2iw1nJSb

--HG--
extra : rebase_source : 7f8f8e7b2ec80de1104d51815ff2b66f389a33c3
2017-11-09 13:47:46 -08:00
Nick Alexander 4a8ac4504e Bug 1411654 - Part 2: Update Robolectric to 3.5.1. r=mcomella
There were a few API changes, mostly around explicitly creating
Services/Activities/ContentProvider instances, but they were pretty
easy to address.

Sadly, Robolectric doesn't really work with the new aapt2 processing
in Android-Gradle plugin 3.0+ -- see in particular
https://github.com/robolectric/robolectric/issues/3333#issuecomment-324300418
-- so we have to opt-out of the new implementation for now.  Hopefully
plugin 3.1+ will address these issues, which are widespread.

MozReview-Commit-ID: dlbd32kMs6

--HG--
extra : rebase_source : 1b4a681863e8917b473f4852c4b88fe1f95dc1fd
2017-11-07 20:26:43 -08:00
Nick Alexander e820c8ca18 Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu
New Android-Gradle plugins pin the build-tools version, and we want to
be consistent between Gradle and moz.build.

MozReview-Commit-ID: ApWS4rHzPuH

--HG--
extra : rebase_source : 5a5730b4b9ce84af40a7c73c4f1abba017103f02
2017-10-26 11:00:36 -07:00
Nick Alexander 188f0ab668 Bug 1411654 - Part 0: Add rudimentary documentation about Gradle integration. r=maliu
This sketches the flavor dimensions.  The important ones are
`audience` and `geckoBinaries`, which I think simplify the situation
greatly.  Coupled with Bug 1417232 centralizing most everything in
`mobile/android/gradle.configure`, the Gradle configuration shouldn't
be so hard to evolve.

MozReview-Commit-ID: DILjVrnLA3F

--HG--
extra : rebase_source : 311e1b18a2f0ad60b41d574f3c23aa160ecd56c0
2017-11-15 15:02:18 -08:00
Jim Chen 68b13698a1 Bug 1411654 - Pre: Fix CustomTabsSecurityPopup package. r=nalexander
MozReview-Commit-ID: ICTdy9WRlwG

--HG--
extra : rebase_source : 0b53b99f50e4beb91482fe64387a3e84054b1be4
extra : source : 805627e27bc602593349e7386ce79e7b607e153b
2018-01-09 14:59:55 -05:00
Nick Alexander f75d5ec93a Bug 1411654 - Pre: Remove unused HomeExpandableListView. r=mcomella
This was added for the Remote Tabs panel in Bug 785199.  That code has
now morphed into the combined history panel, which uses a
RecyclerView.

MozReview-Commit-ID: J6KsVCn8mzh

--HG--
extra : rebase_source : b7dcf3130878987b52a7184438f2d5a84002c2ad
2017-11-14 19:32:18 -08:00
Nick Alexander 137c2a9010 Bug 1411654 - Pre: Fix checkstyle whitespace error in GeckoHlsPlayer. r=nalexander
MozReview-Commit-ID: 4h1p4J5B8sM

--HG--
extra : rebase_source : 0ee258440252e8c87ec375a4d09cc5d8ee60a208
2018-01-04 12:26:11 -08:00
Nick Alexander 19e0281afe Bug 1411654 - Pre: Clear icon disk storage in test. r=mcomella
Newer versions of Robolectric seem to have different semantics about
clearing disk caches, so this is necessary.  But for older versions,
it shouldn't hurt, and is slightly more clear than relying on an
implicit clear.

MozReview-Commit-ID: LRcaEPasXj8

--HG--
extra : rebase_source : fee00a6a068d68e7f7978df56bcad94997d70afb
2017-11-07 20:24:04 -08:00
Nick Alexander edc447f108 Bug 1411654 - Pre: Remove unused PerProfileDatabaseProvider. r=mcomella
No idea what is going on with this hierarchy, but this isn't used and
isn't helping anything.

MozReview-Commit-ID: Ir3LxLYHR6M

--HG--
extra : rebase_source : d5efb14bff510e2a2982085237c53e27b4c7564d
2017-11-07 20:18:56 -08:00
Nick Alexander e4d79b18b4 Bug 1411654 - Pre: Fix dangling resource. r=mcomella
This is just wrong.

MozReview-Commit-ID: EBtKTD07aNu

--HG--
rename : mobile/android/base/resources/values-v17/themes.xml => mobile/android/app/src/main/res/values-v17/themes.xml
extra : rebase_source : 6390d41a43e2724e81f4c0ae6c3122f487b3f4a4
2017-11-08 09:47:48 -08:00
Nick Alexander 51a8bbecd7 Bug 1411654 - Pre: Teach |mach gradle| to take GRADLE_FLAGS from the command line. r=maliu
MozReview-Commit-ID: 150llND5h0j

--HG--
extra : rebase_source : eaf3b914608f00a919f1ec19c7ac45b13ba71601
2017-10-25 10:22:42 -07:00