Commit Graph

20496 Commits

Author SHA1 Message Date
Sebastian Hengst
2479eaedbf merge mozilla-central to autoland. r=merge a=merge 2017-09-22 11:50:19 +02:00
Sebastian Hengst
79326d87c8 Backed out changeset 5e5ce5633017 (bug 1396951) for frequently failing robocop's testSettingsPages. r=backout a=backout
MozReview-Commit-ID: AGZMQKL3eft
2017-09-22 11:49:14 +02:00
Sebastian Hengst
f08b285a28 Backed out changeset 71134284dc36 (bug 1396951)
MozReview-Commit-ID: 1hsJHf7XvbM
2017-09-22 11:48:41 +02:00
Sebastian Hengst
8ac65ca47e Backed out changeset 155c1005c388 (bug 1396951)
MozReview-Commit-ID: Egbc73sWnEB
2017-09-22 11:48:36 +02:00
Sebastian Hengst
7bd9fdc344 Backed out changeset e9bc6e08091b (bug 1396951)
MozReview-Commit-ID: 1vPPNL6uovN
2017-09-22 11:48:30 +02:00
Sebastian Hengst
e6da11dbfd Backed out changeset b5a88815b3a6 (bug 1396951)
MozReview-Commit-ID: H7q7JLdOCQS
2017-09-22 11:48:25 +02:00
Sebastian Hengst
ee050c207e Backed out changeset 0a367a71ca43 (bug 1396951)
MozReview-Commit-ID: 3UwRalvlkEE
2017-09-22 11:48:19 +02:00
Sebastian Hengst
9e7898d195 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FKzfDK7mwcx
2017-09-22 11:29:49 +02:00
Phil Ringnalda
9728bc3636 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Jim Chen
fc16f11c89 Bug 1401737 - 1. Add a diagnostic crash; r=me
Add a diagnostic crash for the unexpected case where
GeckoService.register() is called a second time. We know the stack for
the second call, but we want to know the stack for the first call, so we
introduce this intentional crash. r=me for trivial diagnostic patch
which will be backed out ASAP.

MozReview-Commit-ID: HobtPiVSSTR
2017-09-21 23:41:22 -04:00
Wes Kocher
733c3896f8 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 9mZaPGxxjXd
2017-09-21 17:04:03 -07:00
Wes Kocher
a7fe048680 Merge inbound to central, a=merge
MozReview-Commit-ID: E7k4xViLm4V
2017-09-21 17:03:29 -07:00
Michael Comella
2eca8411a3 Bug 1399683: Change padding of content view rather than self in onSizeChanged. r=sebastian
To be honest, I'm not sure why this works. onSizeChanged seems to be a callback
to notify the user that your layout has completed and not a place to update
layout params. However, it makes *slightly* more sense that you could update
your children's layout from this view, which is what this patch changes the
code to do.

I think I could figure out why this works if I dug further into [1] but I have
other things to focus on.

I don't think this is the most correct solution, but it is likely the smallest
and least risky change we can make to fix this issue, which is ideal because
we'd like to uplift this to the 57 Beta.

A more correct solution would override the Activity Stream RecyclerView and
provide different desired measurements to its parent so that the new size is
set *during* layout rather than after it, which would make the layout process
more efficient. However, this type of code is less commonly written day-to-day
by developers so it's harder to write, harder to maintain, and I'd have to read
a lot of [1] in order to write it. :)

[1]: https://developer.android.com/guide/topics/ui/how-android-draws.html

MozReview-Commit-ID: AceUvDYGWCR

--HG--
extra : rebase_source : 5fe014388db8e4186c2cda54a453930bf8eed211
2017-09-21 15:40:55 -07:00
Chenxia Liu
5ff5a5d11e Bug 1400408 - Add telemetry for clicking on "MORE" link. r=francois,mcomella
MozReview-Commit-ID: Kp8X8dbyzN9

--HG--
extra : rebase_source : 0ba8ab4676962aba7107ba9aeb6f73acd4cfb217
2017-09-20 16:06:51 -07:00
Chenxia Liu
9ce12f4949 Bug 1400408 - Fill in basic documentation of existing Pocket telemetry. r=mcomella
MozReview-Commit-ID: FiZI6ebihD9

