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

25762 Коммитов

Автор SHA1 Сообщение Дата
James Willcox a47a1c6678 Bug 1291387 - Make mochitest and reftest work against TestRunnerActivity r=gbrown,jchen
Pass --appname org.mozilla.geckoview.test to 'mach mochitest' or
'mach reftest'. This runs the tests without e10s currently.

MozReview-Commit-ID: 7TIvA3zRCw2
2018-02-22 09:18:37 -06:00
James Willcox 75c6e9c7ff Bug 1291387 - Handle errors when using EventDispatcher.sendRequestForResult in GeckoView JS modules r=jchen
MozReview-Commit-ID: EOLO59ZbTOR
2018-02-22 09:18:36 -06:00
James Willcox ef799498f8 Bug 1291387 - Reply with an error in GeckoSessionHandler when no listener registered r=jchen
This eliminates a race where the JS side thinks it has a listener, and
expects a reply, but will never get one because it was unregistered
while the message was in-flight. GeckoSessionHandler dispatches
on the Android UI thread, which is where listeners are set/unset, so
we do not need any synchronization.

MozReview-Commit-ID: 5W3hsQ1cmb7
2018-02-22 09:18:36 -06:00
James Willcox 158da574a3 Bug 1291387 - Log GeckoThread state transitions r=jchen
It may be nice to also log failed state transitions, but we seem to have too
many of those for it to be very useful right now.

MozReview-Commit-ID: 7z4UMyWQp2F
2018-02-22 09:18:35 -06:00
James Willcox 2562ac0bd4 Bug 1422019 - Stand up initial GeckoView tests r=nalexander,jchen
This adds a new geckoview_test module, which contains a
test runner Activity. We can then use JUnit4 + Espresso to
exercise the GeckoView APIs (such as GeckoSession).

MozReview-Commit-ID: FEMAZhpasLW
2018-02-22 09:18:35 -06:00
Nick Alexander f994854ec0 Bug 1422019 - Fix errors in |mach android archive-geckoview|. r=snorp
MozReview-Commit-ID: Gzbv1Y6agsM
2018-02-22 09:18:34 -06:00
Nick Alexander 872fdab41b Bug 1422019 - Fix diagnostic requiring |mach package|. r=snorp
No idea when this broke -- probably the transition to Gradle 4 -- but
this seems to work.  As suggested at
https://discuss.gradle.org/t/copy-task-how-to-fail-on-no-source/25581/2.

MozReview-Commit-ID: 8oGazgLZT3J
2018-02-22 09:18:34 -06:00
James Willcox 9ba68c37c5 Bug 1422019 - Make resource://android/asset work again with GeckoView r=jchen
MozReview-Commit-ID: FYD4cOaNBza
2018-02-22 09:18:33 -06:00
James Willcox 5201ec1c4f Bug 1439747 - Add GeckoSession.ContentListener.onCloseRequest() r=jchen,droeh
MozReview-Commit-ID: CPUVfe1LKDW
2018-02-22 09:18:33 -06:00
James Willcox e7c0c03f32 Bug 1432485 - Add GeckoSession.NavigationListener.onNewSession r=jchen,esawin
This allows apps to decide which GeckoSession should handle a load that
will be in a new window (e.g., window.open()).

MozReview-Commit-ID: BkJM93489Ga
2018-02-22 09:18:32 -06:00
Dorel Luca 6ad641c5c4 Merge mozilla-inboud to mozilla-central. a=merge 2018-02-22 11:59:54 +02:00
Eugen Sawin 05eba99d35 Bug 1432235 - [1.2] Move GeckoView API classes to org.mozilla.geckoview. r=snorp,jchen 2018-02-22 00:46:26 +01:00
Grigory Kruglov 09f51f2e63 Bug 1429735 - Pre: cleanup some unused helper methods r=nalexander
MozReview-Commit-ID: vpnFdFYf4V

--HG--
extra : rebase_source : 16b8edf20f862f9f7dbb9feb6124d6d104424bb5
2018-01-23 16:05:11 -05:00
Nick Alexander 5d736e0310 Bug 1439459 - Expose MOZ_ANDROID_GOOGLE_PLAY_SERVICES to AndroidManifest.xml. r=Grisha
This was oversight when landing Bug 1419581, coupled with dedicated
testing by Grisha.  We don't expose all CONFIG values as DEFINES by
default, and I forgot to add the relevant value to the exposure list.

MozReview-Commit-ID: GUYNWampBAJ

--HG--
extra : rebase_source : f946f2630f2e9120d03b05a4677815e73ab6851a
2018-02-20 10:06:13 -08:00
Zibi Braniecki cd219b53b0 Bug 1431260 - Switch Android code to read multilocale.txt. r=rnewman
MozReview-Commit-ID: 6S4VaAvDako

--HG--
extra : rebase_source : 90bc489755aab0e58a67be16c0114833744c6a0c
extra : source : 3e1d4584acb20b4b0b201fe0d29363010d0dfa7c
2018-02-13 23:42:34 -08:00
Zibi Braniecki dba8ca857b Bug 1431260 - Switch multilocale.json to multilocale.txt in the build system. r=gps
MozReview-Commit-ID: 6S4VaAvDako

--HG--
extra : rebase_source : 29cc2e3416413363a40e77c10a95db7736497948
2018-02-13 23:42:14 -08:00
Mark Banner 2762cbd5c2 Bug 1439838 - Enable ESLint rule no-unused-vars for the same directories in mobile/android as no-undef. r=JanH
MozReview-Commit-ID: 1popN3tahBx

--HG--
extra : rebase_source : 1cc950c6de7ecf8658f174fb48e6a8afe0a1b1c9
2018-02-21 09:22:03 +00:00
Jim Chen c35b2c3fb7 Bug 1439610 - Fix origin under e10s in GeckoViewProgress; r=droeh
Use the current principal to get the origin, so things work under e10s.
Also reorganize some of the code in checkIdentity.

MozReview-Commit-ID: 2heqVMQ7vam

--HG--
extra : rebase_source : 7e67d223aaf366115ac2b3e35bfcb56fba9766f2
2018-02-20 14:31:13 -05:00
Grigory Kruglov bb5d720f32 Bug 1408710 - Pre: Remove ServerLocalSynchronizer* r=rnewman
Theoretical ability to setup synchronizers other than server->local never really
manifested itself in anything actually useful, and I don't foresee that design choice
as currently expressed being useful in the near future. So, let's take a moment to clear
up the layers a little bit.

MozReview-Commit-ID: 5fIZc6zYeit

--HG--
extra : rebase_source : 301a7552fe090e29e013d9e73ca9ca34976ee100
2017-11-14 15:29:57 -05:00
Nick Alexander daf2cc6ccf Bug 1440428 - Remove Proguard JAR entirely. r=jchen
The Proguard dependency is now managed by Gradle.

MozReview-Commit-ID: EOvKSE5z28P

--HG--
extra : rebase_source : 760b117f500cc639cc8c24e9c02933990f358dd7
2018-02-26 11:37:41 -08:00
Nick Alexander f1008517f2 Bug 1255924 - Remove mobile/android/base moz.build definitions. r=jchen
My word, that's a great deal of configuration!  The key technical
change here is subtle: we hard-code the GENERATED_FILES in the
Makefile.in rather than fishing it from the preprocessed files of the
constants.jar.  Again, the final goal here is to use GENERATED_FILES
for the APK itself, which will allow us to capture the dependencies in
the moz.build file directly, and then this hard-coding can be
removed.  One step at a time.

MozReview-Commit-ID: FpgKV1IVu05

