Commit Graph
2909 Commits
Author SHA1 Message Date
Julian_Chu aecadbc661 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
2017-04-21 15:05:19 +08:00
Julian_Chu d75223fcf0 Bug 1329152 - Enable custom tabs by default r=sebastian
Remove related options, just use CustomTabs directly.

MozReview-Commit-ID: DdcMHnsfAU1
2017-04-10 17:32:16 +08:00
Michael Comella 5aa4dae7e5 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
2017-09-20 16:30:03 -07:00
Michael Comella abbd2cded0 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
2017-09-20 16:43:25 -07:00
Grigory Kruglov cf73e73536 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
2017-09-20 18:21:06 -04:00
Mehdi Soleimannejad 3311a83c12 Bug 1401336 - Make user-initiated syncs ignore account sync settings. r=Grisha Kruglov
MozReview-Commit-ID: JkMQb5f0yVM
2017-09-20 17:03:14 +04:30
Chenxia Liu aa4506d27e Bug 1400950 - Don't draw divider above Highlights title. r=mcomella
MozReview-Commit-ID: GHXKAhlbc7I
2017-09-19 18:38:16 -07:00
Chenxia Liu 7ac3ae6d5f Bug 1400950 - Update AS panel color. r=mcomella
MozReview-Commit-ID: C290c5OsmzE
2017-09-19 18:21:33 -07:00
Chenxia Liu 86cab77839 Bug 1395792 - Hide Highlights empty state when Highlights are disabled. r=mcomella
MozReview-Commit-ID: FMFTAFuWLqh
2017-09-19 17:49:41 -07:00
Chenxia Liu e195a41a01 Bug 1395792 - Destroy loaders on reload. r=mcomella
MozReview-Commit-ID: GccHdTISpky
2017-09-18 20:17:25 -07:00
Chenxia Liu 07feefeded Bug 1395792 - Add show/hide to onBindVH. r=mcomella
MozReview-Commit-ID: H4bAlcaVCld
2017-09-18 19:55:41 -07:00
Chenxia Liu 1d7fa7950e Bug 1395792 - Add listener for AS SharedPreferences. r=mcomella
MozReview-Commit-ID: 9bW9bYjVyhr
2017-09-18 19:39:59 -07:00
Jan Henning 6ef225fc7c Bug 1401279 - Ensure that the menu itself is initialised as well when returning the menu panel. r=nechen
MozReview-Commit-ID: 9FI7ebPJ16a
2017-09-19 21:45:58 +02:00
Jan Henning 5c0b647e8f Bug 1400544 - Include full host name in site identity popup. r=liuche
MozReview-Commit-ID: FFojx008ZWK
2017-09-16 14:28:17 +02:00
Jing-wei Wu 0b6c1960fb Bug 1400858 - Introduce class CheckableFadedSingleColorTextView for supporting 'Checkable' status. r=nechen
MozReview-Commit-ID: ILGByeZdyV8
2017-09-20 17:09:34 +08:00
Nevin Chen ebe3e70cf0 Bug 1400150 - Use Swtichboard to enable Leanplum debugging. r=maliu
MozReview-Commit-ID: 7Z7oADiE3Lu
2017-09-15 16:10:48 +08:00
friedger a772a50297 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
2017-06-08 13:31:05 +02:00
James Willcox 00b10d7bd6 Bug 1401208 - Change default web app scope to the start_url r=esawin
MozReview-Commit-ID: Jvbru5oRYDH
2017-09-19 09:45:04 -05:00
Nevin Chen cd2ff06981 Bug 1379793 - Only allow pre header as title. r=jwu
MozReview-Commit-ID: 294jTWWyL69
2017-09-18 18:08:49 +08:00
Michael Comella ea3e35b693 Bug 1400397: Do not try to reload failed highlight images. r=liuche
MozReview-Commit-ID: FnLcSfDrytS
2017-09-15 16:10:31 -07:00
Michael Comella b0ee9fa381 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
2017-09-15 14:31:29 -07:00
Ryan VanderMeulen 9dc4c4933a Backed out changeset 16f21b8add66 (bug 1367069) for about:home bustage. 2017-09-28 12:16:20 -04:00
James Willcox c9212d54dc Bug 1372926 - Followup to fix lint failures r=me
MozReview-Commit-ID: BdqAHAtsmIH
2017-09-28 09:51:56 -05:00
James Willcox e11804e177 Bug 1372926 - Support new shortcut API in Android O r=nechen
MozReview-Commit-ID: ICRoMR2wSPq
2017-09-28 09:09:52 -05:00
James Willcox 0d502a6fe0 Bug 1372926 - Revert bug 1394356, allowing "add to homescreen" again on Android O r=nechen
MozReview-Commit-ID: B7cYUu1Wa6c
2017-09-28 09:09:52 -05:00
Jing-wei Wu 03051e647e Bug 1400164 - Part 2: Tint close button manually when checked status is changed. r=nechen
Because without implementing 'Checkable' interface, ThemedImageButton doesn't refresh its
drawable when the 'checked' status is changed.

