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

24695 Коммитов

Автор SHA1 Сообщение Дата
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
Michael Comella 57a0980863 Bug 1400072: Cache tilesSize in swapCursor. r=liuche
In this sense, it acts as a refresh function, binding all of our UI state at
the same time, helping to prevent bugs where the UI gets out of sync.

For example, this fixes this bug because now the tileSize gets updated when we
swap the cursor, not just when we the page is initially constructed.

MozReview-Commit-ID: 7V2gFyiOJ1R

--HG--
extra : rebase_source : 4e0f35f391d8174f02930a0a39a8981bc048c8ee
2017-09-15 10:48:28 -07:00
Michael Comella 7c7b0a36c3 Bug 1400072: Pass in tilesSize when needed, rather than caching. r=liuche
This will help prevent the cache from going out of date.

MozReview-Commit-ID: GdUXF0oOSiK

--HG--
extra : rebase_source : f6c0e40c150ec1419b5fecb5ef6b8e5f8b534373
2017-09-15 10:39:36 -07:00
Michael Comella 3ff57031df Bug 1400072: Make num tiles a constant. r=liuche
Since it's a constant, there's no reason to keep passing it around everywhere.
Also, the code that relied on it being a dynamic value is probably broken so
there's no reason to continue passing it around.

That being said, there is bug 1397854, which would have TopSites be 4 rows with
no pages, but this code is quite messy so I think it'd be worth trying to
refactor this code further before trying to implement that.

MozReview-Commit-ID: IoMNHVt67c4

--HG--
extra : rebase_source : 7ea79634c5e03fdc17a9df977f231f48244c3ca3
2017-09-15 10:30:08 -07:00
Michael Comella 38c01de4ff Bug 1400072: Move TOP_SITE_COLUMNS/ROWS -> TopSitesPage. r=liuche
The TopSitesPage should really own details about the appearance of top sites.

MozReview-Commit-ID: LPfHGcUTv00

--HG--
extra : rebase_source : 4a58a064889664fb4d220f53c1af90ad02e85d5c
2017-09-15 10:26:19 -07:00
Chenxia Liu 1aeee1113f Bug 1393174 - Rename FirstrunRegular.Link to Link. r=mcomella
MozReview-Commit-ID: 6UEGfBcdB1M

--HG--
extra : rebase_source : 844dc1a7b970b9194621dec7978d3c1645aa2c79
2017-09-14 17:59:28 -07:00
Chenxia Liu cee66cd729 Bug 1393174 - Add "More" link to Pocket AS title. r=mcomella
MozReview-Commit-ID: kromR87f43

--HG--
extra : rebase_source : f063e6f541b3593e660a7dd0a148370b212f0e06
2017-09-14 17:54:50 -07:00
Sebastian Hengst 79fa2520bf merge mozilla-central to autoland. r=merge a=merge 2017-09-15 21:34:39 +02:00
Sebastian Hengst 6d3d62f7fb merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: FmdeaRYDVqR
2017-09-15 21:33:32 +02:00
Ryan VanderMeulen e1d23c6fa7 Merge inbound to m-c. a=merge 2017-09-15 14:20:02 -04:00
Dylan Roeh 7cbedb9bf9 Bug 1400059 - Fix trailing whitespace r=me 2017-09-15 11:13:48 -05:00
Dylan Roeh 65afe5f455 Bug 1400059 - Replace strings in ProgressListener.SecurityInformation with ints. r=snorp 2017-09-15 09:00:26 -05:00
Christoph Kerschbaumer cc009d1289 Bug 1400347 - Update test_ext_tabs_captureVisibleTab.html to comply with new toplevel data: URI navigation policy. r=bz 2017-09-15 21:01:00 +02:00
Sebastian Hengst 1fe4eaac6c Backed out changeset 906b8bdd2002 (bug 1400347) for failing talos tpaint. r=backout 2017-09-15 22:50:45 +02:00
Christoph Kerschbaumer eede494d3a Bug 1400347 - Update test_ext_tabs_captureVisibleTab.html to comply with new toplevel data: URI navigation policy. r=smaug 2017-09-15 21:01:00 +02:00
Ryan VanderMeulen 17c17bd036 Merge m-c to inbound. a=merge 2017-09-15 14:20:59 -04:00
Sebastian Hengst ec66bbd3e1 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4dRrVdftJVy
2017-09-15 11:05:11 +02:00
Sebastian Hengst 09dd8ba13f merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ee605ac050c0532521f96bdeda5ef20fb0099519
2017-09-15 00:18:43 +02:00
Jim Chen 184f44019c Bug 1367077 - Follow-up to fix bustage; r=me on CLOSED TREE 2017-09-14 18:07:10 -04:00
Jim Chen 361dc2b952 Bug 1367079 - 6. Fix testAccessibleCarets; r=me
Fix testAccessibleCarets and enable it for non-Nightly builds. r=me for
test changes.

MozReview-Commit-ID: EjNwzb5bETy
2017-09-14 17:50:58 -04:00
Jim Chen 69541254bf Bug 1367079 - 5. Add TextSelection support in custom tabs and PWA; r=snorp
Add TextSelection support in custom tabs and PWA.

MozReview-Commit-ID: AcHjMfJ8onU
2017-09-14 17:50:58 -04:00
Jim Chen db5353e4ca Bug 1367079 - 4. Move ActionBarHandler usage out of browser.js; r=snorp
Use ActionBarHandler in BrowserCLH.js instead of browser.js, so it can
handle text selection for all windows. Also update ActionBarHandler to
reflect the new usage and to support multiple windows.

MozReview-Commit-ID: G8sKu2XyAAG
2017-09-14 17:50:58 -04:00
Jim Chen 2bcdfe1078 Bug 1367079 - 3. Add utility for registering lazy WindowEventDispatcher listener; r=snorp
Add `GeckoViewUtils.registerLazyWindowEventListener` that, similar to
`addLazyEventListener`, will register a lazy event listener with the
per-window EventDispatcher.

MozReview-Commit-ID: AX3EQGpmdw
2017-09-14 17:50:58 -04:00
Jim Chen 1aba9fd88f Bug 1367079 - 2. Move Share:Text listener to GeckoApplication; r=snorp
Move the "Share:Text" event listener from GeckoApp to GeckoApplication,
so ActionBarHandler.js can use it for the Share action from any window.

MozReview-Commit-ID: 8w1llJy4pwy
2017-09-14 17:50:58 -04:00
Jim Chen 66810d0dfe Bug 1367079 - 1. Update TextSelection implementations for GeckoView; r=snorp
Make TextSelection implementations not depend on GeckoApp. Instead, make
them use GeckoView's EventDispatcher directly for communicating with
Gecko.

MozReview-Commit-ID: EygAt3D9HMI
2017-09-14 17:50:58 -04:00
Jim Chen 0b84fb8f13 Bug 1398409 - 3. Add FormAssistPopup to custom tabs; r=snorp
Add and use FormAssistPopup in custom tabs to show autocomplete lists
and form validation messages.

MozReview-Commit-ID: AvK70MLQNVN
2017-09-14 17:50:57 -04:00
Jim Chen bee5ada2ca Bug 1398409 - 2. Use event callback to communicate FormAssistPopup actions; r=sebastian
Use event callbacks instead of separate events to deliver
FormAssistPopup replies back to FormAssistant. This lets us better
handle having multiple FormAssistPopup instances across Fennec, custom
tabs, and PWAs.

FormAssistant._currentInputElement is removed because it does not allow
us to have multiple concurrent popups. Instead, we track the current
element through the event callback closure.
FormAssistant._currentInputValue is also removed for similar reasons,
and I don't think it was really necessary.

MozReview-Commit-ID: DdeMBGCxDou
2017-09-14 17:50:57 -04:00
Jim Chen 3488170d4d Bug 1398409 - 1. Move FormAssistant out of browser.js; r=sebastian
To support FormAssistPopup in custom tabs, we need to move the
FormAssitant object out of browser.js and into its own separate file.
BrowserCLH.h in turn loads FormAssistant.js when necessary.

MozReview-Commit-ID: 7CFQ9R16P4J
2017-09-14 17:50:57 -04:00
Jim Chen 2da0bfd1b8 Bug 1367077 - 3. Move form fill event listeners out of browser.js; r=sebastian
Move the form fill event listeners out of browser.js and into
BrowserCLH.js, and update them to support chrome windows, so we can
handle form fill events for Fennec, custom tabs, and PWAs.

MozReview-Commit-ID: Fb5gWmGvxfE
2017-09-14 17:50:57 -04:00
Jim Chen 2ea84d0359 Bug 1367077 - 2. Move PromptService startup to BrowserCLH; r=snorp
Use the BrowserCLH for PromptService startup, to consolidate startup
handling code and also to delay loading PromptService.

MozReview-Commit-ID: 25UgVH7wrrs
2017-09-14 17:50:54 -04:00
Jim Chen 3dfb8bc0dc Bug 1367077 - 1. Move startup utility functions into GeckoViewUtils; r=snorp
Move `addLazyGetter` and `addLazyEventListener` utility functions from
GeckoViewStartup.js into GeckoViewUtils.jsm, so they can be used for
both Fennec and standalone GeckoView.

