Commit Graph

20582 Commits

Author SHA1 Message Date
Grigory Kruglov
95e9c477dd Bug 1403022 - Abort session on BatchingUploader failures r=rnewman
The main goal of these changes is to ensure we're not doing any unnecessary work
in the unahppy cases of BatchingUploader. We might fail in three general ways:
- encounter a 412 error
- encounter another type of HTTP error
- encounter a GUID in the "failed" array

Currently, in all of these cases, we de-facto abort the session, without performing
an actual abort. E.g. we won't commit a batch, we'll refuse to upload any still-flowing
records. This patch simplifies our unhappy-case behaviour: if something failed, actually
abort the session (triggering a shutdownNow of the work queues), declare store as failed, etc.

It's important to note that our "did the synchronization fail?" login in the SynchronizerSession
depends on the store failure counts, and so this patch maintains the "record failed to store"
delegate chain. However, these counts are largely meaningless. What does it mean to fail to store
50 records, if we abort on the 51st, and prevent the other 100 from flowing (and from being counted
as failed?).

This patch also fixes an omission in the verstion tracking logic:
- prior, if we encountered a record in the "failed" array, we'd continue on with the flow, won't upload
anything, mark the synchronization as failed, but we'd also call into 'onStoreCompleted' which will
trigger an update of syncVersion for outflowing records
- with this patch, we won't call into onStoreCompleted in the case above, and so won't update syncVersion
in case of such failures
- this is the correct behaviour for batching uploads (now enabled on all but one server), but possibly
non-optimal behaviour if batching isn't enabled. However, this behaviour should be safe from a data consistency
point of view regardless of the batching mode.

MozReview-Commit-ID: LIYCPaRX8JA

--HG--
extra : rebase_source : 110224b2db85a383635db933ec6c19b21af886e7
2017-09-26 17:36:22 -04:00
Wes Kocher
acf8913934 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsbKCdZU2Ui
2017-09-26 17:14:31 -07:00
Eugen Sawin
01c45b3fc9 Bug 1401002 - [4.0] Fix linter warning. r=me 2017-09-26 23:45:05 +02:00
Eugen Sawin
8d6bc8fb3e Bug 1401002 - [3.1] Add GeckoView setting for application data directories. r=jchen 2017-09-26 23:08:25 +02:00
Eugen Sawin
3b7b1e8565 Bug 1401002 - [2.2] Enable GeckoView remote debugging. r=snorp,jchen 2017-09-26 23:08:25 +02:00
Dylan Roeh
89697c5916 Bug 1399504 - Pass more information to Intent:OpenNoHandler callback so that fallback urls may always be handled correctly. r=jchen 2017-09-26 13:46:27 -05:00
Kyle Machulis
9be401bdd6 Bug 1389650 - Change nsIDOMHTMLAnchorElement instanceof checks to getClassName; r=bz
MozReview-Commit-ID: Il2Ig98BHYP
2017-09-26 11:40:15 -07:00
Sebastian Hengst
3c0f8f3312 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4W52wcX8xBm
2017-09-26 11:54:34 +02:00
Wes Kocher
a8bbad92b3 Backed out changeset 5799b3ef8745 (bug 802749) at flod's request a=backout
MozReview-Commit-ID: INjvhFgmO9m
2017-09-25 23:08:20 -07:00
Mehdi Soleimannejad
e72a4fece2 Bug 802749 - Make background sync over metered connections optional. r=Grisha Kruglov
MozReview-Commit-ID: 4UhQqyxT90N

--HG--
extra : rebase_source : 937a8f6b9515678811b5d03e1a7514ef32b98af1
2017-09-22 10:25:26 +03:30
Grigory Kruglov
2398e54654 Bug 1373254 - Ensure onStoreFailed won't be called twice r=rnewman
MozReview-Commit-ID: 5IE7t5qs6VU