--HG--
extra : rebase_source : 342f80ece62434b6e2a29d70d286d1af7dd12f81
2017-09-20 17:11:37 -07:00
Sebastian Hengst
23a0689548 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-21 15:29:25 +02:00
Eugen Sawin
4be4dd80e3 Bug 1401354 - [4.0] Always load settings from intent extra in geckoview_example. r=snorp 2017-09-21 14:44:50 +02:00
Eugen Sawin
703a6f1baa Bug 1401354 - [3.0] Track registration state in GeckoView modules. r=snorp 2017-09-21 14:44:50 +02:00
Eugen Sawin
3f32a7b8d1 Bug 1401354 - [2.0] Set navigation listener for geckoview_example. r=snorp 2017-09-21 14:44:50 +02:00
Eugen Sawin
b9c5b09c69 Bug 1401354 - [1.1] Only delegate URI loads if a navigation listener is set. r=snorp 2017-09-21 14:44:50 +02:00
Makoto Kato
08e9866266 Bug 1350822 - Remove --with-android-gnu-compiler-version. r=glandium
gcc 4.9 is the last version in Android NDK and our minimum requirement of gcc is 4.9+.  --with-android-gnu-compiler-version is unnecessary option because gcc version of Android is always 4.9.

MozReview-Commit-ID: 1sutqlvbQU5

--HG--
extra : rebase_source : 77e42aba81da5276bcddd945ea41895ce2461afa
2017-09-20 20:34:18 +09:00
Michael Comella
8d66e7dcec Bug 1401743: Disable importance for accessibility of pocket MORE arrow. r=liuche
The proper solution here is to put MORE and the arrow in a single focusable
container but this needs to get uplifted so I went with the simpler change.

For non-visual users, there is no difference. For visual users, the only "more"
is focused, rather than "more" and the arrow in one container. The code as it
is slightly more complex because we have to hide and add click listeners to
multiple objects.

MozReview-Commit-ID: JZFLc8jvXII

--HG--
extra : rebase_source : e31aa207b204ace35871acbded1e753fdb636874
2017-09-21 13:20:18 -07:00
Jim Chen
9a9951f4be Bug 1396951 - 6. Remove setLayerView/getLayerView; r=snorp
Remove `GeckoAppShell.setLayerView()/getLayerView()` now that it's no
longer used anywhere.

MozReview-Commit-ID: 6URNFhSs01P