We have to tint the drawable and set into the view manually.

MozReview-Commit-ID: CDYUxOZkn60
2017-09-18 11:19:22 +08:00
Jing-wei Wu 2d655a8843 Bug 1400164 - Part 1: Provide a getter method for tint colors of themed widgets. r=nechen
MozReview-Commit-ID: 2YWv9hjhAVr
2017-09-18 11:07:39 +08:00
Michael Comella e0771238ec 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
2017-09-15 14:05:21 -07:00
Michael Comella 1dfe8029d7 Bug 1400072: Rm unused variable tilesMargin. r=liuche
MozReview-Commit-ID: G6Z3dUnKWLl
2017-09-15 10:51:50 -07:00
Michael Comella 045c0b2fc7 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
2017-09-15 10:48:28 -07:00
Michael Comella 29e2e6aa21 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
2017-09-15 10:39:36 -07:00
Michael Comella 9dc483cb50 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
2017-09-15 10:30:08 -07:00
Michael Comella 1bba49e0c3 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
2017-09-15 10:26:19 -07:00
Chenxia Liu 5cbd0b4cd8 Bug 1393174 - Add "More" link to Pocket AS title. r=mcomella
MozReview-Commit-ID: kromR87f43
2017-09-14 17:54:50 -07:00
Ryan VanderMeulen 689c3e468e Merge m-c to autoland. a=merge 2017-09-15 14:20:34 -04:00
Dylan Roeh 397f5392a3 Bug 1400059 - Replace strings in ProgressListener.SecurityInformation with ints. r=snorp 2017-09-15 09:00:26 -05:00
Andrew Swan 93c5f284c2 Bug 1399791 Make Android extension permission dialog modal r=walkingice
MozReview-Commit-ID: Hb3dJU85z4v
2017-09-14 11:29:18 -07:00
Sebastian Hengst 1c36da9196 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4dRrVdftJVy
2017-09-15 11:05:11 +02:00
Sebastian Hengst f3b4b34c71 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-09-15 00:18:43 +02:00
Jim Chen aa5d7a77bc 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 948efaa0b5 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 ac6788618c 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 e059d20e24 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 72191f0c41 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
Andrew Swan ac101386e8 Bug 1391579 Part 3: Add update indicator to top-level Add-ons menu entry r=jwu,sebastian
MozReview-Commit-ID: 937Zsd6yfBO
2017-09-11 10:31:51 -07:00
Michael Comella c95f28d5a5 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
2017-09-13 17:16:40 -07:00
Michael Comella 35e25b0b24 Bug 1397888: Remove pin icon from top sites title. r=liuche
MozReview-Commit-ID: GTmfUzvD0k2
2017-09-13 16:58:39 -07:00
Julian_Chu bb01530657 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
2017-08-24 01:15:22 -07:00
Julian_Chu acfd820112 Bug 1391579 Part 1: add attribute itemType to GeckoMenuItem r=jwu,sebastian
MozReview-Commit-ID: CelYcXveCvO
2017-08-24 01:15:04 -07:00
Nevin Chen 556e5c06b0 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
2017-09-14 15:16:55 +08:00