--HG--
extra : rebase_source : 81b797f526532e10e06fbe6225c29fc56e34db5c
2017-09-25 20:01:14 -04:00
Dylan Roeh
bcebef542c Bug 1388750 - Checkstyle fix. r=me 2017-09-25 09:43:44 -05:00
Jing-wei Wu
c9e6661799 Bug 1401871 - Check if menu item(home_add_to_launcher) exists or not before accessing it. r=nechen
We temporarily hide `home_add_to_launcher` in API 26, which means directly accesses it without checking
if it exists or not would cause NullPointerException.

MozReview-Commit-ID: KXnP81ZZa6u

--HG--
extra : rebase_source : 9189f3ab940d50702f82365824feff441faeef5a
2017-09-26 16:12:15 +08:00
Francois Marier
a6e2599b6e Bug 1394017 - Default to Safe Browsing V4 on Fennec.r=dimi
MozReview-Commit-ID: 5SPHH82pJBE

--HG--
extra : rebase_source : 59834eab341082064dfa75c7145ea43d32bc5230
2017-09-25 16:44:27 -07:00
Randall Barker
997340b492 Bug 1402594 - Fix regression where toolbar does not become visible when link is pressed r=jchen
MozReview-Commit-ID: B5ppPaQXo5e
2017-09-25 13:06:13 -07:00
Dylan Roeh
039c4964c8 Bug 1388750 - Add setActive() to GeckoView to make the DocShell active/inactive. r=snorp 2017-09-22 15:57:46 -05:00
Chenxia Liu
7471205583 Bug 1401179 - Add snackbar for bookmark add/remove actions on newtab. r=mcomella
MozReview-Commit-ID: 7DzoyDSWmVq

--HG--
extra : rebase_source : 4e214080a665d199a2e888c53a114d1585da4fee
2017-09-22 18:08:07 -07:00
Michael Comella
71347fe090 Bug 1402005: Add telemetry for Learn More clicks. r=liuche
MozReview-Commit-ID: GA4UBZ4fpK6

--HG--
extra : rebase_source : 4803bd6eb9c97d0ae89b6322658e2cf0273e4e20
2017-09-22 17:32:03 -07:00
Michael Comella
d1ac60c027 Bug 1402005: Add a learn more link to Top Sites. r=liuche
Explanation of our motivations are added in code comments.

In testing locally, the link I was sent to was:
- https://support.mozilla.org/1/mobile/58.0a1/Android/en-US/activity-stream

Existing code does not use a referrer so I didn't add one:
http://searchfox.org/mozilla-central/rev/56ad02e34d0d36ca4d5ccaa885d26aff270b8ff7/mobile/android/base/java/org/mozilla/gecko/preferences/LinkPreference.java#44

MozReview-Commit-ID: GTY1ku07uWy

--HG--
extra : rebase_source : fea160fdf5cff0ee5bfb99604b0e5ebe59d86ffb
2017-09-22 17:04:53 -07:00
Chenxia Liu
f13df1a160 Bug 1402481 - Reverse incorrect sign of margin calculation. r=mcomella
MozReview-Commit-ID: ICS81o8pLOE

--HG--
extra : rebase_source : 9ee338ea1726ff529a77af8a93ba5fda52caa698
2017-09-22 09:12:38 -07:00
Chenxia Liu
9a193dcc02 Bug 1402145 - Use adapter child position rather than view position. r=mcomella
MozReview-Commit-ID: ESi8MMYC1lp

--HG--
extra : rebase_source : 1179df68abae25fddf06983cfea75ff4737a4080
2017-09-22 09:09:23 -07:00
Michael Comella
ea35ecdd35 Bug 1400825: Collapse top sites if there are no sites. r=liuche
MozReview-Commit-ID: D0eNQBp6IZB

--HG--
extra : rebase_source : e482335230cb69acf2ca3009ea299cc380ae6200
2017-09-22 13:56:13 -07:00
Sebastian Kaspari
221a875e64 Bug 1400825 - Show option for removing suggested sites from top sites. r=mcomella
MozReview-Commit-ID: LyAqnlMfQvr