Also switch to "chrome-document-loaded" for loading
DownloadNotifications because that's later in the startup sequence.

MozReview-Commit-ID: 1caMtufkHGR
2017-09-14 17:50:54 -04:00
Andrew Swan d249202ee5 Bug 1391579 Part 4: Handle the in-app extension update flow for Fennec r=jwu,sebastian
The mechanics implemented here involve listening for extension updates that
require new permissions, notifying the user with icons attached to the
top level Add-ons menu and to the individual item in about:addons, and
then showing the permissions dialog when the user asks to update.

The basic plumbing is mostly in ExtensionPermissions.js, this also
required a fair amount of change to aboutAddons to accomodate new UI
elements, and to handle updates gracefully.

MozReview-Commit-ID: Jkgc3OVYtnc

--HG--
extra : rebase_source : 5df3e12df8c422285fbc25c459dc420b395fa824
2017-09-08 16:48:22 -07:00
Andrew Swan 7fa115cedc Bug 1391579 Part 3: Add update indicator to top-level Add-ons menu entry r=jwu,sebastian
MozReview-Commit-ID: 937Zsd6yfBO

--HG--
extra : rebase_source : e54d9942148d5dcba420f119f4acd6e805acea77
2017-09-11 10:31:51 -07:00
Ethan a14a582ea5 Bug 1397938 - Download protection whitelist and blacklist are not available for the Android platform. r=francois 2017-09-14 14:26:18 +08:00
Jing-wei Wu 5dec895382 Bug 1400101 - [robocop] Find toolbar first and use it to find menu button. r=JanH,nechen
Sometimes Robocop is confused when are multiple `R.id.menu` UI components shown on screen,
one is the menu button on toolbar and otehrs are context menus on Activity Stream.

To access the menu on toolbar, a simple fix is access toolbar first and use it to find its child.

MozReview-Commit-ID: Jw4sTLeR3li

--HG--
extra : rebase_source : 337c3df3ffd36a4d26547b994aba3ce7647bafc8
2017-09-15 15:58:10 +08:00
Grigory Kruglov 4d6b93fc29 Bug 1399904 - Surface detailed profile unpickling exceptions r=nalexander
MozReview-Commit-ID: Cr7F7haUpog

--HG--
extra : rebase_source : 13ec380c7bf64eec28c43e29335f89aa57d48052
2017-09-14 13:29:12 -07:00
Michael Comella d6da7aa96e Bug 1397888 - review: Rename topsite_pin -> as_pin_with_background. r=mcomella
MozReview-Commit-ID: 60KvwxhSmKN

--HG--
rename : mobile/android/app/src/photon/res/drawable-hdpi/topsite_pin.png => mobile/android/app/src/photon/res/drawable-hdpi/as_pin_with_background.png
rename : mobile/android/app/src/photon/res/drawable-xhdpi/topsite_pin.png => mobile/android/app/src/photon/res/drawable-xhdpi/as_pin_with_background.png
rename : mobile/android/app/src/photon/res/drawable-xxhdpi/topsite_pin.png => mobile/android/app/src/photon/res/drawable-xxhdpi/as_pin_with_background.png
extra : rebase_source : e399ac698285c57c804d8ca3c20c8476f5fecd84
2017-09-14 12:33:52 -07:00
Michael Comella 594582be11 Bug 1397888: Display pin icon in top-left of top sites card if pinned. r=liuche
I don't scale the pin size/margins based on the dynamic tile size. This could
mean we get into situations where the pin crowds out the top site tile but I
don't know if this would happen in practice.

MozReview-Commit-ID: Ct8EP3dPr6N

--HG--
extra : rebase_source : b527cff1faf5a565d1cf309ce3063b8d23553150
2017-09-13 17:16:40 -07:00
Michael Comella 955004429a Bug 1397888: Add top site pin assets. r=liuche
MozReview-Commit-ID: IeBj25W9Jde

--HG--
extra : rebase_source : 66d7af40cd1270ebfbe3c3442b067ce1f1ff1fce
2017-09-13 17:04:15 -07:00
Michael Comella 43c8a4dfe0 Bug 1397888: Remove pin icon from top sites title. r=liuche
MozReview-Commit-ID: GTmfUzvD0k2

--HG--
extra : rebase_source : bd9472e3f6aaa21a9694736afa35fda540b3a0ca
2017-09-13 16:58:39 -07:00
Julian_Chu 740dec1693 Bug 1391579 Part 2: Add MenuItemIcon r=jwu,sebastian
GeckoMenu always create view from MenuItemDefault. Now lets adding a
new type for MenuItem which will display a Drawable in right side.

MozReview-Commit-ID: F7zVDze0RaP

--HG--
extra : rebase_source : c913ef385aaf99c948edb252136c2b7f39526730
extra : intermediate-source : 2c098c90a58faee8b928eb1cec5cb841897c57e2
extra : source : b107e0b122445393a804116d763e2f13da6b6036
2017-08-24 01:15:22 -07:00
Julian_Chu 1442ca8565 Bug 1391579 Part 1: add attribute itemType to GeckoMenuItem r=jwu,sebastian
MozReview-Commit-ID: CelYcXveCvO

--HG--
extra : rebase_source : ec74a1e70148ce4a3d37241d26c0ed293abb8cfa
extra : intermediate-source : 6150b75bc69304b66fa16c50c65ac89dad59d453
extra : source : 85f5d95bb32284a8ae589f2019a955f2941d9209
2017-08-24 01:15:04 -07:00
Nevin Chen 23c6850fa7 Bug 1399014 - Allow 'enable tracking protection in normal browsing' for release and beta channel. r=maliu
In Android,  "privacy.trackingprotection.state" is not a "real" pref name, but it's used in the setting menu and browser.js.
 "privacy.trackingprotection.state" and "privacy.trackingprotection.pbmode.enabled"(deleted) in Android is init in Helper.getPrefs and  passed to browser.js when changed.
The real pref for tacking protection are two Gecko pref in browser.js. They are:
           "privacy.trackingprotection.pbmode.enabled"
           "privacy.trackingprotection.enabled"
All prefs in Android are delegated to them. The Android setting UI simply reflects the single source of truth (Gecko pref).
That's the reason why the two Android perfs use android:persistent="false"

MozReview-Commit-ID: 5ehBhtNM2Tx

--HG--
extra : rebase_source : 02ad1f3f778589ce05529f22d7d7bee03e5970e5
2017-09-14 15:16:55 +08:00
Ryan VanderMeulen ecdacdf4a0 Merge m-c to autoland. a=merge 2017-09-15 14:20:34 -04:00
Andrew Swan 999003a54c Bug 1399791 Make Android extension permission dialog modal r=walkingice
MozReview-Commit-ID: Hb3dJU85z4v

--HG--
extra : rebase_source : 1475f03b5fa929c2dcb001224194f1edb0f3c28d
2017-09-14 11:29:18 -07:00
Andrew Swan fab1c7aa9c Bug 1400129 Remove unused accessKey l10n property r=flod
MozReview-Commit-ID: 3K5Mt2blZgl

--HG--
extra : rebase_source : 9f43f1a09951d867f40d06e8831807fbbc7e8746
2017-09-15 09:50:08 -07:00
friedger f6609d20ae Bug 1367069 - "New tab" in the search widget doesn't open a custom homepage even when "Also use for new tabs" is set r=maliu
add check for external url in onNewIntent, use Tab.addTabs() for no url or about:home

MozReview-Commit-ID: AX5pj52lC8i

--HG--
extra : rebase_source : a72afb060dcdea4678969063ee4568186ea863d6
2017-06-08 13:31:05 +02:00
Sebastian Hengst 7bde19fe5a Backed out changeset a3964204faf6 (bug 1398283) for failing android lint. r=backout 2017-09-19 20:07:39 +02:00
Sebastian Hengst 734fdf1202 Backed out changeset 0408636c7ea9 (bug 1398283) 2017-09-19 20:07:03 +02:00
Grigory Kruglov d5dc3841a3 Bug 1398283 - Clean up Sync Preferences screen r=nalexander
MozReview-Commit-ID: GfdBBT2cSh7

--HG--
extra : rebase_source : 2e41f92a1e84ef119c85c10a716a0548c63fb6c3
2017-09-18 19:24:36 -04:00
Nick Alexander 8e6b1f7796 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
James Willcox 2aa883a579 Bug 1401208 - Change default web app scope to the start_url r=esawin
MozReview-Commit-ID: Jvbru5oRYDH

--HG--
extra : rebase_source : c5578a699ae3d9b1b23582431bb5605883e31163
2017-09-19 09:45:04 -05:00
Erica Wright 5203d976cb Bug 1394460 - Update illustration and copy for error: invalid URL. ui-r=shorlander r=johannh
MozReview-Commit-ID: 8mMUvlOzygj

--HG--
extra : rebase_source : 6b93f7de2bbf55c330c4c25f08555386362dce04
2017-08-29 16:55:31 -04:00
Nevin Chen 9b9bc2d6b3 Bug 1379793 - Only allow pre header as title. r=jwu
MozReview-Commit-ID: 294jTWWyL69

