focus-android icon indicating copy to clipboard operation
focus-android copied to clipboard

Shortcuts opened from the address bar open a new tab

Open Vinnl opened this issue 3 years ago • 9 comments

Describe the bug

Shortcuts opened from the address bar open in a new tab.

To Reproduce

Steps to reproduce the behavior:

  1. Add a shortcut.
  2. Visit a website.
  3. Tap the address bar.
  4. Tap the shortcut.

Expected behavior

The current page is replaced by the shortcut target.

Actual behavior

A new tab opens with the shortcut target, keeping the existing page open in the background.

Smartphone (please complete the following information):

  • Device: Fairphone 2
  • OS: Android 9
  • Focus Version: the one built for the Sep 13- Sep 17, 2021 Foxfooding

Additional context

I'm not sure if this is desired behaviour, but the foxfooding screencast seemed to not open a new tab, hence the report.

Vinnl avatar Sep 14 '21 09:09 Vinnl

@brampitoyo, @gabrielluong I am not aware of the design for the awesomebar shortcuts. Should they open in the current tab or a new tab? It would make sense to me to open in the same tab, as opposed to the shortcuts from the home screen that opens in a new tab.

mcarare avatar Sep 14 '21 11:09 mcarare

@mcarare All shortcuts should open in the current tab, including ones that appear underneath the selected address bar while you’re visiting a website

This means that shortcuts that appear on the New Tab Page should open in the current tab, too. This is true when I checked the dev build, but just checking if this is still true today?

brampitoyo avatar Sep 15 '21 08:09 brampitoyo

I think there is the same misunderstanding as it is for Fenix. The home tab is not a browser tab, but a screen. The shortcuts from the home screen open in a new tab, as there is none when you just open the app.

mcarare avatar Sep 15 '21 12:09 mcarare

@mcarare I see! Sorry, I didn’t know that the Homescreen (or New Tab Page) exists in a “tab zero” state.

Then yes. You are correct. Shortcuts should be opened in a new tab.

brampitoyo avatar Sep 16 '21 00:09 brampitoyo

@brampitoyo even when opened from an existing tab? ( now shortcuts show up even when you click on the URL in an existing tab) This is the case reported here, clicking on those shortcuts opens a new tab when we could assume the intention of the user would be to not keep the first tab but open the shortcut URL instead of the first URL.

mcarare avatar Sep 16 '21 06:09 mcarare

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 13 '22 01:04 stale[bot]

This behaviour still exists in current nightly, and I think the last question asked is still relevant?

Vinnl avatar Apr 13 '22 11:04 Vinnl

@brampitoyo even when opened from an existing tab? ( now shortcuts show up even when you click on the URL in an existing tab) This is the case reported here, clicking on those shortcuts opens a new tab when we could assume the intention of the user would be to not keep the first tab but open the shortcut URL instead of the first URL.

@jeffreygee Any thoughts about this?

ionutbedregeanu avatar Jun 21 '22 08:06 ionutbedregeanu

@ionutbedregeanu - I agree with the above.

All shortcuts should open in the current tab, including ones that appear underneath the selected address bar while you’re visiting a website, so basically:

  • If the user clicks on a shortcut while on a website, clicking on the shortcut should replace the current website and not open in a new tab.
  • If the user is on the default homepage view (tab zero), then open in a new tab.

We can chat in the meeting tomorrow AM if you have any questions. Thanks!

jeffreygee avatar Jun 28 '22 05:06 jeffreygee

Verified on the latest Focus Nightly 106.0a1 from 9/8 that tapping on the shortcut opens it on the same tab, does not open a new one. Tested with the following devices:

  • Samsung Galaxy Note 8 (Android 9),
  • Samsung Galaxy Tab A6 (Android 5.1.1),
  • Sony Xperia Z5 Premium (Android 7.1.1), and
  • Lenovo tab M10 (Android 10).

lobontiumira avatar Sep 08 '22 08:09 lobontiumira

Not yet fixed on RC 105.1.0 build 2.

lobontiumira avatar Sep 16 '22 07:09 lobontiumira