--HG--
extra : rebase_source : 4cf645880ea1a640ec021fa831c750a7d3461f3b
2018-02-23 12:25:47 -08:00
Nick Alexander 665e41ac95 Bug 1440432 - Remove AAR exploding from configure. r=jchen
The moz.build Java JAR definitions are, of course, broken, but they
will be removed soon enough.

MozReview-Commit-ID: KIxqLDwd9I7

--HG--
extra : rebase_source : 8312b3f125793f73d3e835d1c0a5c7cabd4ebc0c
2018-02-23 12:16:51 -08:00
Nick Alexander b9e726131c Bug 1440757 - Don't invoke aapt in mobile/android/base/Makefile.in. r=jchen
I choose to clean a bunch of ANDROID_* moz.build cruft here, too,
since it's just passing dependencies between moz.build and
Makefile.in.  The replacement for all of this is to just use
GENERATED_FILES in moz.build, but it'll still take some work to get to
that.  (Why does this stuff exist?  GENERATED_FILES didn't exist and
was resisted when I built this stuff.)

MozReview-Commit-ID: D3GJqJNL0Ih

--HG--
extra : rebase_source : 07351f9d3702cfc42c58bd317885d07882c45c3a
2018-02-23 11:57:28 -08:00
Nick Alexander f4f4a41d30 Bug 1440743 - Part 3: Remove MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE from m/a/base. r=jchen
MozReview-Commit-ID: CAuuPK8YAfS

--HG--
extra : rebase_source : a7385d9ba1bb70409c5c45886a0fb1ae12f6dc6f
2018-02-23 10:10:28 -08:00
Nick Alexander 03710dc7d0 Bug 1440743 - Part 2: Remove most of MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE. r=jchen
This is the easy stuff -- everything but mobile/android/base/Makefile.in.

MozReview-Commit-ID: 5x2z97AHUrR

--HG--
extra : rebase_source : 531fd41d367cad071b209b85ca5b5602fd7cbf7b
2018-02-22 11:45:51 -08:00
Nick Alexander 7b8629f4c9 Bug 1440743 - Part 1: Remove moz.build/Makefile.in for Android stumbler. r=jchen
MozReview-Commit-ID: EnkjgpNrRVA

--HG--
extra : rebase_source : 1dbdace5bab8ff4da7fe2dc5e4834239572cf70d
2018-02-22 13:40:16 -08:00
Nick Alexander 9ec875007d Bug 1440433 - Part 1: Remove mobile/android/tests/browser/robocop/Makefile.in. r=jchen
I had forgotten that m/a/base/Makefile.in can't be killed before m/a/tests/browser/robocop/Makefile.in.

MozReview-Commit-ID: KbtRN5ZCTSJ

--HG--
extra : rebase_source : ea16c04cf018d7b5c53db6d0c4e8218703bdd7e0
2018-02-22 13:31:07 -08:00
Jim Chen ca0fcfcdbd Bug 1440111 - 4. Add ProgressListenerTest; r=snorp
Add headless test for ProgressListener.

MozReview-Commit-ID: KLwLhoCQsW8

--HG--
extra : rebase_source : e3fc1087cf13e57af6fa154d46c0ec93ab625b7a
2018-02-26 14:52:00 -05:00
Jim Chen 7927af085a Bug 1440111 - 3. Add NavigationListenerTest; r=snorp
Add headless test for NavigationListener.

MozReview-Commit-ID: HjdcLoC56G0

--HG--
extra : rebase_source : 677cbb11f21bc126793152427a2f368b33a4873e
2018-02-26 14:52:00 -05:00
Jim Chen 9ba26367e0 Bug 1440111 - 2b. Add loadTestPath call; r=jchen
MozReview-Commit-ID: 3YTU7FrxvuZ

--HG--
extra : rebase_source : b0076334decc9658467f8c285f4656ebe8faec0e
2018-02-26 14:52:00 -05:00
Jim Chen 03118c2cee Bug 1440111 - 2a. Add delegate methods to GeckoSessionTestRule; r=snorp
Add methods to pass callbacks to custom delegates either during the test
or during the next wait.

MozReview-Commit-ID: KZWlACElII4

--HG--
extra : rebase_source : 5ecc78762e013af24f5b715ccf30117f106337de
2018-02-26 14:52:00 -05:00
Jim Chen 01368b80e4 Bug 1440111 - 1. Annotate GeckoBundleTest as SmallTest; r=jchen
MozReview-Commit-ID: ABTmfuI3rA6

--HG--
extra : rebase_source : c998ddd8aa5bb23ea7aa5ac61166ad7319f7f062
2018-02-26 14:51:59 -05:00
Edouard Oger 36e928e2e9 Bug 1363924 p3 - Record commands telemetry events. r=Grisha,tcsc
MozReview-Commit-ID: 2IRAYdN7BI4

--HG--
extra : rebase_source : b12e371ef493b7b03bfcf9ef2f71c06bd1665e91
2018-02-02 13:58:43 -05:00
Edouard Oger b8c9f187a4 Bug 1363924 p2 - Move deviceID and uid to payload level in sync ping. r=Grisha
In the next commit, we will send telemetry events in the sync ping.
The "event" JSON object doesn't have "uid"/"deviceID" fields (actually,
the "sync" objects shouldn't have them either!).
Let's do the right thing and send deviceID and UID as part of the top-level
"payload" object.

MozReview-Commit-ID: 3D3X3PcJAsW

--HG--
extra : rebase_source : 2ed71c7e6ce269cc43878f0e166dd9b149f3ccbc
2018-02-20 15:01:24 +08:00
Edouard Oger 505ab9d57e Bug 1363924 p1 - Add flowID to Client commands. r=Grisha
MozReview-Commit-ID: 58rumpyfQy6

--HG--
extra : rebase_source : 96d975e42096c13725faf7e9e66af240eb095a95
2018-02-02 13:57:17 -05:00
Csoregi Natalia 8b633f366a Backed out 3 changesets (bug 1363924) for android-test failures. CLOSED TREE
Backed out changeset 08747734c0fd (bug 1363924)
Backed out changeset fbba0f584237 (bug 1363924)
Backed out changeset d30f27293117 (bug 1363924)
2018-02-26 20:46:49 +02:00
Edouard Oger 2a38b77eff Bug 1363924 p3 - Record commands telemetry events. r=Grisha,tcsc
MozReview-Commit-ID: 2IRAYdN7BI4

--HG--
extra : rebase_source : f9e5155e45966536ef424b05936f52094d24e393
2018-02-02 13:58:43 -05:00
Edouard Oger 970b1787a0 Bug 1363924 p2 - Move deviceID and uid to payload level in sync ping. r=Grisha
In the next commit, we will send telemetry events in the sync ping.
The "event" JSON object doesn't have "uid"/"deviceID" fields (actually,
the "sync" objects shouldn't have them either!).
Let's do the right thing and send deviceID and UID as part of the top-level
"payload" object.

MozReview-Commit-ID: 3D3X3PcJAsW

--HG--
extra : rebase_source : 2ed71c7e6ce269cc43878f0e166dd9b149f3ccbc
2018-02-20 15:01:24 +08:00
Edouard Oger 4665edb220 Bug 1363924 p1 - Add flowID to Client commands. r=Grisha
MozReview-Commit-ID: 58rumpyfQy6

--HG--
extra : rebase_source : 96d975e42096c13725faf7e9e66af240eb095a95
2018-02-02 13:57:17 -05:00
Mark Banner aa71c1a3b2 Bug 1439380 - Remove uses of Promise.jsm from mobile/android. r=nechen
MozReview-Commit-ID: KzrWz3K6vva