--HG--
extra : rebase_source : f722967331e2c0620d1b26b6ad2217108ffcbcde
2017-09-18 18:08:49 +08:00
Jing-wei Wu 6d01f21ded Bug 1400159 - Part 2: Update the QR code icons. r=nechen
MozReview-Commit-ID: 9SGKZDsto5g

--HG--
extra : rebase_source : fb027c93380cf35ebf511ed7e960d735e164948c
2017-09-19 14:11:05 +08:00
Jing-wei Wu 7e5e42f97a Bug 1400159 - Part 1: Update the notification icons. r=nechen
MozReview-Commit-ID: A7kX27auv1j

--HG--
rename : mobile/android/app/src/photon/res/drawable-hdpi-v11/ic_status_logo.png => mobile/android/app/src/photon/res/drawable-hdpi/ic_status_logo.png
rename : mobile/android/app/src/photon/res/drawable-xhdpi-v11/ic_status_logo.png => mobile/android/app/src/photon/res/drawable-xhdpi/ic_status_logo.png
rename : mobile/android/app/src/photon/res/drawable-xxhdpi-v11/ic_status_logo.png => mobile/android/app/src/photon/res/drawable-xxhdpi/ic_status_logo.png
rename : mobile/android/app/src/photon/res/drawable-xxxhdpi-v11/ic_status_logo.png => mobile/android/app/src/photon/res/drawable-xxxhdpi/ic_status_logo.png
extra : rebase_source : 6e6b8bdd297d94c61fb94ae0cb7878fdb5a96522
2017-09-19 13:58:53 +08:00
Sebastian Hengst 5a4ef70adc Backed out changeset 1bc5e32dd5f6 (bug 1399014) for failing android lint. r=backout 2017-09-14 12:29:35 +02:00
Sebastian Kaspari e595bb6c11 Bug 1396941 - SuggestedSitePreparer: Update local cache if suggested sites change. r=mcomella
MozReview-Commit-ID: 2QMqGHQaBSP

--HG--
extra : rebase_source : 969a52795a996d556312619ad2975829992ab9d6
2017-09-13 19:57:19 +02:00
Nevin Chen a12e2ace91 Bug 1399014 - Alow 'enable tracking protection in normal browsing' for release and beta channel. r=maliu
In Android,  "privacy.trackingprotection.state" is not a "real" pref name, but it's used in the setting menu and browser.js.
 "privacy.trackingprotection.state" and "privacy.trackingprotection.pbmode.enabled"(deleted) in Android is init in Helper.getPrefs and  passed to browser.js when changed.
The real pref for tacking protection are two Gecko pref in browser.js. They are:
           "privacy.trackingprotection.pbmode.enabled"
           "privacy.trackingprotection.enabled"
All prefs in Android are delegated to them. The Android setting UI simply reflects the single source of truth (Gecko pref).
That's the reason why the two Android perfs use android:persistent="false"

MozReview-Commit-ID: 5ehBhtNM2Tx

--HG--
extra : rebase_source : ef38ab9ac20408cbe0a0ad9ccd12c097e2ee6861
2017-09-14 15:16:55 +08:00
Sebastian Hengst 65bd75b8f9 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 6nttXoSo3Fh
2017-09-14 11:04:14 +02:00
Wes Kocher ff68b95b87 Merge inbound to central, a=merge
MozReview-Commit-ID: ClVRh99eIUo
2017-09-14 00:03:28 -07:00
Sebastian Hengst 123fb86836 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-14 00:15:34 +02:00
Sebastian Hengst 006a58c35d merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 2iVDKexRjxu
2017-09-13 23:58:43 +02:00
James Willcox 94fbc88aeb Bug 1395557 - Show the right icon for mixed passive mode in Custom Tabs r=esawin
MozReview-Commit-ID: GHXVl3BNW9Q
2017-09-13 15:36:52 -05:00
James Willcox 2278d059f8 Bug 1393504 - Ellipsize URL in Custom Tabs in the middle r=nechen
MozReview-Commit-ID: B6SqqP0TAE8
2017-09-13 15:36:41 -05:00
Grigory Kruglov 91f275f5c3 Bug 1399039 - Don't initialize GlobalPageMetadata more than once r=sebastian
MozReview-Commit-ID: 6VqkvDrEc5K

--HG--
extra : rebase_source : 8cb917de8c7605097abaa69caeca0c39bd50ecf5
2017-09-12 20:28:36 -04:00
Eugen Sawin efd71c501c Bug 1329154 - [1.0] Add GeckoView BrowserApp stub to support WebExtensions. r=snorp 2017-09-13 15:32:11 +02:00
Sebastian Hengst c484c2bade Backed out changeset 3af67a62be1b (bug 1367077) for failing mochitest-chrome's test_hidden_select_option.html and test_select_disabled.html on Android. r=backout 2017-09-13 19:23:56 +02:00
Sebastian Hengst 5da3d8cab9 Backed out changeset 215f47ca940c (bug 1367077) 2017-09-13 19:23:13 +02:00
Sebastian Hengst af50509c93 Backed out changeset 8a3e6fbd6511 (bug 1367077) 2017-09-13 19:23:08 +02:00
Jan Henning 3511f90698 Bug 1398599 - Use default network access StrictMode policy on developer builds, too. r=snorp
Our user-facing builds crash if we manage to slip in some main thread network access by mistake (which is the default Android StrictMode policy since Honeycomb), so our developer builds shouldn't be more forgiving here.

MozReview-Commit-ID: 6bZwwwrSb3q

--HG--
extra : rebase_source : 8f4258de89f141ce6d3b2b141b1e4daa1dc6f6aa
2017-09-12 22:07:14 +02:00
Sebastian Hengst 4ecac16e72 Backed out changeset 0aff84a0a8af (bug 1388396) for failing linter android-test's TestResizingProcessor. testBitmapIsNotScaledMoreThanTwoTimesTheSize. r=backout 2017-09-13 09:51:46 +02:00
Sebastian Hengst ee8b8f5536 Backed out changeset 8756322ebb4a (bug 1388396) 2017-09-13 09:50:35 +02:00
Sebastian Hengst d27d1219be Backed out changeset 77f982a2f17b (bug 1388396) 2017-09-13 09:50:29 +02:00
Sebastian Hengst 30e285a9cb Backed out changeset 44fa7b379742 (bug 1388396) 2017-09-13 09:50:24 +02:00
Sebastian Hengst d0007e88ac Backed out changeset 3300c15011d3 (bug 1388396) 2017-09-13 09:50:18 +02:00
Jim Chen f28e8f36e0 Bug 1367077 - 3. Move form fill event listeners out of browser.js; r=sebastian
Move the form fill event listeners out of browser.js and into
BrowserCLH.js, and update them to support chrome windows, so we can
handle form fill events for Fennec, custom tabs, and PWAs.

MozReview-Commit-ID: Fb5gWmGvxfE

--HG--
extra : rebase_source : 1ecb7f83bc8022cb3fef1a5ffa9d9d084b837bf4
2017-09-13 11:52:04 -04:00
Jim Chen a8bb402821 Bug 1367077 - 2. Move PromptService startup to BrowserCLH; r=snorp
Use the BrowserCLH for PromptService startup, to consolidate startup
handling code and also to delay loading PromptService.

MozReview-Commit-ID: 25UgVH7wrrs

--HG--
extra : rebase_source : 162ee97db80608caf3c5cd93734764bc87b99c6f
2017-09-13 11:51:55 -04:00
Jim Chen 14e212570a Bug 1367077 - 1. Move startup utility functions into GeckoViewUtils; r=snorp
Move `addLazyGetter` and `addLazyEventListener` utility functions from
GeckoViewStartup.js into GeckoViewUtils.jsm, so they can be used for
both Fennec and standalone GeckoView.

Also switch to "chrome-document-loaded" for loading
DownloadNotifications because that's later in the startup sequence.

MozReview-Commit-ID: 1caMtufkHGR

--HG--
extra : rebase_source : eea04495bd96e98a83d4874709f2a88d989ee466
2017-09-13 11:51:55 -04:00
Jan Henning a1632b557b Bug 1399148 - Check we actually have an Editable before searching for a span. r=jwu
MozReview-Commit-ID: EiUO8wWSyLB

--HG--
extra : rebase_source : f1775d6082e43f3984086143081681f4d6a3e5bc
2017-09-12 19:20:50 +02:00
Michael Comella 8e269aa34d Bug 1398834: Add telemetry for new browser menu pin site. r=liuche
MozReview-Commit-ID: 4GYXLk5yhbt

--HG--
extra : rebase_source : 7095891695d70bae4d20d7f1d37742e3bf518113
2017-09-12 17:03:23 -07:00
Michael Comella 3b87250c54 Bug 1398834: Add Pin to Top Sites page menu item. r=liuche
MozReview-Commit-ID: 3YK2V7zrUDC