--HG--
extra : rebase_source : 202177e049d969efba04290b228dd67a15ebe3f4
2017-09-21 17:36:07 -04:00
Jim Chen
6e5b9382e4 Bug 1396951 - 5. Remove getLayerView usage from Robocop code; r=gbrown
Find the Fennec LayerView through `Solo.getView()` and the View id
instead of going through `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: FVcPM0fYorf

--HG--
extra : rebase_source : c446302e957c5c1136a6a670735ce9df2dc3f41a
2017-09-21 17:36:07 -04:00
Jim Chen
4440c1fbc9 Bug 1396951 - 4. Pass in GeckoView instance when sending a11y event; r=snorp
Pass in a `GeckoView` instance when sending a11y events so we're not
dependent on `GeckoAppShell.getLayerView()`. However, there's likely
more work to be done to make a11y work for any GeckoView.

MozReview-Commit-ID: DBeDOX5c3qY

--HG--
extra : rebase_source : 0c6c76d326b755671d2d29109823ceaf1aa627ba
2017-09-21 17:36:07 -04:00
Jim Chen
e552b01260 Bug 1396951 - 3. Move GeckoAppShell.viewSizeChanged() to GeckoLayerClient; r=rbarker
Let `GeckoLayerClient` directly deal with scroll-to-input on resize,
instead of going through `GeckoAppShell` and relying on
`getLayerView()`. This is a necessary fix to let us remove
`getLayerView()`, and in a follow-up bug we should actually fix
scroll-to-input to work on any GeckoView.

MozReview-Commit-ID: 1xsHh2vg08M

--HG--
extra : rebase_source : c09c906cbdaf2b3bea96ecfcec1f25bdef4fa31d
2017-09-21 17:36:07 -04:00
Jim Chen
59b8506da3 Bug 1396951 - 2. Don't use getLayerView() in GeckoInputConnection; r=esawin
In GeckoInputConnection, use the current view available through
`getView()`, instead of using `GeckoAppShell.getLayerView()`.

MozReview-Commit-ID: Hc9AUz5SNEs

--HG--
extra : rebase_source : 3e55c4ac8749b75e6f5bc50a2b706f7f4ad264e8
2017-09-21 17:36:02 -04:00
Jim Chen
d96a907c4c Bug 1396951 - 1. Add and use HapticFeedbackDelegate; r=snorp
Instead of using `getLayerView()` to perform haptic feedback, this patch
adds a `HapticFeedbackDelegate`, which `GeckoApplication` implements to
call `performHapticFeedback()` on the active view. Also, use
HapticFeedbackDelegate elsewhere in the Fennec codebase where we want to
perform haptic feedback.

MozReview-Commit-ID: GAArA6yJFNF

--HG--
extra : rebase_source : c9ac6e28584ca2b6c6fb707444cca8dc08abe649
2017-09-21 17:36:02 -04:00
Wes Kocher
640a5d3c46 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Dylan Roeh
5378a4e195 Bug 1386712 - Add null-checking to fix test bustage. r=me 2017-09-21 17:55:36 -05:00
Dylan Roeh
936191dd53 Bug 1386712 - Load about:blank in CustomTabsActivity.finish() to immediately stop media playback. r=snorp 2017-09-19 15:09:16 -05:00
Sebastian Hengst
555d1355f6 Backed out changeset 9767e159a701 (bug 1351673) for failing android lint. r=backout 2017-09-21 11:17:32 +02:00
Grigory Kruglov
2e039ddbf5 Bug 1351673 - Use a single-threaded work queue to process batching downloader work items r=rnewman
Before we'd recurse instead while fetching multiple batches, overflowing the stack on older devices.

MozReview-Commit-ID: 37BG6zGBdn0

--HG--
extra : rebase_source : 2e9d2eeeba247454051e9fe4ab875d9f9ca5e2d4
2017-09-21 16:53:03 -04:00
Andrew Swan
74fb7fe693 Bug 1392176 Implement prompts for browser.permissions.request() on Android r=kmag,sebastian
MozReview-Commit-ID: Dufy1pRFtgK

--HG--
extra : rebase_source : a50bf649d5c2d8ffc0ad143ea7041f34ca28af07
2017-09-12 19:06:45 -07:00
Dustin J. Mitchell
4440d231f8 Bug 1383880: annotate source files with what they SCHEDULE; r=ahal
MozReview-Commit-ID: CR70dSg5R79

--HG--
extra : rebase_source : a46b7daa47680ac92f09988cbc3a205b72de06ed
extra : source : 8586bf76d73db40ef52142fff8f21cdb0b31cf31
2017-08-25 19:31:54 +00:00
Chenxia Liu
4d5d3000fe Bug 1401404 - Add telemetry for AS content prefs. r=francois,mcomella
MozReview-Commit-ID: 3IiDeghnhgX

--HG--
extra : rebase_source : e5e3b94a9e36064594ffddc0a6fb924fc8e17955
2017-09-21 17:29:27 -07:00
Wes Kocher
a6b8d9e91b Merge inbound to central, a=merge
MozReview-Commit-ID: JpqY5uEi1nf
2017-09-20 17:18:21 -07:00
James Willcox
216f3c6511 Bug 1400878 - Don't show keyboard on Android unless the user caused it r=jchen
MozReview-Commit-ID: KURh08X4Q4U
2017-09-20 14:48:00 -05:00
Nevin Chen
eb785983d9 Bug 1400804 - First run tour - the Sync button is not visible. r=jwu
MozReview-Commit-ID: 65OnlR8MgnM

--HG--
extra : rebase_source : 0211c2dd0e60e9ab34555e0b874e343efc42b632
2017-09-18 18:02:50 +08:00
Jing-wei Wu
1630b22632 Bug 1400858 - Introduce class CheckableFadedSingleColorTextView for supporting 'Checkable' status. r=nechen
MozReview-Commit-ID: ILGByeZdyV8

--HG--
extra : rebase_source : 1a3ef22c6b20e76d34579b656a6c79298844c8fc
2017-09-20 17:09:34 +08:00
Sebastian Hengst
bc68e8f407 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
Jing-wei Wu
c98ff484c0 Bug 1401457 - Update the logo icon for search activity. r=nechen
MozReview-Commit-ID: J9gGwCyFvOw

--HG--
extra : rebase_source : 812d3f1416e530223a9494d4a90d1aac6e5a82ae
2017-09-20 14:20:08 +08:00
Nevin Chen
45fc5538ec Bug 1400150 - Use Swtichboard to enable Leanplum debugging. r=maliu
MozReview-Commit-ID: 7Z7oADiE3Lu

--HG--
extra : rebase_source : 00364367c0f83258e00071fa2a693bc9f90d6424
2017-09-15 16:10:48 +08:00
Michael Comella
c182ec9d6a Bug 1401385: Add Pin to Top Sites to missing configurations. r=liuche
When I implemented this, I forgot to add it to non-phone configurations.

MozReview-Commit-ID: 4zTrYZm5tXR

--HG--
extra : rebase_source : ea0a8606d8bd9cc82c020102a25f2f59724be1f6
2017-09-19 15:53:44 -07:00
Wes Kocher
082e7c650c Merge m-c to autoland, a=merge
MozReview-Commit-ID: BLgnf5zTCU3
2017-09-19 14:54:09 -07:00
Wes Kocher
3baa8a7e6e Merge inbound to central, a=merge
MozReview-Commit-ID: 5B5W6AHKcCb
2017-09-19 14:49:11 -07:00
Jim Chen
d2df571ab4 Bug 1400243 - 2. Small fixes to ActionBarHandler and FormAssistant; r=esawin
Small fixes to ride-along in this bug:
* Use localized ellipsis in ActionBarHandler if available.
* Fix one situation where the FormAssistPopup fails to hide.
* Handle an error case in FormAssistant.

MozReview-Commit-ID: 9EZhPnS5h3E

--HG--
extra : rebase_source : a05c13c242158cc1396912378b6f529eea38b0de
2017-09-19 15:57:19 -04:00
Jim Chen
d054198cae Bug 1400243 - 1. Use universal DoorHanger in LoginManagerPrompter; r=esawin
Use the universal DoorHanger API from Prompt.jsm to show the login
doorhanger from any window. Also, refactor parts of LoginManagerPrompter
to use Services.jsm if possible.

MozReview-Commit-ID: 3cnzeT0RNgR

--HG--
extra : rebase_source : 70a926fec8d15c70a75f6afe771e973fd62fe9c9
2017-09-19 15:57:19 -04:00
Nathan Froyd
d0cd12af04 Bug 1396098 - part 3 - move android builds to new docker image; r=glandium
Now that we have a Docker image with newer library versions on it, we
can move our builds over.  The new images differ from the old
CentOS-based images in two important ways, though:

1) The system compilers in the new image are new enough to be used as
   host compilers; additionally, our CentOS-built GCC compilers will not
   work.  We need to change the Android mozconfigs to reflect that.  We
   also need to change the Android tasks to not depend on the GCC
   toolchain builds.

2) In a similar fashion, we can use the system JDK; we no longer need to
   use the JDK from the Android NDK, which we had packaged up via the
   Android dependencies task.

Both of these changes come with caveats: our l10n repack jobs continue
to run on the CentOS-based images; l10n repacks have not been completely
converted to Taskcluster.  So we need to:

1) Retain the use of our custom GCC toolchain for HOST_CC/HOST_CXX on
   the CentOS-based images.

2) Retain the JDK packages in the tooltool manifests, and referencing
   them when we build on the CentOS-based images.
2017-09-15 15:31:16 -04:00
Jim Chen
e03747135e Bug 1400886 - Change BrowserCLH subscripts into modules; r=snorp
Change the subscripts (e.g. FormAssistant.js) that we load in BrowserCLH
into proper .jsm modules. This avoids the `defineLazyScriptGetter`
incompatibility mentioned in the bug, and when we turn on shared JSM
global, any memory advantage we get from using subscripts should not
matter anymore.

MozReview-Commit-ID: krSwANdtb5

--HG--
rename : mobile/android/chrome/content/ActionBarHandler.js => mobile/android/modules/ActionBarHandler.jsm
rename : mobile/android/chrome/content/FormAssistant.js => mobile/android/modules/FormAssistant.jsm
rename : mobile/android/chrome/content/InputWidgetHelper.js => mobile/android/modules/InputWidgetHelper.jsm
rename : mobile/android/chrome/content/SelectHelper.js => mobile/android/modules/SelectHelper.jsm
rename : mobile/android/chrome/content/WebrtcUI.js => mobile/android/modules/WebrtcUI.jsm
extra : rebase_source : fa361c9eeea38485ba6a8f6c49321c32304d4006
2017-09-19 14:57:32 -04:00