--HG--
extra : rebase_source : 1b112deaf4b0cea1742ec1742981460513bd6242
2018-02-19 15:50:26 +00:00
Dorel Luca 037478c033 Backed out 9 changesets (bug 1410456) for Mochitest failure on mobile/android/tests/browser/chrome/test_media_playback.html
Backed out changeset 36f6b40dfa88 (bug 1410456)
Backed out changeset 19f3248502d9 (bug 1410456)
Backed out changeset 18ef18999175 (bug 1410456)
Backed out changeset 0ec75a56b4c7 (bug 1410456)
Backed out changeset f7eae1545d5e (bug 1410456)
Backed out changeset d59060ecd24c (bug 1410456)
Backed out changeset f996b9dce4a6 (bug 1410456)
Backed out changeset 1f75636b5bce (bug 1410456)
Backed out changeset c170d37b1a04 (bug 1410456)
2018-02-19 21:45:10 +02:00
Eugen Sawin 327a3bcb38 Bug 1410456 - Allow OMT access to Android system audio properties. r=esawin
MozReview-Commit-ID: DQ8ubHECtBQ

--HG--
extra : rebase_source : 1a6314681b6ad0e00950e5e06d602e2ca2e8348e
2018-02-19 18:28:09 +02:00
Jim Chen 9cf5255ceb Bug 1438682 - 2. Implement dummy closeConnection; r=esawin
closeConnection is a new API introduced in N. We don't really support it
at the moment but we also don't want the default behavior, so we
implement a dummy.

MozReview-Commit-ID: JY1Tl30X2s7

--HG--
extra : rebase_source : a64371a05aed9db957df2a97da5b23c90760cdb1
2018-02-15 18:06:07 -05:00
Jim Chen a1a66f9c59 Bug 1438682 - 1. Cache initial selection offsets; r=esawin
Getting the selection offsets in onCreateInputConnection can fail
because of us being on a wrong thread. The solution is to cache the last
selection offsets and use those in onCreateInputConnection.

MozReview-Commit-ID: AOlZsuOvzHm

--HG--
extra : rebase_source : 42f35bc60219707fc29db7cc2803f64313806244
2018-02-15 18:06:06 -05:00
Dylan Roeh 347966abfb Bug 1432487 - Rename all *Listeners to *Delegates and corresponding minor changes. r=snorp,jchen 2018-03-01 08:49:52 -05:00
Thomas Wisniewski 14c2bbe588 Bug 792808 - Change mobile/android/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=sebastian
MozReview-Commit-ID: JHIHB11vdWL

--HG--
extra : rebase_source : ac365f5a97f5b2c8ddfcda1d5444dbd4cc6a240e
2017-09-19 12:05:47 -04:00
Timothy Guan-tin Chien a2a559db3e Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu

--HG--
extra : rebase_source : 49f69cca3a4f27af1060ed82283b5cc96f717229
2018-01-27 15:57:42 +08:00
Narcis Beleuzu 2d9816273c Merge inbound to mozilla-central. a=merge 2018-02-16 11:49:59 +02:00
Dylan Roeh 8819d6c766 Bug 1432233 - Eliminate GeckoBundles from public APIs in GeckoSession. r=snorp 2018-02-15 12:44:32 -06:00
Margareta Eliza Balazs 55aa0e75d6 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-15 22:43:18 +02:00
Dylan Roeh 5457d433a9 Bug 1438342 - Fix context menu for media elements in GV. r=snorp
We're currently determining whether a node is a media element by checking if the node's classname is HTMLMediaElement; but that's an abstract class and thus the condition is never satisfied. This checks against the concrete HTMLVideoElement and HTMLAudioElement classes instead.
2018-02-14 15:49:52 -06:00
Andreea Pavel 2a7b1dfa56 Merge mozilla-central to autoland. on a CLOSED TREE 2018-02-15 12:34:12 +02:00
Andreea Pavel 74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02:00
Snowrries 6eed2ab7a2 Bug 1435060 - Allow keyword bookmark as search query; r=JanH
Function queryExists added to StringUtils to check
if a given URL allows for arguments.
Tests for said function added to TestStringUtils.
Function loadUrlOrKeywordSearch in BrowserApp.java updated to also pass
the entire entered string along regardless of whether or not the first
words are keyword bookmarks iff there is additional text after the
keyword bookmark, and the keyword bookmark does not accept any input arguments

MozReview-Commit-ID: 2eyi5Botd3F

--HG--
extra : rebase_source : a08dd11a1595051a2dc727cc361cebecc14fa8c8
2018-02-14 03:07:13 -05:00
Dorel Luca 75f385b6d6 Merge mozilla-centra to mozilla-inbound 2018-02-15 00:37:44 +02:00
Dorel Luca 4234703a53 Merge mozilla-inbound to mozilla-central a=merge 2018-02-15 00:23:02 +02:00
Dorel Luca 90035255ae Merge autoland to mozilla-central a=merge 2018-02-15 00:19:43 +02:00
Jim Chen 784142edc5 Bug 1391268 - 4. Display message when APK is corrupt; r=snorp
Display a message on startup when the APK is corrupt. Right now the
"wrong SDK" message is displayed. I think we can potentially reuse that
message for Beta, but we need a different message for Nightly.

MozReview-Commit-ID: 9NEw252Ytkc
2018-02-14 16:56:54 -05:00
Jim Chen ef4e739d2a Bug 1391268 - 3. Detect corrupt APK when loading libs; r=snorp
On the second pass after failing the first time to load libraries,
enable CRC verification and detect if the APK is corrupt. In that case,
instead of crashing, we send out an event to the application.

MozReview-Commit-ID: 4b97Z8EUHZe
2018-02-14 16:56:54 -05:00
Jim Chen 589e7e1a01 Bug 1391268 - 1. Add call to verify CRC; r=glandium
To reliably detect corrupt APK, this patch adds a GeckoLoader.verifyCRC
call to enable verification of CRC before extracting libs.