--HG--
extra : rebase_source : 44c9cd398c60e9fed9b2d25a8e761872e748fc92
2017-09-12 15:31:15 -07:00
Michael Comella 49694a507c Bug 1398834: Add pin/unpin context menu strings. r=liuche
MozReview-Commit-ID: CRxVsxacICV

--HG--
extra : rebase_source : bfe0ee95d6731bf920566fde093160f5d122d6dc
2017-09-12 15:28:16 -07:00
Jing-wei Wu ddba8104f7 Bug 1398657 - Part 2: Remove redundant drawables. r=nechen
MozReview-Commit-ID: JlIsM8Fr9j7

--HG--
extra : rebase_source : 828a741b5ab4d4d032c487aa5591980be84a1054
extra : source : 631f869ba2bd3fcd9a3de62ea0af38acad65a3c5
2017-09-12 16:42:08 +08:00
Jing-wei Wu 3bcdf661d6 Bug 1399384 - Part 3: Adjust edit layout padding and move values from layout to different styles.xml. r=nechen
MozReview-Commit-ID: BgSPLIrMpdT

--HG--
extra : rebase_source : 10cd9c699019395e4d239b8f7aabf23174b21395
2017-09-13 17:25:30 +08:00
Jing-wei Wu 4dab895a82 Bug 1399384 - Part 2: Status bar color refinements. r=nechen
We would like to change the status bar color based on different situation:

- For mobile, the status bar color is
  #F7FAFC in normal mode,
  #38383D in private mode, and
  #272727 in tabs tray page

- For tablet, the status bar color is always #272727

MozReview-Commit-ID: Ala5ZOYJ8Ad

--HG--
extra : rebase_source : f49de0c48ec45b210cea092eb0cdce6f1d9e3d39
2017-09-13 17:17:25 +08:00
Jing-wei Wu 50acf01d7d Bug 1398657 - Part 1: Remove mdpi drawables. r=nechen
MozReview-Commit-ID: IvHdQELuIGt

--HG--
extra : rebase_source : 80870a4254ef37c2f4de2eb05cd6a892caf91d8b
extra : source : 1814487fa3359aa2014c8eb104f38629823b7d30
2017-08-29 17:35:43 +08:00
Jing-wei Wu 237a2cad61 Bug 1380266 - Keep identical click behavior between HomeAsUpIndicator and back button. r=nechen
Call `onBackPressed()` when `android.R.id.home` is selected to make sure the same click behavior between
HomeAsUpIndicator and back button.

MozReview-Commit-ID: 3tTKtbDTugg

--HG--
extra : rebase_source : 5b59a4c23efb30bade427a28242885480cbedf77
2017-09-11 10:23:25 +08:00
Grigory Kruglov dda7d4f66c Bug 1368147 - Support renaming an account in response to profileUpdate events r=nalexander,sebastian
MozReview-Commit-ID: 7rQzTN0jEWb

--HG--
extra : rebase_source : 755d1026a3d9bbccf25c9fe1f56d768b44f726b8
2017-09-12 19:09:00 -04:00
Grigory Kruglov 8b07f64d59 Bug 1368147 - Migrate sync and reading list preferences to be keyed by account UID r=nalexander,sebastian
Due to how we access our prefs files (read: all over the place), the idea here is to perform the migration whenever
some component actually attempts to get the prefs. This guarantees that every consumer of prefs will receive the
correct version, and we won't accidentally duplicate our shared prefs either.

I would have preferred to just perform this migration at a set point.
We have a "services upgrade point" - FxAccountUpgradeReceiver - which receives a "package upgraded" intent and kicks
off some async work. Unfortunately, we can't guarantee that its tasks won't overlap with our uses of prefs
(either in the background or foreground code).

MozReview-Commit-ID: AWQ4IY7i32F

--HG--
extra : rebase_source : 7f585e8a71291fb812937b4846ce790a9b332fac
2017-09-12 16:00:37 -04:00
Grigory Kruglov 01f05d6c69 Bug 1368147 - Pre: Don't forget to call super.finalize in finalize override r=sebastian
MozReview-Commit-ID: B7gatdHlCDb

--HG--
extra : rebase_source : 87bb00846ba3f950912038c7bad68f028c905d97
2017-08-30 20:35:33 -04:00
Grigory Kruglov 6ffd1e0bc5 Bug 1368147 - Pre: remove unused code r=sebastian
MozReview-Commit-ID: IeEHvmObCvE

--HG--
extra : rebase_source : 962f11d06de1b9f1cd15ff9c5a368abd8e7d6258
2017-08-30 20:38:01 -04:00
Grigory Kruglov a87a4ee418 Bug 1368147 - Pre: tighten up access levels in AndroidFxAccount r=sebastian
MozReview-Commit-ID: GowyLH7roFF

--HG--
extra : rebase_source : 914b4a6d139a7b82ef121609ff86bc730d751b6f
2017-08-30 20:37:53 -04:00
Jing-wei Wu 4e282e5040 Bug 1399384 - Part 1: Change placeholder text color from #737373 to #B2B2B2. r=nechen
MozReview-Commit-ID: 2tnxN3Jp6ZQ

--HG--
extra : rebase_source : 964fc9d14ca42001d5865ac177ac123ef0a04ac9
extra : source : f6f5859bd6934713893eccfe0a6986b5dce7720e
2017-08-29 13:57:53 +08:00
Chenxia Liu 3d73733afa Bug 1380811 - Add telemetry to collect boolean state for toggle preference. r=francois,mcomella
MozReview-Commit-ID: DQUkuWQUouM

--HG--
extra : rebase_source : 070a2872afc8c4163876cc00c347ea26ddd591c7
2017-09-11 18:42:29 -07:00
Michael Comella 409089d342 Bug 1388396 - review: Add TestMinimumSizeProcessor. r=mcomella
MozReview-Commit-ID: ADaJL88YZLg

--HG--
extra : rebase_source : 586e6986b2ee7256a62651504acead18bc030fac
2017-09-12 11:33:33 -07:00
Michael Comella 148e06a804 Bug 1388396: Add MinimumSizeProcessor; .forActivityStream takes effect. r=sebastian
This patch is necessary for the previous changesets to take effect.

MozReview-Commit-ID: 98IemAEgbmi

--HG--
extra : rebase_source : 2609d0168b525b96a4392c15430a7dc85323da59
2017-09-11 17:41:33 -07:00
Michael Comella 5d71a2b23c Bug 1388396: Use IconRequestBuilder.forActivityStream in AS UI. r=sebastian
MozReview-Commit-ID: jLVtXk0hJZ

--HG--
extra : rebase_source : 29840b133c978e7d89551145a6bf07915f990751
2017-09-11 17:27:22 -07:00
Michael Comella e272061af1 Bug 1388396: Add IconRequestBuilder.forActivityStream. r=sebastian
MozReview-Commit-ID: HwCjdyB7o7q

--HG--
extra : rebase_source : 0b9147f934bbbde72c5302baeae6e467012ba688
2017-09-11 17:25:10 -07:00
Michael Comella f9e376554d Bug 1388396: Increase max favicon scale factor to 3. r=sebastian
This is part 1 of the good-enough approach: see the MAX_SCALE_FACTOR comment
as to what we're aiming for. The next changeset will discard any icons that
do not look good being scaled so much.

The MAX_SCALE_FACTOR field is non-private because it's used in the next
changeset.

MozReview-Commit-ID: HGzdQBEuMAy

--HG--
extra : rebase_source : 9ac7ad89e0866a3af89c4086ae59255ebedeb31c
2017-09-11 17:13:07 -07:00
Wes Kocher 9eabfb255e Backed out 4 changesets (bug 1367077) for android mochitest failures in passwordmgr/ a=backout CLOSED TREE
Backed out changeset 0509b09c11fa (bug 1367077)
Backed out changeset 8df5e093dd92 (bug 1367077)
Backed out changeset c6300312d42a (bug 1367077)
Backed out changeset 83cf26e44284 (bug 1367077)

MozReview-Commit-ID: JFwOEdTq7bL
2017-09-12 16:41:19 -07:00
Michael Comella 8eb1dc621f Bug 1391413: Show 2 lines of top sites titles for distributions. r=sebastian
MozReview-Commit-ID: JcW22s8oDMG

--HG--
extra : rebase_source : 10381d6ee029b6e54a5d8fdddf7960515635b688
2017-09-11 13:27:54 -07:00
Michael Comella 8e5a77a28d Bug 1391413: Add comment clarifying use of PREFS_IS_FIRST_RUN. r=sebastian
MozReview-Commit-ID: 465V6Q8Ig1D

--HG--
extra : rebase_source : c8767e78adc54e00fef97a1a968c3a187c3d8e18
2017-09-07 17:11:16 -07:00
Michael Comella 84e3ee1e92 Bug 1391413: Always show page titles for distributions. r=sebastian
This is the desired behavior but as per comment 8, it breaks a few existing
distributions' titles so we'll display two lines for those distributions in
the upcoming changesets.

MozReview-Commit-ID: CKFbHXbs3HT