--HG--
extra : rebase_source : 330cb57bf3550223cd22ab1b242cbec427a9d1e1
2017-09-22 19:59:08 +02:00
Jim Chen
cc4705df59 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 : bd76d75fe26f9c3d8782475767e5a48fcd2cb9eb
2017-09-22 14:35:23 -04:00
Jim Chen
57cca85e76 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 : 1787cfde739eac742d28244ab29579a789997b81
2017-09-22 14:35:23 -04:00
Jim Chen
4402031ae6 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 : 49d9a06ec90543c49d03f298a7d78ea54bbe0a58
2017-09-22 14:35:23 -04:00
Jim Chen
a6188cfc76 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 : 3061623d3ed0309fff42c6dc66d0246e1d3000a3
2017-09-22 14:35:23 -04:00
Jim Chen
d4b6b64543 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 : c42a81bb9b46f79e0a1b827d16ac7494579017e6
2017-09-22 14:35:22 -04:00
Jim Chen
2216a28dff 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 : 683520b1b314ff0376a6fc843415a8485650e80b
2017-09-22 14:35:22 -04:00
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
Wes Kocher
a594331a16 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7VZH3r52Gc7
2017-09-19 14:53:33 -07:00
Eugen Sawin
0530ab8695 Bug 1401313 - [1.0] Change display mode key value type to integer. r=snorp 2017-09-19 22:21:07 +02:00
Andrew Halberstadt
7527e600f0 Bug 1392787 - Disable manifestparser tests using 'disabled' key instead of comment, r=jmaher
MozReview-Commit-ID: IQL7hWxQX9F

--HG--
extra : rebase_source : b78cbf7913fc1b0a27dfa085c38957e2bc2467d0
2017-08-22 16:56:02 -04:00
Grigory Kruglov
092b58e78c Bug 1398283 - Clean up Sync Preferences screen r=nalexander
MozReview-Commit-ID: GfdBBT2cSh7

--HG--
extra : rebase_source : 8cb32592ee62d0b797f1288e66897d034f87ecc9
2017-09-19 14:11:53 -04:00
Nick Alexander
101feef8f5 Bug 1398283 - Pre: Remove unused fxaccount_remote_error_* strings. r=nalexander
(by nalexander, from Bug 1375571)

This is follow-up to Bug 1220892, which just forgot to remove these strings.

MozReview-Commit-ID: 2WLa0AC8BZp

--HG--
extra : rebase_source : cc0d4711a0f4d38980a67ed64054cf96b5683a1b
2017-06-22 10:17:14 -07:00
Wes Kocher
c36e650732 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7Z1eEWwhzZC
2017-09-18 16:25:06 -07:00
Wes Kocher
519bb0922b Merge inbound to central, a=merge
MozReview-Commit-ID: EK8iFR1hSRp
2017-09-18 16:21:01 -07:00
Gregory Szorc
972bb63fcc Backed out changesets ef813898b5d3, ce228388aaf6, and c798f482b2c5 (bug 1396098) for violating TC cache constraints
CLOSED TREE

--HG--
extra : amend_source : 84120d6bacb5d72a9fbe41e4c3b405d63825da7c
extra : histedit_source : 8320c2193761b745f10850055ee74a3c9ac73615%2Cfbc2a28d8c5004a53305ef858ca5aea4245691e0
2017-09-18 13:30:43 -07:00
Jim Chen
3eba8b5c2d Bug 1393128 - 4. Add window to all Prompt usages; r=snorp
Add a `window` parameter to all Prompt.jsm usages, so the prompt will
appear in the correct window. This includes HelperAppDialog.js, which
was preventing the download chooser dialog from appearing in a custom
tab window.

The patch also moves `getActiveDispatcher` from GeckoViewPermission to
GeckoViewUtils, and makes several improvements to `getChromeWindow` and
`getDispatcherForWindow`. Prompt.jsm now uses the active
WindowDispatcher in the fallback scenario where we don't have a window.

