fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Meta] Turn on Bottom Dynamic Nav Bar

Open vesta0 opened this issue 7 years ago • 15 comments

Meta for turning on Bottom Dynamic Nav Bar for release: #8775

We chose to disable the dynamic nav bar and make it fixed for MVP due to issues we were investigating in GeckoView. We should look into enabling this before the next major release since this was always the plan AND it's a highly requested user feature.

Dynamic top nav bar is #5694 and already done.

User Story

As a user browsing in Fenix, I want the nav bar to auto-hide when I scroll down, so I can view web content in full screen.

Dependencies

  • [ ] GV bug: Bad behavior on some sites https://bugzilla.mozilla.org/show_bug.cgi?id=1594451
  • [ ] AC bug: Implementing new GV APIs (setVerticalClipping, setDynamicToolbarMaxHeight): https://github.com/mozilla-mobile/android-components/issues/4780

Acceptance Criteria

  • [ ] When I scroll down a webpage in Fenix, the nav bar auto-hides.
  • [ ] When I scroll back up, the nav bar appears.
  • [ ] This should be behind a Nightly flag, and track when the GV feature is mature (and bugs that come out of this have been fixed).

┆Issue is synchronized with this Jira Task

vesta0 avatar Jul 30 '19 16:07 vesta0

Relevant idea with potentially better user security: #3805

Madis0 avatar Jul 30 '19 18:07 Madis0

According to GV, we can now turn on the AC dynamic nav bar, which is in GV Nightly, so we start seeing what the bugs are. This should be behind a Nightly flag, because we don't want this to be on Release until the GV bugs surface and are fixed.

Here is the Reference Browser PR: https://github.com/mozilla-mobile/reference-browser/commit/7110781709c440ac77eee6165eb5e9be493e26ae

liuche avatar Oct 03 '19 20:10 liuche

Would it be possible to make this optional?

KasperNymand avatar Oct 15 '19 12:10 KasperNymand

@vesta0 we removed this from our Q4 release, but I think this is the one that we want in Q4 -- it sounds like it's just turning on the dynamic nav bar so we can see which bugs need to be fixed.

bifleming avatar Nov 01 '19 16:11 bifleming

The GV team has a couple minor GV issues to be fixed for the dynamic toolbar, but feels the dynamic toolbar is ready to re-enabled for Fenix Nightly (only) user testing. The dynamic toolbar shouldn't ride the Fenix trains yet.

cpeterso avatar Nov 01 '19 18:11 cpeterso

https://github.com/mozilla-mobile/fenix/pull/6571 will give us dynamic toolbar on top, but not for bottom

sblatz avatar Nov 12 '19 19:11 sblatz

I'm going to update this to only include Dynamic Bottom Bar, bc #5694 is already finished.

liuche avatar Dec 17 '19 19:12 liuche

I don't see any more dependencies here, so this is probably ready to work on?

@vesta0 is this something we should put on the kanban board?

liuche avatar Jan 06 '20 19:01 liuche

Still have some bad behavior on sites like The Guardian https://bugzilla.mozilla.org/show_bug.cgi?id=1594451

liuche avatar Jan 13 '20 19:01 liuche

Let's turn this on in Nightly and test it.

vesta0 avatar Feb 07 '20 17:02 vesta0

Note that when the toolbar is toggled visible/hidden on fullscreen stuff, we also need to call engineView.setDynamicToolbarMaxHeight(0) or engineView.setDynamicToolbarMaxHeight(toolbar height) respectively. Probably here https://github.com/mozilla-mobile/fenix/blob/master/app/src/main/java/org/mozilla/fenix/browser/BaseBrowserFragment.kt#L379-L390

hiikezoe avatar Feb 08 '20 00:02 hiikezoe

Verified that:

  • when scrolled down a webpage in Fenix, the navbar auto-hides,
  • when scrolled back up, the navbar reappears, both in normal and private mode. Tested with Google Pixel (Android 10), and HTC 10 (Android 8) on the latest Nightly build from 2/26.

lobontiumira avatar Feb 26 '20 10:02 lobontiumira

Since this is only enabled in nightly/debug, i'm going to file a "remove feature flag" issue :)

sblatz avatar Feb 26 '20 16:02 sblatz

https://github.com/mozilla-mobile/fenix/issues/8775

sblatz avatar Feb 26 '20 16:02 sblatz

Found a bug #8777

bogas04 avatar Feb 26 '20 17:02 bogas04