--HG--
extra : rebase_source : 90c3a58b05c1a6fcaff56e7524b3d0f6c851e9cd
2017-09-07 15:30:00 -07:00
Michael Comella a13f081faf Bug 1391413: Add SuggestedSites.cachedDistributionSites and accessors. r=sebastian
MozReview-Commit-ID: HBqKc8a0tNJ

--HG--
extra : rebase_source : 432c1cdab9bc37473cb9da72b066153a83c45139
2017-09-07 15:18:41 -07:00
Michael Comella e61c00ac24 Bug 1391413: Remove unused Site constructor. r=sebastian
MozReview-Commit-ID: F7cnUsBsmoR

--HG--
extra : rebase_source : ac78d69222924cd043e055f6764a98b09db4206e
2017-09-07 13:36:08 -07:00
Jim Chen cf0850fd68 Bug 1367077 - 3. Move form fill event listeners out of browser.js; r=sebastian
Move the form fill event listeners out of browser.js and into
BrowserCLH.js, and update them to support chrome windows, so we can
handle form fill events for Fennec, custom tabs, and PWAs.

MozReview-Commit-ID: Fb5gWmGvxfE

--HG--
extra : rebase_source : 8c2d2086e8f612bd823a9b227c9a6b0a0fecee78
2017-09-12 13:35:04 -04:00
Jim Chen a136df501b Bug 1367077 - 2. Move PromptService startup to BrowserCLH; r=snorp
Use the BrowserCLH for PromptService startup, to consolidate startup
handling code and also to delay loading PromptService.

MozReview-Commit-ID: 25UgVH7wrrs

--HG--
extra : rebase_source : a47a50f81cbc21ba0aaee714fb1de8099d778450
2017-09-12 13:35:03 -04:00
Jim Chen 70aad3b8e3 Bug 1367077 - 1. Move startup utility functions into GeckoViewUtils; r=snorp
Move `addLazyGetter` and `addLazyEventListener` utility functions from
GeckoViewStartup.js into GeckoViewUtils.jsm, so they can be used for
both Fennec and standalone GeckoView.

Also switch to "chrome-document-loaded" for loading
DownloadNotifications because that's later in the startup sequence.

MozReview-Commit-ID: 1caMtufkHGR

--HG--
extra : rebase_source : 0c3d92ee2426026d9ec2ad78d77b2c03aa247811
2017-09-12 13:35:03 -04:00
Jan Henning 5701d56310 Bug 1397818 - Make sure to always return Promises from the Sanitizer. r=Grisha
Our shutdown code needs this, so it can wait for sanitising to have actually finished before continuing further.

MozReview-Commit-ID: DGNgFrvYIXV

--HG--
extra : rebase_source : 7ec07f52f2b6dc619042233049f12cc722adb9dd
2017-09-07 19:27:01 +02:00
Andrew Swan f98d92d657 Bug 1398327 Part 2: Sync extension permission strings from desktop to android r=flod
We don't actually support the find API on Android but we already have permission
strings for other desktop-only APIs under mobile/ (eg bookmarks and history).
Keeping these lists in sync with each other is going to be enough hassle as it
is, lets avoid trying to sync them with what's actually supported on each platform
and just keep the same list of permission strings.

MozReview-Commit-ID: 1A0jhtbMZiG

--HG--
extra : rebase_source : e26bf0f4add077422a8f1a3f1d4c89ce2ac2c3a7
2017-09-11 14:31:37 -07:00
Andrew Swan e6a80af159 Bug 1398327 Part 1: Skip permission dialog access keys on Android r=zombie
MozReview-Commit-ID: 1rbludpEmdm

--HG--
extra : rebase_source : f38968efda8d0a90c91036607893e4576e73d7ef
2017-09-11 14:25:23 -07:00
suneet cb2f78c1f6 Bug 1394879 - Replaced TouchDelegate usage with TouchDelegateWithReset .r=JanH
MozReview-Commit-ID: 4pTiOXAUkp0

--HG--
extra : rebase_source : c0fda76718f0b2293b7eb9fc88d46a9c2b9faab4
2017-09-14 01:45:19 +05:30
Andrew Swan 350c06a6b8 Bug 1391401 Disable legacy extensions by default on Android r=kmag
MozReview-Commit-ID: 9InGShBHQag

--HG--
extra : rebase_source : 93d5609f38d25bde7e6827b317be5f84807f79c2
2017-09-13 13:26:59 -07:00
Sebastian Hengst 45bab258b7 merge mozilla-central to autoland. r=merge a=merge 2017-09-14 00:11:28 +02:00
sajattack ab03c2b33f Bug 1397005 - Set size of panel text r=liuche
MozReview-Commit-ID: Ik6PFbF5Loc

--HG--
extra : rebase_source : 8e424826d0fd4c83883a7f2177d4228a8a16d009
2017-09-11 17:33:53 -07:00
Francois Marier 6401ced9e2 Bug 1397930 - Use the same Safe Browsing client ID on all official builds. r=gcp
MozReview-Commit-ID: 5der4PiHWyv

--HG--
extra : rebase_source : 913cdabe319f11877e4f3cfa411b488d298ffcec
2017-09-13 14:04:26 -07:00
Chenxia Liu 0e69c52696 Bug 1399042: Move NO_POSITION check for IndexOutOfBoundsException in onItemClick. r=mcomella
MozReview-Commit-ID: GAs6HOwp8ru

--HG--
extra : rebase_source : c2c8e88adbe631701c9a37bc6f6aa8f236e8d738
2017-09-13 14:31:51 -07:00
Michael Comella 5a3fc1e6a6 Bug 1393579: Show subdomain.domain for pages without titles in top sites. r=liuche
MozReview-Commit-ID: 9SugVwZDbD7

--HG--
extra : rebase_source : a95f5af6d5ad96541bf54ecc42fc6735360cc7f2
2017-09-12 13:58:51 -07:00
Sebastian Hengst e128df9e6a Backed out changeset 956163f1fa0e (bug 1397930) on request from francois. r=backout 2017-09-13 23:00:27 +02:00
Michael Comella 6777cf4615 Bug 1398361 - review: Add comment how as_contextmenu_divider is similar for ltr and rtl. r=mcomella
MozReview-Commit-ID: 5Irg4FvH6xa

--HG--
extra : rebase_source : 7de1ffddebfd1616b50ca6312b36f9be07d47c57
2017-09-13 13:29:35 -07:00
Sebastian Kaspari 7e4cd8bf41 Bug 1398361 - as_contextmenu_divider: Remove symlink and move ltr drawable from drawable-ldlrtl/ to drawable/. r=mcomella
MozReview-Commit-ID: 4rVUdSxbU89

--HG--
extra : rebase_source : c6d96f7caf3973d83ef40ed48c3571a99f6d30a1
2017-09-13 21:03:23 +02:00
Michael Comella 5572780f08 Bug 1388396 - bustage: Fix testBitmapNotScaledMoreThanTwoTimesTheSize. r=mcomella
MozReview-Commit-ID: BZ6dt5FE7FD

--HG--
extra : rebase_source : 03840fc19897f0c09f05ea46c8d2bfd404e3180e
2017-09-13 10:35:40 -07:00
Michael Comella 244d92b88c Bug 1388396 - review: Add TestMinimumSizeProcessor. r=mcomella
MozReview-Commit-ID: ADaJL88YZLg

--HG--
extra : rebase_source : b94a4855d335ff6d36c24dc61288b7fb65a0aca0
2017-09-12 11:33:33 -07:00
Michael Comella d2cc53218d Bug 1388396: Add MinimumSizeProcessor; .forActivityStream takes effect. r=sebastian
This patch is necessary for the previous changesets to take effect.

MozReview-Commit-ID: 98IemAEgbmi

--HG--
extra : rebase_source : 31b39d30c9b682a9f998add9b47d6743375d0c99
2017-09-11 17:41:33 -07:00
Michael Comella 8abb8909bf Bug 1388396: Use IconRequestBuilder.forActivityStream in AS UI. r=sebastian
MozReview-Commit-ID: jLVtXk0hJZ

--HG--
extra : rebase_source : b2d8fbf5692b6259176e18f7fc4d72c194210240
2017-09-11 17:27:22 -07:00
Michael Comella ab7567cedf Bug 1388396: Add IconRequestBuilder.forActivityStream. r=sebastian
MozReview-Commit-ID: HwCjdyB7o7q

--HG--
extra : rebase_source : 46dadbeed206e7cf8666c1c6e97300a3f6c40c23
2017-09-11 17:25:10 -07:00
Michael Comella 98d2edc868 Bug 1388396: Increase max favicon scale factor to 3. r=sebastian
This is part 1 of the good-enough approach: see the MAX_SCALE_FACTOR comment
as to what we're aiming for. The next changeset will discard any icons that
do not look good being scaled so much.

The MAX_SCALE_FACTOR field is non-private because it's used in the next
changeset.

MozReview-Commit-ID: HGzdQBEuMAy

--HG--
extra : rebase_source : 995262e4975a4ebd713cc81f29bc9e84ee2b8d9f
2017-09-11 17:13:07 -07:00
Sebastian Kaspari ef6d0e5ea3 Bug 1389296 - TopSitesCard: Only load icon if we have a non-empty non-null page URL. r=mcomella
MozReview-Commit-ID: D7oTM9oJ3zT