MozReview-Commit-ID: 5EpIfwREGIv
2018-02-14 16:56:54 -05:00
L10n Bumper Bot 4be2a1313f no bug - Bumping Fennec l10n changesets DONTBUILD r=release a=l10n-bump
km -> default
meh -> default
tl -> default
2018-02-14 03:40:46 -08:00
Dylan Roeh c34f6ed90c Bug 1391076 - Update GeckoSession.setActive to focus/blur as appropriate. r=snorp 2018-02-12 12:38:11 -06:00
Jan Henning ce7ac5c8a9 Bug 1437388 - Don't set different session store write interval while in background. r=esawin
We had some issues with tabs closed shortly before backgrounding Firefox re-
appearing during session restore, however in hindsight bug 1282830 (closing a
zombie tab didn't trigger a session store file write) seems a more likely cause
for that than my initial theory from bug 1256277 comment 6 (tab events
dispatched *just* before backgrounding might be processed only after our
application-background handling), because as far as I can tell the latter theory
actually requires really split-second timing.

With that in mind, the differing, smaller minimum file write interval while in
background can be removed again.

MozReview-Commit-ID: GSQZYKeYME6

--HG--
extra : rebase_source : 598f49df98b7a09d63cd7e0aad6ad079916fad99
2018-02-11 19:43:16 +01:00
Eugen Sawin 0d21e3454c Bug 1436887 - [1.1] Add GeckoView prefs file. r=snorp,jchen 2018-02-14 19:52:20 +01:00
Dorel Luca dabf7b41ee Merge mozilla-central to autoland. CLOSED TREE
--HG--
extra : amend_source : 021950f3661e3b1d96e768155c5754b7af039f84
2018-02-15 00:35:45 +02:00
Adrian Wielgosik 6c854a7275 Bug 1438270 - Remove nsIDOMDocumentXBL. r=bz
MozReview-Commit-ID: 4TsjUaEdDP2

--HG--
extra : rebase_source : ab61d1832113a8c7b126b8856de59056fcf5ec5e
2018-02-14 20:10:45 +01:00
Nick Alexander 68000223b0 Bug 1437201 - Part 0: Use toolchain clang for host compiler on Android. r=froydnj
MozReview-Commit-ID: DgwfKbjEuIq

--HG--
extra : rebase_source : cdd73c729a063507b841297520cafb8d20a8dc65
2018-02-13 10:32:18 -08:00
Jim Chen 5e9435a262 Bug 1434469 - Add ACCESS_COARSE_LOCATION to list of permissions; r=snorp
Add ACCESS_COARSE_LOCATION to the Fennec and GeckoView list of
permissions. For completeness, also add ACCESS_COARSE_LOCATION to JS
modules that handle runtime permissions.

MozReview-Commit-ID: 8UHaiJcRnq

--HG--
extra : rebase_source : 5a74d4138d6d7b4bf6cf70724f695ff06201c38c
2018-02-13 13:01:18 -05:00
Alex Gaynor de20b74dc4 Bug 1407693 - Part 2 - when a child process crashes, write extra annotation data to a pre-opened file descriptor instead of creating a new file; r=gsvelto,rbarker
This removes the need for the content process to have permissions to create new
files on macOS, allowing more aggressive sandboxing.

MozReview-Commit-ID: 8agL5jwxDSL

--HG--
extra : rebase_source : 17ebcef3e9d24f3d4e7515e3fae95e65cef76a79
2017-11-27 14:37:34 -06:00
Suhail Alkowaileet b2174ae597 Bug 1432854 - Fix Tab counter doesn't show native numbers for non-arabic numeral languages r=JanH
MozReview-Commit-ID: 3STmgEGAbJG

--HG--
extra : rebase_source : be198c358e765471c95a7ec678848b04f768111f
2018-02-08 18:26:00 +03:00
Bogdan Tara 5bbbbe17bc Merge inbound to mozilla-central. a=merge 2018-02-10 11:57:47 +02:00
Tim Nguyen 4fd514d97b Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: Cbj7vZcrDrL

--HG--
extra : rebase_source : 9b844911072ab2cc526f4ad16838e83f44a230da
2018-02-09 21:54:42 +00:00
Sebastian Hengst 87f465d8f7 merge mozilla-central to mozilla-inbound. CLOSED TREE
--HG--
extra : amend_source : 0e657a5dd4f6c8893d3f5ab7b173e3c4178e9e61
2018-02-10 00:29:53 +02:00
Eugen Sawin 520f595f89 Bug 1434210 - [2.0] Trim selection text for search. r=snorp 2018-02-09 21:35:49 +01:00
Jim Chen 3cb126bc3d Bug 1432160 - Initialize PushService for custom tabs / PWA; r=snorp
We currently initialize PushService on delayed startup, which only
happens when Fennec is launched. This patch makes us also initialize
PushService if needed by web content from custom tabs / PWA, by
listening for the push initialization event in GeckoApplication.

MozReview-Commit-ID: 9CTOEZmOqls

--HG--
extra : rebase_source : ccd7d8e61e1de5de8ded1f6793234eb885c92672
2018-02-08 18:33:19 -05:00
Csoregi Natalia 2d4c080565 Backed out 2 changesets (bug 1429573) for reftest failures /tests/reftest/tests/editor/reftests/xul/number-3.xul. on a CLOSED TREE
Backed out changeset bd6892535d35 (bug 1429573)
Backed out changeset 1c398da94994 (bug 1429573)
2018-02-09 16:56:39 +02:00
Tim Nguyen 96e5c9837c Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: 6sb1zcGv4k9

--HG--
extra : rebase_source : 35636617336551fb3aadc8fb321c66b5e5993239
2018-02-09 13:53:49 +00:00
arthur.iakab f58e902071 Backed out 2 changesets (bug 1429573) for failing reftest on reftest/tests/editor/reftests/xul/number-3.xul on a CLOSED TREE
Backed out changeset 75364898f5f6 (bug 1429573)
Backed out changeset fe69b415f45b (bug 1429573)
2018-02-09 23:27:59 +02:00
Tim Nguyen 9235487cb3 Bug 1429573 - Remove spinbuttons.xml bindings now that they are unused. r=Paolo
MozReview-Commit-ID: D7cMQyriekm

--HG--
extra : rebase_source : 189fe22d8b9619707753773b92f83bbdef3a247a
2018-02-09 19:24:11 +00:00
Cosmin Sabou bc9a975314 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-09 02:32:28 +02:00
Cosmin Sabou 2400be0754 Merge inbound to mozilla-central. a=merge 2018-02-09 02:29:56 +02:00
Jim Chen e85d442ce0 Bug 1427239 - Always create FormAssistPopup in WebAppActivity; r=droeh
Right now we create FormAssistPopup in WebAppActivity based on whether
the manifest is successfully loaded. We should always create it because
we always try to destroy it in onDestroy().

MozReview-Commit-ID: KskEZmYrDS1

--HG--
extra : rebase_source : bef84833438aa425a154bdf89cfa61dda7d8651d
2018-02-08 13:44:54 -05:00
Jim Chen 46eaff60e5 Bug 1434925 - Skip drawing hidden toolbar elements; r=rbarker
Apparently a toolbar element can be zero-sized when we try to draw it to
the bitmap. We should just skip drawing in that case.

MozReview-Commit-ID: LlFQX5uN20h

--HG--
extra : rebase_source : cc3ba0cce8157274ef758530888629d4d372d0c0
2018-02-08 13:55:15 -05:00
Jim Chen 243a24b3e1 Bug 1435499 - Guard against OOM when getting toolbar pixels; r=rbarker
Guard against OOM errors when getting toolbar pixels, and send a failure
message back to compositor when OOM happens.

MozReview-Commit-ID: FooZlE979DD

--HG--
extra : rebase_source : 98104304d20c26f4764c14e07c1edbb1e52b649f
2018-02-08 13:23:35 -05:00
Dylan Roeh 5f5a90ae77 Bug 1434126 - Call GeckoSession.closeWindow() from onDestroy() in CustomTabsActivity and WebAppActivity. r=snorp 2018-02-08 12:15:08 -06:00
Narcis Beleuzu d299fdd9b4 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-08 21:36:33 +02:00
Andrew McCreight b7bb86d0d4 Bug 1436184 - Remove definitions of Ci, Cr, Cc, and Cu from httpd.js and .sjs files. r=florian
MozReview-Commit-ID: IKKb9zr2OSf

--HG--
extra : rebase_source : 72d949405c18e6d421422e7865182352eee0c407
2018-02-06 15:03:13 -08:00
Jim Chen a361be5f80 Bug 1326101 - 2. Fix some GeckoBundle bugs; r=snorp
Fix some GeckoBundle tests uncovered by the new unit test.

MozReview-Commit-ID: FEKryW81R2y
2018-02-08 13:36:22 -05:00
Jim Chen 397b87dfe2 Bug 1326101 - 1. Add unit test for GeckoBundle; r=snorp
Add a unit test for GeckoBundle, which tests GeckoBundle more thoroughly
than testEventDispatcher. This also lets us remove the Parcelable test
from testEventDispatcher.

MozReview-Commit-ID: Gn48Zw4Rvx5
2018-02-08 13:36:22 -05:00
Jim Chen 50ae81a660 Bug 1433322 - 3. Run GeckoView unit tests with 'mach android test'; r=nalexander
Run unit tests under geckoview/ when running 'mach android test'. This
also lets us run those tests on Taskcluster.

The test report parser for 'mach android test' had a bug where the input
directory was wrong. As a result, we weren't producing test output at
all. This patch fixes the input directory, and outputs an error if no
reports are found at all to avoid this bug in the future.

MozReview-Commit-ID: IiswQaSPCr0
2018-02-08 13:36:22 -05:00
Jim Chen 338a932c87 Bug 1433322 - 2. Mass move GeckoView unit tests to under geckoview/; r=nalexander
These tests involve GeckoView classes, so move them to under geckoview/.
We use a custom test runner for Fennec unit tests, but I didn't notice
any problems when using standard test runners (e.g. MockitoJUnitRunner),
so I changed these tests to use standard runners.

MozReview-Commit-ID: 7JMhqJqahTC

--HG--
rename : mobile/android/app/src/test/java/org/mozilla/gecko/permissions/TestPermissions.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/permissions/TestPermissions.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/NetworkUtilsTest.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/NetworkUtilsTest.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestContextUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestContextUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestDateUtil.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestDateUtil.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestFileUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestFileUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestFloatUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestFloatUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestIntentUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestIntentUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestStringUtils.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestStringUtils.java
rename : mobile/android/app/src/test/java/org/mozilla/gecko/util/TestUUIDUtil.java => mobile/android/geckoview/src/test/java/org/mozilla/gecko/util/TestUUIDUtil.java
2018-02-08 13:36:22 -05:00
Jim Chen ff9b633e5e Bug 1433322 - 1. Move publicsuffix utils to under Fennec; r=nalexander
The publicsuffix utils are not used in GeckoView and more importantly,
their accompanying asset is only included in Fennec and not GeckoView.
Therefore, it makes sense to move the utils to Fennec.

MozReview-Commit-ID: A5jhiqURUdB

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/publicsuffix/PublicSuffix.java => mobile/android/base/java/org/mozilla/gecko/util/publicsuffix/PublicSuffix.java
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/publicsuffix/PublicSuffixPatterns.java => mobile/android/base/java/org/mozilla/gecko/util/publicsuffix/PublicSuffixPatterns.java
2018-02-08 13:36:21 -05:00
Noemi Erli 919e711783 Backed out changeset fa7b76f98931 (bug 1434126) for Deleting file '.gradle.deps'bustages on a CLOSED TREE 2018-02-08 19:10:40 +02:00
shindli 0fcb667b73 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-08 12:13:08 +02:00
Ciure Andrei 8dd2a49ca4 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-02-08 00:33:37 +02:00
Delphine Lebédel ccdfd8d197 Bug 1430952 - Add 'tl', 'km' and 'meh' to Fennec all-locales for single-locale builds, r=flod
MozReview-Commit-ID: FApINlDzv3d

--HG--
extra : rebase_source : bcfec7f2dbe3c97d5d96aa40c674efc8df511d7a
2018-02-07 16:21:37 -08:00
Mark Banner 606beee3f2 Bug 1230369 - Manually fix some remaining instances of Ci/Cc/Cu definitions and switch Components.* to using the shorthand in some places. r=florian
MozReview-Commit-ID: 9SmoR9RlvZE

--HG--
extra : rebase_source : 054e14150921615ed67415ddb91b45169cc868d4
2018-02-07 09:24:15 +00:00
Dylan Roeh cb9419b55e Bug 1434126 - Call GeckoSession.closeWindow() from onDestroy() in CustomTabsActivity and WebAppActivity. r=snorp 2018-02-07 09:15:12 -06:00
Thom Chiovoloni b43432e557 Bug 1389233 - Record outgoing batches in the android sync ping r=Grisha
MozReview-Commit-ID: JUHSMluUE8q

--HG--
extra : rebase_source : 70616ba96961c53ccbd0cf27830ebb3ad061dd52
2018-01-31 16:13:19 -05:00
Andreea Pavel 7c97cadaf2 Backed out changeset 1889332abc68 (bug 1436271) for android test failure on a CLOSED TREE 2018-02-07 21:09:19 +02:00
Andrew Gaul 7ae797fc80 Bug 1436271: Replace calls to String.getBytes(String) with String.getBytes(Charset) r=nalexander
Also replace calls to String(byte[], String) with String(byte[], Charset).  This
removes some cannot-happen exception handling.
2018-02-06 22:12:33 -08:00
Dylan Roeh 1c29a391df Bug 1432624 - Left-truncate and ellipsize domain in custom tabs to reduce phishing risk. r=snorp 2018-02-07 09:23:47 -06:00
Jeremy Lempereur 9e6a7ee1f9 Bug 1249596 - Part 1: Remove FHR client id migration code on Android. r=nalexander
Removed FHR client id migration code on the Android side.

MozReview-Commit-ID: X9QKtbh6r3

--HG--
extra : rebase_source : f5587789f6980aecc4309dc329eb051650ad4c6f
2018-01-31 23:50:53 +01:00
Cameron McCormack 73774a4b98 Bug 1435666 - Part 4: Remove nsIDOMXPathEvaluator. r=bz
MozReview-Commit-ID: 2nZmbJ9mdwI

--HG--
extra : rebase_source : 3acc54ac7726de2ff00a9b7ddadfcb7e28f573eb
2018-02-05 13:05:45 +08:00
Cameron McCormack 234b89c117 Bug 1435666 - Part 3: Remove nsIDOMXPathResult. r=bz
MozReview-Commit-ID: 9j6dUlanNTi

--HG--
extra : rebase_source : 9a790516379441d4e048009bcacdd26e93fde6ae
2018-02-05 11:39:18 +08:00
Cameron McCormack 70af884bbd Bug 1435666 - Part 2: Remove nsIDOMTimeEvent. r=bz
MozReview-Commit-ID: F2fYWhUKzyp

--HG--
extra : rebase_source : 4dc8397fe050262463d37a9829130c0af707f4ba
2018-02-05 10:31:43 +08:00
Cameron McCormack a3eee241b4 Bug 1435666 - Part 1: Remove nsIDOMSVGElement. r=bz
MozReview-Commit-ID: Hlfnu3pXC0n

--HG--
extra : rebase_source : b50343bbebe2044442af4491f7c97209ad8d4fc0
2018-02-04 17:40:57 +08:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Narcis Beleuzu 84cea84b12 Merge inbound to mozilla-central. a=merge 2018-02-06 11:54:42 +02:00
Jan Henning 563537e684 Bug 1415277 - Part 2 - Only load the selected tab when restoring multiple tabs. r=esawin
The same situation applies when restoring recently closed tabs. In this case, we
can also display a nicer title for those lazily-loaded tabs by making use of the
session store data.

MozReview-Commit-ID: AJiEkTEVAUz

--HG--
extra : rebase_source : a36e0bb0cd4e3e8d62368f1ee5f51ad0c080027c
2018-02-02 21:15:28 +01:00
Jan Henning 8210e8b17e Bug 1415277 - Part 1 - Only load the selected tab when opening multiple tabs. r=esawin
Processing the contents of the tab queue will open a potentially large number of
tabs. To avoid overloading the device we should therefore only load the new
foreground tab and leave the rest to be loaded on demand, when the user selects
one of them.

MozReview-Commit-ID: 9cjoLPRscRl

--HG--
extra : rebase_source : b32f46507156cf38460cd89a8cde09a8f7a51505
2018-02-02 21:11:02 +01:00
Jan Henning ea811fe9a1 Bug 1392996 - Part 2 - Enable view-source word-wrapping by default in Fennec. r=snorp
MozReview-Commit-ID: FpQNzbS9ixY

--HG--
extra : rebase_source : 8a79f883fec07635810ac7fd94aa1bfe157c1c28
2018-01-27 22:58:33 +01:00
Noemi Erli 3d09e55d55 Merge inbound to mozilla-central. a=merge 2018-02-03 11:52:03 +02:00
Andreea Pavel 5cb4690609 Backed out 6 changesets (bug 1423229) for failing browser chrome at browser/base/content/test/siteIdentity/browser_bug1045809.js and firefox functional at testing/firefox-ui/tests/functional/security/test_mixed_script_content_blocking.py TestMixedScriptContentBlocking.test_mixed_content_page and mochitest devtools at devtools/client/webconsole/test/browser_webconsole_block_mixedcontent_securityerrors.js on a CLOSED TREE
Backed out changeset 2ee49f44e617 (bug 1423229)
Backed out changeset 30d1575f5b16 (bug 1423229)
Backed out changeset 39d76cb8c73e (bug 1423229)
Backed out changeset 8ff1f049ac96 (bug 1423229)
Backed out changeset c86887b7f327 (bug 1423229)
Backed out changeset 5417194f3778 (bug 1423229)
2018-02-03 01:12:45 +02:00
Delphine Lebédel 9c2a68ffc5 Bug 1431564 - [meh] Search engine setup for Firefox Mobile for Mixteco Yucuhiti, r=flod
MozReview-Commit-ID: 8LHUIxaioW5

--HG--
extra : rebase_source : 97a1780d2a5f5903b620b20a4f21d08f8a9ae2ba
2018-02-02 10:38:09 -08:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Boris Zbarsky 0e718778d9 Bug 1434819 part 9. Remove nsIDOMNodeFilter. r=qdot
MozReview-Commit-ID: JsxGp9HQ2ak
2018-02-01 14:26:13 -05:00
Csoregi Natalia 5a9ee59e75 Merge inbound to mozilla-central. a=merge 2018-02-01 20:11:41 +02:00
Nathan Froyd 38a5bb5c84 Bug 1412006 - part 3 - add an Android NDK repackaging task; r=dustin,nalexander; f=glandium
We'd like to install the NDK through the Android SDK manager.  But we
can't pin versions of the NDK with the SDK manager, and so Google
can silently upgrade the NDK on us.  Since that is undesirable, this is
the next best thing.

With the toolchain task in hand, we can make all the relevant tasks
depend on the toolchain task and remove the download of the NDK from
tooltool as well.
2018-02-01 09:59:23 -05:00
Delphine Lebédel fb4aad3168 Bug 1430957 - [tl] Search engine setup for Firefox Mobile for Tagalog, r=flod
MozReview-Commit-ID: D4iqh0OT6WD

--HG--
extra : rebase_source : aa554dea772a29226df41e9c5cea46e2180addcc
2018-01-31 15:48:17 -08:00
Jan Henning 3a1892a89a Bug 832990 - Part 2 - Save and restore menu item caches via savedInstanceState. r=Grisha
MozReview-Commit-ID: 6x5BDqhwabS

--HG--
extra : rebase_source : ac208a2eee5d26b9da765101ddf439a50087df9c
2018-01-25 20:47:16 +01:00
Jan Henning f54aff1972 Bug 832990 - Part 1 - Make MenuItemInfo classes parcelable. r=Grisha
Longer term, the MenuItemInfo handling needs to be moved out of BrowserApp in
order to solve bug 1414084 [1], but the easier short term solution is to just
save the cached menu data via the savedInstanceState. This means that
MenuItemInfo and friends have to be made parcelable.


[1] Because of GeckoView, add-ons may load (and attempt to add menu items) while
BrowserApp isn't even alive.

MozReview-Commit-ID: HzPe7ZKbJOj

--HG--
extra : rebase_source : a38d3119c863ca48fdbd068b634c76681a3bfd34
2018-01-25 20:20:35 +01:00
Jan Henning ae39e15f59 Bug 832990 - Part 0 - Improve comment wording. r=Grisha
Since custom tabs and PWAs were moved to GeckoView, we're down to one
GeckoApp-based activity again.

MozReview-Commit-ID: 1zO6JTDptpp

--HG--
extra : rebase_source : 1e65963fddeb53a3522422a902bdfbb3408a251a
2018-01-25 20:46:27 +01:00
Eugen Sawin eff510dfb1 Bug 1423229 - [6.0] Add missing file to build config on a CLOSED TREE. r=bustage 2018-02-02 23:17:35 +01:00
Eugen Sawin 1562c50f0d Bug 1423229 - [5.0] Fix linter errors. r=me 2018-02-02 22:56:52 +01:00
Eugen Sawin 85ea608938 Bug 1423229 - [4.0] Add support for category-based tracking lists. r=francois 2018-02-02 22:36:33 +01:00
Eugen Sawin b6234dd422 Bug 1423229 - [3.3] Add example tracking protection listener to geckoview_example. r=snorp 2018-02-02 22:36:30 +01:00
Eugen Sawin 00bfd8902a Bug 1423229 - [2.4] Add GeckoView tracking protection API and module. r=snorp 2018-02-02 22:36:27 +01:00
Nathan Froyd 796f266cda Bug 1435392 - remove ANDROID_NDK_VERSION* variables from Android common mozconfig; r=nalexander
These are wildly out of date, and unused besides.
2018-02-02 16:34:31 -05:00
Eugen Sawin 86a254d584 Bug 1435290 - [1.0] Enable automatic image resizing for Fennec and custom tabs. r=kats 2018-02-02 19:16:51 +01:00
Eugen Sawin 9b75a22227 Bug 1423229 - [3.3] Add example tracking protection listener to geckoview_example. r=snorp 2018-02-05 22:10:34 +01:00
Eugen Sawin 0f8670722d Bug 1423229 - [2.5] Add GeckoView tracking protection API and module. r=snorp 2018-02-05 22:10:34 +01:00
Nick Alexander a8fd11ad6f 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 : 300f6a6656b87a4b487ec7ec331446b326371665
extra : source : cfad693be9185ae858a29a715b3e5a6d2d3d6fbf
2017-11-14 15:03:52 -08:00
Nick Alexander f452e71db0 Bug 1411654 - Part 5c: Work through ResourceUnused lint issues. r=mcomella
MozReview-Commit-ID: 82rgLEEMQzG

--HG--
extra : rebase_source : 233c8360a8d719f568b31fb60b5f39eded67475d
extra : source : 55776829a744ec20be08d29083c4b39b9519b9b4
2017-11-14 19:20:16 -08:00
Nick Alexander c4499269d8 Bug 1411654 - Part 5b: Work through WrongConstant lint issues. r=mcomella
MozReview-Commit-ID: 6zJ7EMu9rgO

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

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

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

--HG--
extra : rebase_source : 7ef95b9c3b7e2aef0c71e7c421acfd9b35e61bb2
extra : source : 01836fd98c6351667c70cfd187cf1e3c437e1f94
2017-11-09 16:47:05 -08:00
Nick Alexander 0a04218739 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 : 205080d3822f59bcdd5d3b44de2898ff775f5746
extra : source : 730a70767743b74a7e3a1fcf4018540edfdf30a3
2017-11-09 13:47:46 -08:00
Nick Alexander ea45b76573 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 : fe30729161e5dc91ea9173f9b7aaa9135d096791
extra : source : 690e265c684ce70ecb89355314fd1574bb421f0b
2017-11-07 20:26:43 -08:00
Nick Alexander edf219ba3b 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 : 22008e9333b15c594ce26c2a52f67396d6e3ab84
extra : source : f918500d9cf5112b70bc8e0a120df435b02252b7
2017-10-26 11:00:36 -07:00
Nick Alexander e4a0492690 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 : a4ea96a49308f457a406716662d9b64d4ba749fe
extra : source : cec2b8828cc8800fa269d290ce38ea82c454b445
2017-11-15 15:02:18 -08:00
Jim Chen 4a45f5a85e Bug 1411654 - Pre: Fix CustomTabsSecurityPopup package. r=nalexander
MozReview-Commit-ID: ICTdy9WRlwG

--HG--
extra : rebase_source : 36bf354e37ac6aa447acb8f22eeb83358809ef89
extra : intermediate-source : 76085ddd5ac768b3ec8dfe9ca03283630c436681
extra : source : 805627e27bc602593349e7386ce79e7b607e153b
2018-01-09 14:59:55 -05:00
Nick Alexander f6dad2bbde 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 : 2d8a43b6697367f9fec1db760dd1e36ca12e31d0
extra : source : 2b37201606f5a921d91339e2c8a2ec86885b68e8
2017-11-14 19:32:18 -08:00
Nick Alexander 5bd03d9b73 Bug 1411654 - Pre: Fix checkstyle whitespace error in GeckoHlsPlayer. r=mcomella
MozReview-Commit-ID: 4h1p4J5B8sM

--HG--
extra : rebase_source : 3ac6e71b5b70549ed90d1db0160cd1d1233e66b5
extra : source : d0d513d1c3791cbb7ae24b22699f0663e45943d9
2018-01-04 12:26:11 -08:00
Nick Alexander 6f1f726e36 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 : 4d6bb4916cde61f198004661bed58025e91ffa9c
extra : source : 373c9a71d9451498462594b302b4fe2648431fef
2017-11-07 20:24:04 -08:00
Nick Alexander 34d3e93f29 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 : f1726d37fa285de1042fed76a722f941380cbf63
extra : source : 3dc3beab95f83b2f08ff9ff305fdd4b85cc05d9d
2017-11-07 20:18:56 -08:00
Nick Alexander 830afb59cc 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 : c6e58c6be966dd8ace6aa796b5a5e6000ee9c65e
extra : source : 22a861db1573364916ab2c5b6d0c6321ba08ff55
2017-11-08 09:47:48 -08:00
Nick Alexander b45e468335 Bug 1411654 - Pre: Teach |mach gradle| to take GRADLE_FLAGS from the command line. r=maliu
MozReview-Commit-ID: 150llND5h0j

--HG--
extra : rebase_source : 58449c7791d76441dc0068645c7c059877f8cf05
extra : source : d276d3deba053f66d74d258d964cab3fd5358a14
2017-10-25 10:22:42 -07:00
hemant 64d45d0cb9 Bug 1417937 - Remove unnecessary LoadContextInfo.jsm r=standard8
MozReview-Commit-ID: EnY0uKD4UD1

--HG--
extra : rebase_source : c968b273a8a05fb211e0fb1e1601ac1b968ca045
2018-01-31 23:16:46 +05:30
Andreea Pavel d652648d08 Merge mozilla-central to autoland a=merge on a CLOSED TREE
--HG--
rename : dom/media/webrtc/MediaEngine.h => dom/media/webrtc/MediaEnginePrefs.h
extra : rebase_source : 661454de54cac8d23010da02d0c0d68c1856500d
2018-01-31 19:39:52 +02:00
Jan Henning faa05c4265 Bug 1433715 - Make fallback folder icon content-accessible. r=Gijs
The skin used on Firefox for Android doesn't style directory listing, hence we
fall back to using the default icon from gre/res/html. As of bug 863246, this
location is no longer accessible from content as a resource://, hence the file
needs moving into the special content-accessible directory.

MozReview-Commit-ID: obtefafqul

--HG--
extra : rebase_source : 0227487abb4914a11f5749c493d215a1fec45e46
2018-01-28 23:01:42 +01:00
Andreas Pehrson 09f130fe44 Bug 1299515 - Wire up track-disabling logic to frontend APIs. r=jib, r=johannh
This modifies mediaCaptureWindowState() to say whether a camera or microphone is
actively captured or not. Note that this is not the same as the device being
on or off. If we disallow a device from being off while disabled, we still
notify chrome that we're not actively capturing.

MozReview-Commit-ID: B1taormqc3j

--HG--
extra : rebase_source : 292d323c4b9711cc242170f5c5c139bb87658c44
2017-11-17 20:13:06 +01:00
Andrew Swan 1acce175af Bug 1356331 Remove hotfix code from addons manager and related tests r=rhelmer
MozReview-Commit-ID: EjCOOgmXvVH

--HG--
extra : rebase_source : 051c618bd73e7bac41d5dc9339972742b029a879
extra : source : 9af7407fa9309e1fa2dc590309ed2329f02dc61e
2017-12-13 12:33:52 -08:00
Sebastian Hengst 732cb1d98b merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-31 00:22:27 +02:00
Kris Maglione 19a956c2c6 Bug 1431533: Part 5b - Fix ESLint errors left over after rewrite. r=florian
MozReview-Commit-ID: 7bVI1iM6hor

--HG--
extra : source : 0b97a30cadb1a96d3cafae6b79ef0d3ec26770cf
extra : amend_source : 09a90b29837e339eec7bdf8504f86c28e74ca3dd
extra : intermediate-source : a1eca62826a1341ca24d4d2a93d4884d4fc7ad51
extra : histedit_source : eb26e73b531f9a34d3401d39f60b533b27b78540
2018-01-18 16:27:26 -08:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Gurzau Raul c380dfe905 Merge inbound to mozilla-central. a=merge 2018-01-30 12:01:49 +02:00
Cosmin Sabou 37bb870512 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-01-30 00:47:39 +02:00
Boris Zbarsky 5d7b053f45 Bug 1418076 part 10. Get rid of JS uses of Ci.nsIDOMHTMLDocument. r=mystor
MozReview-Commit-ID: IT2OEbCODTX
2018-01-26 01:01:38 -05:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione e050496c59 Bug 1431533: Part 5b - Fix ESLint errors left over after rewrite. r=florian
MozReview-Commit-ID: 7bVI1iM6hor

--HG--
extra : source : 0b97a30cadb1a96d3cafae6b79ef0d3ec26770cf
extra : amend_source : d0515fe4eb13b59cc490ca9d964ad9ee15ef3cd3
extra : intermediate-source : 6e56f4c8843ed134b2dba34fb007298fd55be966
extra : histedit_source : 88abf9f4ea4e740a9391278625ef07395205c3f5%2Cc14bc7a71eb413fcb573ed0d030fd7f99a1468f0
2018-01-18 16:27:26 -08:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Nick Alexander b8d28049fd Bug 1433285: Extract classes*.dex from .ap_ --with-gradle. r=gps,snorp
Right now, we only expect classes.dex, and even --with-gradle we copy
it out of $topobjdir/mobile/android/base.  This commit changes that
for --with-gradle: we only take classes.dex from the given .ap_ file,
and we also handle multiple classesN.dex files (for future multi-dex
support).  The moz.build system stays the same.

This avoids an issue with newer Android-Gradle plugins, where the
classes.dex produced could be either in dex/ or in dexMerger/,
depending on whether any external libraries needed merging.  By
extracting classes.dex from the .ap_ file, we don't need to know what
Gradle build steps actually occur.

The classes.dex in the package-manifest.in has been irrelevant since
Bug 1260241.

MozReview-Commit-ID: FozKwjTcMzU

--HG--
extra : rebase_source : 62b18c7ffe596be73cec4c9565333eac222b018e
2018-01-24 22:09:48 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Kris Maglione 6b36043a0d Bug 1433708: Part 3 - Fix Fennec about:config innerHTML sanitization. r=mconley
MozReview-Commit-ID: J9tmYCGfOcB

--HG--
extra : rebase_source : 9adbee0d98ea9928377f2f8b8c3ad8be00e4d795
2018-01-26 11:21:59 -08:00
Dylan Roeh c8a5a694f9 Bug 1419463 - Add onFocusRequest to ContentListener API. r=snorp
This listens for "DOMWindowFocus" and calls onFocusRequest in the GeckoSession ContentListener whenever it is received, and implements onFocusRequest for custom tabs and PWAs.
2018-01-29 10:38:46 -06:00
Brindusan Cristian 674c27a54e Merge inbound to mozilla-central. a=merge 2018-01-27 13:04:15 +02:00
Andreea Pavel 1dcfffb058 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-01-26 19:51:43 +02:00
Andreea Pavel 38bddf549d Merge inbound to mozilla-central. a=merge 2018-01-26 19:48:13 +02:00
maliu 11b18f5d45 Bug 1372517 - Escape name before joining innerHTML, r=sebastian
MozReview-Commit-ID: 8Wh6SCuHK6F
2018-01-26 10:05:48 -06:00
Sylvestre Ledru 3a35e750f3 Bug 1433417 - Fix a bunch of typo in the doc r=ahal
MozReview-Commit-ID: LRgL0CMJdDP

--HG--
extra : rebase_source : b99364bb96c1501a674a1726a3b5fdf0664a8e4f
2018-01-26 12:50:07 +01:00
Jan Henning 41d8089df7 Bug 1432619 - Remove DawnHelper. r=nechen
It was only used in the 55 Nightly and never meant to stay around.

MozReview-Commit-ID: JDJr9WC4V5M

--HG--
extra : rebase_source : af52eb24c4d599651a4cbde7b00049272448c9e6
2018-01-23 22:37:51 +01:00
arthur.iakab 39d63fc827 Merge mozilla-central to autoland 2018-01-26 02:31:18 +02:00
Geoff Brown f9aaea1460 Bug 1432598 - Do not show first-run screens during android tests; r=snorp 2018-01-25 11:59:38 -07:00
Nick Alexander 86c34ffd3d 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 : 4de338a5f8442159b3e80f492b9ff0f46f5635d9
extra : intermediate-source : 7f41dd3bbc2d25f937fa24a54612c25bc839f5ab
extra : source : bd1e3857b5bac3dc710521a5eb7377a1168b56ac
2018-01-04 15:45:56 -08:00
Nick Alexander c1ee58eb7f 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 : 17a25d2a15868f3661248a06b9048741e5a1dca5
extra : intermediate-source : d4d42899e5cd4255df3bfb4332532936e42ebf43
extra : source : be888fa125dc1948fc073ed69aa8116f47e22877
2018-01-04 15:37:15 -08:00
Kris Maglione aec63e140c Backed out 3 changesets (bug 1431533) for Android mochitest bustage. CLOSED TREE
MozReview-Commit-ID: 5ubE9EMQpZ9

--HG--
extra : histedit_source : df68d7595925c07d9d6e8bacc2c46e69556f479a%2C72b768b9825e20ede6603ead75f871c50dc041f7
2018-01-24 22:04:59 -08:00
Kris Maglione 30b3a49bfd Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
MozReview-Commit-ID: 8V1ZT53ReiP

--HG--
extra : rebase_source : 12b5f8c3e125111db7382eb3d7d20a99fb2c35b3
extra : absorb_source : e99fa7f6eee02e7e6cadeb898c7fcf6dac9c902a
extra : histedit_source : d0dfc31fadc2b81d341c9d0cd1efec02923c003b
2018-01-24 15:48:47 -08:00
Gabriele Svelto 511b8b49c6 Bug 1407557 - Add crash pings to Fennec; r=jchen
Besides adding a new ping builder for 'crash' type pings this patch modifies
part of the Java telemetry to accomodate for it: a new store has been added
for holding crash pings and the URL used to submit has been updated to pass
the 'v' parameter (crash pings are in the telemetry version 4 format).

MozReview-Commit-ID: CZzw7xv6YoS

--HG--
extra : source : 1089cb510d173dee2fe6d0e1a172af46808d52fa
2017-12-07 11:40:44 +01:00
Ian Moody 945e2dc862 Bug 1284548 - Use 'Share Audio' label for sharing audio played in <video>. r=snorp?
Vary the 'Share [...]' label depending on the actual use of the <video> tag, as
is done for the 'Save [...]' label.

MozReview-Commit-ID: Ga6RqV5dCby

--HG--
extra : rebase_source : 8a146d032d4fc9185fd197bb2ad737e62a17cb5b
2017-12-03 22:49:49 +00:00
Ian Moody 968dfff2c0 Bug 1284548 - Put logic classifying <video> element based on content in a function and reuse it. r=snorp?
MozReview-Commit-ID: 8ken4L8fEqq

--HG--
extra : rebase_source : 83c2c84683544a6d7e883fb40ea3202fa6312cbc
2017-12-03 23:29:33 +00:00
Jan Henning 16cb25481a Bug 1310491 - Part 2 - Abort speculative download if user backs out of our App Chooser dialogue. r=esawin
MozReview-Commit-ID: 1YsD2WZsats

--HG--
extra : rebase_source : aac970456b9bd9aaa1fbef707494455321c22324
2018-01-27 13:34:23 +01:00
Jan Henning bbadde1743 Bug 1310491 - Part 1 - Always properly clear speculative downloads when forwarding a download. r=esawin
If we have to forward a download that we cannot handle ourselves to the Android
download manager, then the speculative download started by Firefox needs to be
aborted no matter whether forwarding succeeded or not.

MozReview-Commit-ID: B6zCk28ci1P

--HG--
extra : rebase_source : 1a051afa7eab3426d397e362bc5d26a6a7886917
2018-01-27 13:29:38 +01:00
Nick Alexander 0f67bd1add 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 : c02766104281a895ab57e58079a1f651e1b9f832
extra : intermediate-source : 78828bf781d737b03c249de3dd41dc9edec788fc
extra : source : 44bcb609e721598135a19bf41ba7ff94f3051553
2017-11-22 09:48:02 -08:00
Nick Alexander b2dc9043ec Bug 1419581 - Part 2: Guard media Fennec JNI primitives with MOZ_NATIVE_DEVICES. r=jchen
MozReview-Commit-ID: 3NWZ6BL5Tlr

--HG--
extra : rebase_source : 8cc4621269ac24abe889494ccfa80e6f90c7f428
extra : intermediate-source : 072108d165905e8e6dfdc6720512b6610e30cd68
extra : source : 2ea82ff4a757a0aeb7bdd8cff611d5b92dec14eb
2017-12-06 20:28:04 -08:00
Tad 5545cfcfe1 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 : ce7c1585529e61491a0133633b976b27083c2372
extra : intermediate-source : f8b3e95f18e4082ab8404187508d09eadba8612e
extra : source : 8f1655752d43af33356d497d559888a967bbf6a0
2018-01-12 15:03:37 -08:00
Nick Alexander 3ce208316e Bug 1419581 - Pre: Add missing excludes when building without MOZ_NATIVE_DEVICES. r=nalexander
MozReview-Commit-ID: BXNFBEs2017

--HG--
extra : rebase_source : 0ab618268eb680ca7dc0eb9911dc05e7e9b1ac77
extra : intermediate-source : 5f7645a19bf1ff9aa822314135f8e702f57b3771
extra : source : 65195aae48d88edc3c23f88083cf77251d9556fe
2018-01-04 14:49:58 -08:00
Robert Helmer 77d3af2651 Bug 1260213 - enable system add-on updates for Fennec r=snorp
MozReview-Commit-ID: LH4oPseLBpp

--HG--
extra : rebase_source : 7dc5867e15b128c5cf631c597deb8e15935bddaa
2018-01-24 11:11:10 -08:00
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