mozilla-mobile / firefox-echo-show

Firefox for Amazon's Echo Show
Mozilla Public License 2.0
25 stars 12 forks source link

Toolbar does not scroll off-screen on first page load after session restoration #297

Closed mcomella closed 5 years ago

mcomella commented 5 years ago

Steps to reproduce

Expected behavior

Toolbar moves on and off screen

Actual behavior

Toolbar stays on screen. When the user fullscreens a video, the toolbar remains on the screen. This state is fixed when the user:

But clicking links to load new pages doesn't fix the issue. This is problematic if they user starts on YouTube and only clicks on links in YouTube to navigate.

This problem is pronounced on the ES gen 5 because of its small screen and will combine with our solutions to #284 to be even worse.

Device information


My assumption is that we set an initial toolbar state (canScroll = false) when starting the app on the Navigation Overlay. However, when we implemented session restore, we never updated this state.

If it helps, I changed the code in BrowserAppBarViewModel to this:

    val isAppBarHidden = MutableLiveData<Boolean>().apply {
        value = true
    }

And it seemed to fix the issue, sort of. It's not the right fix but maybe it'll help debugging.

nojunpark commented 5 years ago

I wasn't able to repro this on my Echo Show (gen 1) with FFTV 1.3. (OS Version: 641574920) Perhaps it's only reliably reproducible on ES gen 5?

dnarcese commented 5 years ago

I am also unable to reproduce on gen 2 but I also noticed that it only has v1.2. @mcomella If this is only reproducible on gen 5 and we don't have that device here in TOR, could someone in SF take this over?

mcomella commented 5 years ago

QA: please verify that:

mcomella commented 5 years ago

@npark-mozilla I see this was moved to the Done column: should we change the label now to qa-verified (or whatever)?

nojunpark commented 5 years ago

Odd that we don't have qa-verified here, but yeah I should have removed the label, which should be sufficient