--HG--
extra : rebase_source : 9b6a4759e4841d7d765dfeffd482a8aeef5e7ae1
2017-09-04 16:02:00 +02:00
Francois Marier 5e04ed0e16 Bug 1397930 - Use the same Safe Browsing client ID on all official builds. r=gcp
Also use the UA name on all non-official builds, not just Fennec.

MozReview-Commit-ID: 4pKVz1mFnEl

--HG--
extra : rebase_source : d87cc290ad400c386c0a418289aba746eba63c65
2017-09-07 17:40:52 -07:00
Michael Comella b56fdfb023 Bug 1398368: Drop malformed Pocket Top Stories. r=liuche
I tested this through the unit tests I added.

In theory, we could also validate URLs to make sure they're valid but users
should see 404s if they're not valid so this seems like unnecessary code.

MozReview-Commit-ID: 3XqsMawLabj

--HG--
extra : rebase_source : 7e395dfdb6016f3cb9973e5642c8377928c8fa64
2017-09-12 16:36:21 -07:00
Eugen Sawin b03200ff34 Bug 1399518 - [1.1] Check for NativeWindow features to identify the window type for prompt handling. r=jchen 2017-09-13 20:29:30 +02:00
Julian_Chu a91ab5dddf Bug 1329152 - turn on CustomTabs via SwitchBoard r=nechen,sebastian
We are going to enable Custom Tabs by default. Now it is still
controlled by SwitchBoard in case of any accident.

MozReview-Commit-ID: JREAhkYzVSu

--HG--
extra : rebase_source : 0e24cb83e39f9d9de66f69e1b98204fea3b04319
2017-04-21 15:05:19 +08:00
Julian_Chu 61b790f58d Bug 1329152 - Enable custom tabs by default r=sebastian
Remove related options, just use CustomTabs directly.

MozReview-Commit-ID: DdcMHnsfAU1

--HG--
extra : rebase_source : bc46d5d71d53acadc2cb0415790e9560eeda2c8a
2017-04-10 17:32:16 +08:00
Phil Ringnalda aad01e0dc2 Backed out 12 changesets (bug 1383880) for decision task bustage
CLOSED TREE

Backed out changeset fd3615e7e0a3 (bug 1383880)
Backed out changeset 8cceb6a82bfb (bug 1383880)
Backed out changeset 571a6c9054a5 (bug 1383880)
Backed out changeset ec2b8ba5a949 (bug 1383880)
Backed out changeset 8e5847d9acda (bug 1383880)
Backed out changeset b354fdf6e233 (bug 1383880)
Backed out changeset ebdd6ccbcfca (bug 1383880)
Backed out changeset ebcc9d20981a (bug 1383880)
Backed out changeset 97eedc84d6e8 (bug 1383880)
Backed out changeset a3116da52b4e (bug 1383880)
Backed out changeset b3eb0c939720 (bug 1383880)
Backed out changeset 7c07cb798530 (bug 1383880)

MozReview-Commit-ID: EPDuQHr7w2y
2017-09-20 19:57:39 -07:00
Dustin J. Mitchell 34ad3c6687 Bug 1383880: annotate source files with what they SCHEDULE; r=ahal
MozReview-Commit-ID: CR70dSg5R79

--HG--
extra : rebase_source : e930805bbf5fda35c19db26e3a7a2255fdf7fcd5
extra : source : 8586bf76d73db40ef52142fff8f21cdb0b31cf31
2017-08-25 19:31:54 +00:00
Grigory Kruglov c4bc964637 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 : fbd6bb43c35baee8da36ea7459615e94d2c9741e
2017-09-20 22:21:02 -04:00
Phil Ringnalda a50c867aa4 Backed out changeset 96dab44be3ba (bug 1351673) for Android build bustage
CLOSED TREE

MozReview-Commit-ID: 4XV7Be9AXmB
2017-09-20 18:56:18 -07:00
Michael Comella 3a70bf1f43 Bug 1401779: Use HC+ Actvitiy.onCreateView. r=liuche
In the docs [1], the version of onCreateView we've been using states:

This implementation does nothing and is for pre-HONEYCOMB apps. Newer apps
should use onCreateView(View, String, Context, AttributeSet).

Since we no longer support pre-HC devices, this patch moves us to the new
version.

[1]: https://developer.android.com/reference/android/app/Activity.html#onCreateView(java.lang.String,%20android.content.Context,%20android.util.AttributeSet)

MozReview-Commit-ID: 4ISOLHZC4XJ

--HG--
extra : rebase_source : fcf5b129c0ab9fc47c4c46c1a6eee380bbb0ff10
2017-09-20 16:30:03 -07:00
Michael Comella ecde726fc9 Bug 1401733: Make StreamOverridablePageIconLayout caches static. r=liuche
Unfortunately, I can't reproduce so I'm unable to verify this fix works for
sure. However, I verified the behavior of the StreamOverridablePageIconLayout
remained the same after these changes.

As per my bug comments, using the new version of onCreateView may fix this
problem and is "more correct" than this fix but it's speculative and it's too
dangerous to make speculative fixes this close to the 57 merge. Instead, we do
this surefire fix and lose a little correctness.

The onCreateView fix moved to bug 1401779.

MozReview-Commit-ID: DSq9jEgz6gL

--HG--
extra : rebase_source : 3e440fc1c9324f877f3becd342ce83a7daaf8366
2017-09-20 16:43:25 -07:00
Makoto Kato 44d3f0277d Bug 1401448 - Remove libstdc++ support from Android buildconfig. r=froydnj
libstdc++ support is broken after moving to moz.configure.  No one uses this option and NDK will remove GCC, so we should remove this and --with-android-cxx-stl option.

MozReview-Commit-ID: 3mqyHoRCE00

--HG--
extra : rebase_source : 35aa911a69e159e67f624ab5ab9aea8af4c5342f
2017-09-20 16:38:48 +09:00
Wes Kocher 1ea82f66aa Merge m-c to autoland, a=merge
MozReview-Commit-ID: AHxJvcR2Tpa
2017-09-20 17:47:16 -07:00
Grigory Kruglov b53873f901 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 : ae54f9cf05229318085331ae30cccdf7f404daaf
2017-09-20 19:59:23 -04:00
Grigory Kruglov 849e872d8a Bug 1401318 - Make sure account won't be null when it's processed by Android APIs r=nalexander
MozReview-Commit-ID: EVHzQngUykm

--HG--
extra : rebase_source : e06c0585f05977670fb4abc2dfb16474b1dfe433
2017-09-20 18:48:42 -04:00
Grigory Kruglov f2388d9cda Bug 1401773 - Revert checkboxes->switches changeover for SyncPrefs r=nalexander
MozReview-Commit-ID: 2RwcgomT5UG

--HG--
extra : rebase_source : 92e271fcd2adc328ff9ecdfeb976b679afee0b7e
2017-09-20 19:05:30 -04:00
Grigory Kruglov c506f4dc28 Bug 1400742 - Remove per-account in-memory cache r=nalexander
1368147 added reading fxa.account.json into the unbundle() codepath for the cases
when the in-memory cache isn't populated. This surfaced a race condition:
pickling of the fxa.account.json file and running unbundle() (as triggered from various
parts of the UI, or othe SyncStatusObservers) will race, and if unbundle wins, it
will attempt to read a yet-to-be-created fxa.account.json file, and crash.

Fixing the race isn't trivial, but we can avoid it by removing the in-memory cache,
thus avoiding having to read the cache key from the pickled file (uid).

In-memory cache was added in response to caching/invalidation issues of set/getUserData,
see Bug 964854 for the history. The current thinking is that those problems are pre-API16,
which hopefully means that we shouldn't encounter them anymore, and thus can remove the
workaround entirely.

MozReview-Commit-ID: AfL2Jq4IlYT

--HG--
extra : rebase_source : 8bcdd1bc084700694d52bce3a2f1ae536b7fe9e1
2017-09-20 18:21:06 -04:00
Edouard Oger 30ba58e3f2 Bug 1359279 - Renew GCM token/Push registration/FxA Registration on push registration expired. r=Grisha
MozReview-Commit-ID: HFDjBBt9CBA

--HG--
extra : rebase_source : c51c12c66820bd8d9c2a6356163e0166bbf38d2d
2017-08-23 15:41:31 -04:00
Sebastian Hengst 8d0a582563 Backed out changeset 53e599ac1ed7 (bug 1359279) for android linting failure. r=backout 2017-09-21 00:07:06 +02:00
Edouard Oger 126bd9114d Bug 1359279 - Renew GCM token/Push registration/FxA Registration on push registration expired. r=Grisha
MozReview-Commit-ID: HFDjBBt9CBA

--HG--
extra : rebase_source : 727caefdd3ad0fcb9383f2098a8651a6124f662f
2017-08-23 15:41:31 -04:00
Michael Comella 9ff55b4d26 Bug 1401394: Add missing gecko:itemType to non-phone configurations. r=liuche
I don't know the greater context of this code and if this will cause any problems: I'm just following the patterns in Android menus to fix this code.

