Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

show toolbar with loading progress when toolbar is hidden and url is tapped #7075

Closed
ryg-git opened this issue May 22, 2022 · 7 comments
Closed
Assignees
Labels
dynamic-toolbar Issues related to using a dynamic toolbar QAVerified
Milestone

Comments

@ryg-git
Copy link
Contributor

ryg-git commented May 22, 2022

Steps to reproduce

  1. Search any term on google (ex. search android).
  2. scroll up so that the toolbar is hidden.
  3. Tap on any search result.
  4. check that the toolbar is not revealed after URL tap to show the loading progress.

Expected behavior

  1. The toolbar should reveal itself when URL is tapped.
  2. Toolbar is revealed on url tap in Firefox Android App (Fenix).
  3. This behaviour is especially important in poor network connection, when it gets unclear for user if the URL is tapped properly or not.

Actual behavior

  1. when user taps on link to navigate to that URL and the toolbar is hidden bacause of scrolling the toolbar doesn't become visible to show progress.

Device information

  • Android device: 12
  • Focus version: 100.3.0
@ryg-git
Copy link
Contributor Author

ryg-git commented May 22, 2022

I would like to take up this issue

@Mugurell
Copy link
Contributor

@ryg-git Thank you for the report!
Just want to confirm that you are reporting the issue for Focus - https://play.google.com/store/apps/details?id=org.mozilla.focus and not for Fenix - the codename for https://play.google.com/store/apps/details?id=org.mozilla.firefox.

I tested now and indeed this issue affects all current Focus releases but Fenix seems to be unaffected.

@Mugurell
Copy link
Contributor

This scenario should probably be accounted for in ToolbarBehaviorController for which I've opened mozilla-mobile/android-components#12215 .

@ryg-git I understand you wanted to work on this?
As per the above the changes are to be implemented in AC (https://github.com/mozilla-mobile/android-components) and Fenix (https://github.com/mozilla-mobile/fenix).
This might help in testing the Android-Components integration in Fenix.

Please let me know if this sounds like something that you can help with or you'd prefer to let us make the changes.

@Mugurell Mugurell added the dynamic-toolbar Issues related to using a dynamic toolbar label May 23, 2022
@ryg-git
Copy link
Contributor Author

ryg-git commented May 23, 2022

Hello @Mugurell,

Thank you for considering my request,

This issue I opened is for focus only, on fenix, toolbar is expended on navigation, sorry if I didn't make it clear in the issue statement.

I checked the fenix code and tried to implement similar behaviour in focus-android, therefore
I added expandToolbarOnNavigation in BrowserToolbarIntegration similar to fenix,
which uses BrowserToolbarBehavior.expand function from android-components.

I think these changes can fix this issue (please checkout gif in the PR I created), please let me know if you want me to change anything.

Thank you!

@Mugurell
Copy link
Contributor

@ryg-git That seems like a nice quick fox for the issue, thank you!
Please mark the PR as ready for review and we'll merge it.

ryg-git added a commit to ryg-git/focus-android that referenced this issue May 24, 2022
…equest changes

added `expandToolbarOnNavigation`method which listens to changes in `tab.content.url` and `tab.content.loadRequest` to expand the toolbar and show loading progress.

closes mozilla-mobile#7075
@mergify mergify bot closed this as completed in 55787c8 May 25, 2022
@Mugurell Mugurell added the QAReady flag for test read & needed label May 26, 2022
@Mugurell
Copy link
Contributor

Reopen for testing.

@Mugurell Mugurell reopened this May 26, 2022
@lobontiumira
Copy link

Verified as fixed on the latest Focus nightly 102.0a1 from 5/26 with Oppo Reno 6 (Android 12), and Google Pixel (Android 10).

@lobontiumira lobontiumira added QAVerified and removed QAReady flag for test read & needed labels May 26, 2022
@amedyne amedyne added this to the 103 milestone Jul 21, 2022
JohanLorenzo pushed a commit to mozilla-mobile/firefox-android that referenced this issue Dec 13, 2022
…n navigation or load request changes

Added `expandToolbarOnNavigation`method which listens to changes in `tab.content.url` and `tab.content.loadRequest` to expand the toolbar and show loading progress.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dynamic-toolbar Issues related to using a dynamic toolbar QAVerified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants