tab switching should not be recorded to url bar undo history of particular tab
Categories
(Firefox :: Address Bar, defect)
Tracking
()
People
(Reporter: manikulin, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0
Steps to reproduce:
- Open any web page, e.g. "https://www.thunderbird.net/en-US/"
- Open new tab
- Type some URL (a part of it) in the address bar, e.g. "bugzilla.m"
- Switch to tab from item 1
- Switch tab back to the new one with typed URL
- Try undo (
[Ctrl+Z])
Actual results:
Url of the page from item 1 ("https://www.thunderbird.net/en-US/") appears in the URL bar
It is not a new bug, it appeared after some changes in UI several versions ago.
Expected results:
Last typed character is removed from the new address ("bugzilla." for the example from item 3).
Tab switch should not be treated as edit of the address field. Each tab should have each own undo-redo context instead (only exhausting of undo entries might bring history from an earlier tab).
In some cases (not really frequent however), it is easier to type some URL by editing of the address of an earlier visited page than reach the same page through navigation links on the web site. Sometimes a hint from another tab may be required. It is disappointing when you realize that you typed something wrong, try undo to correct it and get irrelevant URLs on [Ctrl+Z]. It is especially annoying if you use [Ctrl+PgUp] a couple of times to reach another tab and then [Ctrl+PgDn] to return back.
If undo-redo items were not distorted by tab switches then behavior of [Ctrl+Z] would be more predictable.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Address Bar' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•4 years ago
•
|
||
Hi,
The issue is reproducible on Windows 10 and MacOS 11 as well.
I'm setting the flags accordingly.
Thank you for reporting!
I am sorry. For some reason I believed that it is relatively recent change (e.g. appeared when address bar started to blow up on focus). Actually firefox-56 already had such behavior. Now I am unsure whether each tab ever had its own input widget with independent history.
Comment 4•4 years ago
|
||
Sorry, but it's very unlikely we'll ever change this behavior, so I'll wontfix this. The input does not have a separate context per tab and it's never behaved that way AFAIK, and I don't think we want that.
In your example scenario, you can keep pressing Ctrl+Z/undo as many times as you need to get back to the last thing you typed.
I do not think that "never behaved" is a convincing argument. Firefox UI evolves in time. At first address bar was above tab switcher and visual relation between its history and particular tab was much weaker. Firefox 90 preserves list of suggestions for partially typed URL. Firefox 56 closed this UI element on tab switch.
So it is a kind of inconsistency when some "attributes" of URL bar are shared between tabs (undo history) and some are tightly bound to each tab (suggested URLs when URL bar is focused).
(In reply to Drew Willcoxon :adw from comment #4)
In your example scenario, you can keep pressing Ctrl+Z/undo as many times as you need to get back to the last thing you typed.
The problem is that I am quite confused when I am getting "random" URLs in response to Ctrl+Z and there is no clue how many times it should be pressed to get real undo. It is easier to discard previous attempts and to start typing of desired URL from clean state. I took enough time for me to figure out that unrelated URLs in undo entries are just addresses from other tabs.
Description
•