:aswan is expected to test this patch for me (or provide me steps to test
whether or not it's working correctly).

MozReview-Commit-ID: 9WrqUokwmXT

--HG--
extra : rebase_source : f79940d29d68989efc6ad5e3ccd5ab5590933938
2017-09-19 16:10:14 -07:00
Mehdi Soleimannejad 3c971f45bd Bug 1401336 - Make user-initiated syncs ignore account sync settings. r=Grisha Kruglov
MozReview-Commit-ID: JkMQb5f0yVM

--HG--
extra : rebase_source : 16138f45ebb7d2b209bd10dbfee696f66387a747
2017-09-20 17:03:14 +04:30
Chenxia Liu 98f23ad6d6 Bug 1400950 - Don't draw divider above Highlights title. r=mcomella
MozReview-Commit-ID: GHXKAhlbc7I

--HG--
extra : rebase_source : 9b8e997d059b4d693772255c8cb60694e911e05b
2017-09-19 18:38:16 -07:00
Chenxia Liu eaf14db612 Bug 1400950 - Update AS panel color. r=mcomella
MozReview-Commit-ID: C290c5OsmzE

--HG--
extra : rebase_source : 3ad780f0a2418560ce4a18ce4ef7686181811dfa
2017-09-19 18:21:33 -07:00
Chenxia Liu 47171b5bc9 Bug 1400950 - Update title font size and spacing. r=mcomella
MozReview-Commit-ID: Ajd5fhI0Y0y

--HG--
extra : rebase_source : b72cd2342bc77705de134601400b9bc188a169cf
2017-09-19 18:10:50 -07:00
Chenxia Liu 62d267f0c0 Bug 1400950 - Update string for "MORE" link to be caps. r=mcomella
MozReview-Commit-ID: 6y7GzH4IAU7

--HG--
extra : rebase_source : 306b2b0e13bf92519d1bb5c43137a9d629461b88
2017-09-19 18:05:56 -07:00
Chenxia Liu 6a2a97d0b6 Bug 1395792 - Hide Highlights empty state when Highlights are disabled. r=mcomella
MozReview-Commit-ID: FMFTAFuWLqh

--HG--
extra : rebase_source : 5011e07a5f604cd57f4708b4fff064308b558b7b
2017-09-19 17:49:41 -07:00
Chenxia Liu 5cf8c4a394 Bug 1395792 - Destroy loaders on reload. r=mcomella
MozReview-Commit-ID: GccHdTISpky

--HG--
extra : rebase_source : 32a3d812a54347aef40106cff395f5dc0731c3dc
2017-09-18 20:17:25 -07:00
Chenxia Liu f199571a85 Bug 1395792 - Add show/hide to onBindVH. r=mcomella
MozReview-Commit-ID: H4bAlcaVCld

--HG--
extra : rebase_source : 5dbdec18a8a47ca1967a3d43ec63b1a7516cab30
2017-09-18 19:55:41 -07:00
Chenxia Liu 012efb3acd Bug 1395792 - Add listener for AS SharedPreferences. r=mcomella
MozReview-Commit-ID: 9bW9bYjVyhr

--HG--
extra : rebase_source : 45224c9108d552cac15d56d55b0516a60e72b6b4
2017-09-18 19:39:59 -07:00
Jan Henning eb5c7a173a Bug 1401279 - Ensure that the menu itself is initialised as well when returning the menu panel. r=nechen
MozReview-Commit-ID: 9FI7ebPJ16a

--HG--
extra : rebase_source : ee5a256e762d7b0b7dfaacc62011b416bb322955
2017-09-19 21:45:58 +02:00
Jan Henning 3e471df8fa Bug 1400544 - Include full host name in site identity popup. r=liuche
MozReview-Commit-ID: FFojx008ZWK

--HG--
extra : rebase_source : 74699ba06e84732aa5e14bdcacca3568c2674ed2
2017-09-16 14:28:17 +02:00
Jan Henning 78e7a75171 Bug 1391421 - Part 9 - Add a basic Robocop test for IDN domain support. r=gbrown
MozReview-Commit-ID: HAT9Imh9YVf

--HG--
extra : rebase_source : c29f9cf4c62377896081644006692f395a6755ec
2017-09-15 23:29:01 +02:00
Jan Henning 6cddaccbac Bug 1391421 - Part 8 - Fix site identity handling. r=jwu
"getEffectiveHost" further down expects the URI to be available - apparently this was broken ever since the original implementation.

MozReview-Commit-ID: C1Q6PBYcvk3

--HG--
extra : rebase_source : 5e71c300261ba9cbaff7e006ce22637c29596680
2017-09-15 20:43:40 +02:00
Jan Henning 18b4ca79db Bug 1391421 - Part 7 - Switch addon/theme install prompts to Unicode domains. r=jwu
MozReview-Commit-ID: HlQKTJRu0FT

--HG--
extra : rebase_source : 80cda7b048e6b45cba4867538cc00ad6b83db4e7
2017-09-15 20:38:08 +02:00
Jan Henning 3d412565c0 Bug 1391421 - Part 6 - Switch context menus to Unicode domains. r=jwu
MozReview-Commit-ID: 6yjtRGI6Aui

--HG--
extra : rebase_source : bae1d7b253ccc1998bacd39a52a0d7fac4827c82
2017-09-16 15:01:09 +02:00
Jan Henning 6fee77cbfe Bug 1391421 - Part 5 - Normalise the saved "appOrigin" to Unicode. r=jwu
To avoid mismatches between the Unicode and Punycode versions of a domain, we should normalise the "appOrigin" that can get stored as part of a tab's extra session store data.

To that extent, we move the code that stores the appOrigin into the Tab object's constructor, so we don't have to parse the URL twice.

MozReview-Commit-ID: KFr8CeeOYTe

--HG--
extra : rebase_source : 4494ed02047b33c187143f3789ed663e5022bf35
2017-09-14 21:09:44 +02:00
Jan Henning 57706bcfdc Bug 1391421 - Part 4 - Switch Session Store to save the "display" URL. r=mikedeboer
The URL can end up being user-visible for "Recently closed tabs" (certainly on Android, and also when hovering over an entry on Desktop, at least in the old menu bar), so we should use pretty URLs instead of Punycode.

MozReview-Commit-ID: Kil2ChToYa8

--HG--
extra : rebase_source : 937332a852c6814317cdc58473437e3bc77faf15
2017-09-14 21:29:45 +02:00
Jan Henning 9371ff3146 Bug 1391421 - Part 3 - Switch various places that can end up being user-visible to use Unicode domains. r=esawin,jwu
Amongst others, this includes some prompts, as well as various progress messages sent to the Java UI.

We also fix getTabWithURL to be able to find tabs regardless of whether the given URL to search is written in Punycode or with Unicode characters.

MozReview-Commit-ID: K7xhgz2IK2h

--HG--
extra : rebase_source : cf8a56ef84be77a6c01d7c926b7eae43a20ca453
2017-09-14 18:55:09 +02:00
Jan Henning 4b04854eb0 Bug 1391421 - Part 1 - Switch nsAndroidHistory to Unicode domains. r=esawin
MozReview-Commit-ID: FoxZhwdg4ao

--HG--
extra : rebase_source : e436cd9f2574e74a6fcab9eca641c9627cd243c0
2017-09-14 21:46:35 +02:00
Jing-wei Wu 3eb748d91e Bug 1394720 - Refactor AnimatedProgressBar for performance tuning. r=walkingice
MozReview-Commit-ID: LKekOvdMS6u

--HG--
extra : rebase_source : c7e955e8ed44fc30d608f3482a7f33bd057cf0d3
2017-09-12 14:54:53 +08:00
Wes Kocher fee8c46ef7 Backed out changeset f51248231d0e (bug 1397818) for linting failures in Sanitizer.jsm a=backout
MozReview-Commit-ID: AcRgH0NjTGB
2017-09-11 14:29:42 -07:00
Richard Newman f31d98a272 Bug 1378501 - Tell Gecko when the OS locale changes, even when backgrounded. r=mcomella
This ensures that `intl.locale.os` is always set, even if the system locale changes
while Fennec is in the background.

This commit also restores `Strings.flush()` calls that are necessary to have Fennec's
non-Java UI reflect locale changes.

With this commit, the geolocation popup still doesn't behave correctly: when the
locale system is set to match OS locale, although the pref is set the locale doesn't
change. This applies in two scenarios: on first run (the popup is always English)
and when the locale changes at runtime (the popup uses an earlier OS locale).

Bug 1397925 should complete the fix.

MozReview-Commit-ID: 8zeZuYXFYdy

--HG--
extra : rebase_source : 9da9aae7ed8420faa7567c9db29b1110b3289d9f
2017-09-08 07:54:13 -07:00
Jan Henning 37aded2f78 Bug 1397818 - Make sure to always return Promises from the Sanitizer. r=Grisha
Our shutdown code needs this, so it can wait for sanitising to have actually finished before continuing further.

MozReview-Commit-ID: DGNgFrvYIXV

--HG--
extra : rebase_source : 8859ae296af5ad30eca713473ea94a201b98f76b
2017-09-07 19:27:01 +02:00
Michael Comella b24ecca8ea Bug 1395761: Remove layout_gravity=center in webpage_item_row. r=liuche
This has the effect of:
- Aligning the webpage item row with top sites (both 10dp margins)
- Making the icons not cut off

Unfortunately, I don't know why this solved the problem considering the size of
the container did not change. However, the layout_gravity was extraneous and
given all the other work we have to do, I'm fine not researching further.

One thing I noticed is that with layout_gravity, there was an additional
non-colored space in the "Show Layout Bounds" mode with layout_gravity than
there was with out it.

MozReview-Commit-ID: KTZRi1s32gx

--HG--
extra : rebase_source : 3484fc8a0257323c51d805c57979b0904e596483
2017-09-11 10:09:10 -07:00
Botond Ballo cb97473493 Bug 1398858 - Have apz.frame_delay.enabled ride the trains on desktop. r=kats
MozReview-Commit-ID: HAOFPBlqEq0

--HG--
extra : rebase_source : 3df9ddd8590d9f168f8f2f1f7f2d44b66aa4cef9
2017-09-11 13:33:54 -04:00
Jing-wei Wu ec6a9f05ea Bug 1398655 - Remove unused color resources in colors.xml. r=nechen
MozReview-Commit-ID: 6lPno8C3GhE

--HG--
extra : rebase_source : 0ba91dcdd07f1d474f6e1358575ebd1f044a1e37
extra : source : 867cb5c5dacbf7cbfe0d4a4507651837052f0f83
2017-08-29 15:08:43 +08:00
Andrew Swan 4a67e82a59 Bug 1398326 Fix display of default extension icon in permission prompts r=walkingice
MozReview-Commit-ID: 9qaAVcAeJuf

--HG--
extra : rebase_source : 97bfef09d4565baab68739bea4e3391c418a6b24
2017-09-08 13:21:42 -07:00
Julian_Chu 2a6acc7625 Bug 1355735 - Add util to pick name for default browser r=jwu
The util PackageUtil helps to get ResolveInfo of default browser, then
we can use it in CustomTabs menu. If user hasn't set any default
browser, instead we display "..." for browser name.

MozReview-Commit-ID: 6DkFkZ8Ovzq

--HG--
extra : rebase_source : 3ee3d7cccd6e926eafb5edaba6763920979819d6
2017-09-09 00:47:44 +08:00
Nevin Chen a2f0a2765b Bug 1396465 - Make onboarding images smaller. r=jwu
MozReview-Commit-ID: LKFOlBd5bdv

--HG--
extra : rebase_source : 60411f2f01aa943711794116ad6f8f94311f6a7a
2017-09-04 10:16:05 +08:00
Jan Henning e6d3779ad4 Bug 1271998 - Part 4 - Use a touch delegate to increase the clickable area of the URL bar. r=jwu
Originally, the listeners that trigger editing mode and the URL bar's context menu were attached to the BrowserToolbar itself. As this doesn't work properly in conjunction with wrapping the URL TextView into a ScrollView, the listeners were moved onto the TextView itself.

Bug 1389164 reduced the height of the TextView in order to better support lightweight themes with the new toolbar design, which in conjunction with the changes to support the ScrollView has the unfortunate side effect of also reducing the URL bar's hit target area.

Therefore, we increase it back to its old levels by using a TouchDelegate on the ScrollView. Because Android's ScrollView implementation doesn't support TouchDelegates, we have to add the missing bits of logic back in from the default View implementation.

MozReview-Commit-ID: 1nTrrNGvBza

--HG--
extra : rebase_source : 338f3cef0f7e36e7c2968f01170184792a816e9c
2017-08-29 20:34:17 +02:00
Jan Henning 8530a2979b Bug 1271998 - Part 3 - Scroll the URL to focus the origin for overlength URLs. r=jwu
If the domain is long enough that it doesn't fully fit within the URL bar, we scroll it such that the end of the domain aligns with the right side of the URL bar, taking any possible fadingEdge effect into account. That way, we always try to show as much of the most important part of the origin as possible.

Chrome uses a similar approach, although their URL bar neither fades nor allows scrolling.

MozReview-Commit-ID: Ep4H4kO4MRH

--HG--
extra : rebase_source : 2ef619e8e756627e8ff55ef394f483ce12505ddd
2017-08-24 22:09:56 +02:00
Jan Henning 9e84d48ea6 Bug 1271998 - Part 2 - Make our URL bar scrollable. r=jwu
Limited space for URLs on mobile browsers has given rise to a class of phishing attacks that rely on a carefully crafted URL with a long subdomain being cut off such as to give the impression of another, legitimate URL [1]. We've experimented in the past with avoiding this by showing only the base domain or the EV certificate owner, but had to revert to the old behaviour because of users complaining about not being able to see as much of the URL as formerly possible.

Making the displayed URL scrollable is therefore a nice solution: It allows us to choose the initial scroll position such as to put the focus on the base domain, while giving users the freedom to easily view all the rest of the URL without having to enter editing mode.

To make the URL scrollable, we wrap the TextView with a HorizontalScrollView. Alternatively, it would have been possible to use a ScrollingMovementMethod with the TextView, however that way
- flinging the text doesn't work out of the box
- dragging the text around is still detected as a normal long-press as well and triggers the context menu


[1]. E.g. https://manage-myaccount.paypal.com-webapps.verifcheck.com/signin/ (see https://twitter.com/ericlaw/status/900429796240277504 for an example screenshot).

MozReview-Commit-ID: LPEXQA2kBvD

--HG--
extra : rebase_source : dc5a9428a64cb8961b5783505f67599fa1e22f34
2017-08-27 17:31:13 +02:00
Jan Henning 89e1cb07fb Bug 1271998 - Part 1 - Provide a ScrollView with a more efficient fadingEdge implementation. r=jwu
Our previous iteration of a more efficient fadingEdge implementation in FadedMultiColorTextView works by blending the text with a chosen colour. By choosing the same colour as the parent view onto which the TextView is placed, it was thus possible to achieve the impression of fading.

With our new URL bar design this is no longer possible quite as easily, since the image used for a lightweight theme will now be displayed behind the URL itself as well. Since the implementation would have also needed more work to make it compatible with scrolling text or being placed in a ScrollView anyway, the fading effect is now achieved directly via the ScrollView instead.

Android's built-in fadingEdge implementation calls Canvas.saveLayer (with CLIP_TO_LAYER_SAVE_FLAG omitted!) during a View's onDraw in order to fade out the contents of its children while preserving the background provided by its parents. This saveLayer call is rather expensive and is quite noticeable on a GPU profile even today.

Therefore, we implement a more efficient variety of fadingEdges that paints over its children's content in onDrawForeground. To avoid any background content from being faded out, the whole view then has to be placed on a separate layer, however this is still much more efficient than calling Canvas.saveLayer and doesn't show up noticeably in a GPU profile.

Prior to Marshmallow, onDrawForeground is not available, so we have to override draw instead in order to be able to paint over the content drawn by the ScrollView's descendants. This means that e.g. scrollbars would be faded out as well, but as we don't intend on showing a scrollbar within the context of this bug, it is an acceptable compromise.

MozReview-Commit-ID: DCDPt6ogs0h

--HG--
extra : rebase_source : eae7088d00918d0b6e7a8088fc414ac5adfdff9d
2017-08-31 20:06:33 +02:00
Jan Henning 39dd7dd7d7 Bug 1271998 - Part 0 - Clean up imports. r=JanH
MozReview-Commit-ID: 5y5C77jFYUg

--HG--
extra : rebase_source : e875e54bf1dcf787c582fa8ffea771309bdb6704
2017-08-27 19:58:16 +02:00
Jing-wei Wu 903a88d66e Bug 1394404 - Part 2: Keep AnimatedProgressBar has same height in both BrowserApp and CustomTabsActivity. r=walkingice
MozReview-Commit-ID: EWXn98emP2g

--HG--
extra : rebase_source : 5dc125883779926a78e6ffac67380f7bb6dc1d1f
2017-09-08 18:16:50 +08:00
Jing-wei Wu 0c4ac70569 Bug 1394404 - Part 1: Update AnimatedProgressBar's progress value to 100 before hiding it. r=walkingice
Our new animated progress bar follows the logic to hide itself:

1. When its progress value reaches 100, it disappears gracefully(with animation), otherwise,
2. It just disappears directly.

To make sure the progress bar always looked like fully loaded, we have to set its progress value to 100 before hiding it.

MozReview-Commit-ID: JSYEPYEhG4A

--HG--
extra : rebase_source : 6a432f093abb188f43da8ee3980c7681577c4f2c
2017-09-08 18:14:33 +08:00
Jan Henning 6e54f839f6 Bug 1396324 followup. Add comment referencing this bug to the test. r=JanH
DONTBUILD

MozReview-Commit-ID: AFEnH5VSuM4

--HG--
extra : rebase_source : a11f70d27f0bb43a833a6050b3f581c7133381fb
2017-09-09 22:54:55 +02:00