MozReview-Commit-ID: KpAFMCZzQZp
2017-09-18 15:45:34 -04:00
Michael Comella
697050bf7c Bug 1400397: Do not try to reload failed highlight images. r=liuche
MozReview-Commit-ID: FnLcSfDrytS

--HG--
extra : rebase_source : ac6a26040dd0c1ccb33ebd0dc7e6a63b44d1a232
2017-09-15 16:10:31 -07:00
Michael Comella
05ce5f7951 Bug 1400397: Use Icons if overridePageURL fails to load. r=liuche
Icons apparently doesn't fade images, however, so it looks bad. Also, we try to
request the image each time we bind, so scrolling up and down will create
additional pop-in, which also sucks.

MozReview-Commit-ID: 246pokTMFl7

--HG--
extra : rebase_source : 8cb2750225d2e0331b1cfe25e02c766dd631e565
2017-09-15 14:31:29 -07:00
Nathan Froyd
f874a2ab1f 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
Botond Ballo
6c1b30b670 Bug 1400440 - Re-enable apz.frame_delay.enabled on Fennec Nightly. r=kats
MozReview-Commit-ID: E7Ukb76vMep

--HG--
extra : rebase_source : 5cfeccb1e21959e5614d0da70f60bf9ad548154f
2017-09-15 19:48:03 -04:00
Christoph Kerschbaumer
f7e4542213 Bug 1400347 - Update test_ext_tabs_captureVisibleTab.html to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-18 17:22:02 +02:00
Axel Hecht
4383c6ecf6 Backout revision e95f8bd7b519 and 84091f931dff (bug 1385227) for breaking Beta release automation.
--HG--
extra : rebase_source : 512c7603f1c600d9cd4ba4b17007ee9a9480e365
extra : histedit_source : be31be1ade27d0df5a25badc2def1a59f2a9c2fd%2Ca0db2bfd6e59dab72fb8c58063ea7592cfeb430e
2017-09-16 11:04:13 +02:00
Jing-wei Wu
1645a12b54 Bug 1383713 - [robocop] Find toolbar first and use it to find menu button. r=JanH,nechen
MozReview-Commit-ID: 3b6HijVb9nB

--HG--
extra : rebase_source : 6084ee8b3df799d20e990fd2f8c96eb12a751512
extra : source : 9a1adaff926e654260f0747b643b60a8018d7ef1
2017-09-15 17:50:58 +08:00
Sebastian Hengst
1d35d25f21 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 1Wa3jV6n7Wj
2017-09-16 11:35:02 +02:00
Phil Ringnalda
15b1226004 Backed out changeset 0659ef1d09b2 (bug 1400347) for Android bustage in test_ext_tabs_captureVisibleTab.html
MozReview-Commit-ID: Eu76oqbCNXx
2017-09-15 23:30:45 -07:00
Jim Chen
4752a47510 Bug 1395688 - Update jsshell for minifying Fennec JS code; r=nalexander
Update the host jsshell, which is used for minifying Fennec JS code, to
the one from the 56 release, so minification works again.

MozReview-Commit-ID: K87XQrAbC9p

--HG--
extra : rebase_source : 9ae4aad02ca11bdde0d2da9f0bb98fb5e83769d1
2017-09-14 20:46:34 -04:00
Michael Comella
ed9f361a69 Bug 1400072: Specify card size in onBind instead of onCreate. r=liuche
I believe this doesn't affect this bug because I think the ViewHolders are
recreated on rotation but for any other type of change, only bind will be
called so for correctness, we should update the size in bind.

MozReview-Commit-ID: 3ojO4TF89i4

--HG--
extra : rebase_source : 6376aca2f6858261ca913fa0f613cbdb9be2b4bf
2017-09-15 14:05:21 -07:00
Michael Comella
37a2bf0cba Bug 1400072: Rm unused variable tilesMargin. r=liuche
MozReview-Commit-ID: G6Z3dUnKWLl

--HG--
extra : rebase_source : 134037803d696b36a81fa9dcb962248a1e79b063
2017-09-15 10:51:50 -07:00