Closed Bug 1836051 Opened 1 years ago Closed 1 year ago

URL text is selected when switching from a loaded tab and not selected when switching from a new tab

Categories

(Firefox :: Address Bar, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox113 --- wontfix
firefox114 --- wontfix
firefox115 --- verified
firefox116 --- verified

People

(Reporter: atrif, Assigned: daisuke)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [snt-scrubbed] [search-papercut])

Attachments

(3 files, 3 obsolete files)

Attached image tab_switch.gif

Found in

  • 115.0a1

Affected versions

  • 115.0a1 (2023-05-31)
  • 114.0RC2
  • 113.0.2

Tested platforms

  • Affected platforms: Windows10 x64, Ubuntu 20.04, macOS 12
  • Unaffected platforms: none

Preconditions

  • new profile
  • have a random webpage loaded in a new tab
  • have a new tab opened with an empty URL bar

Steps to reproduce

  1. Open a new tab and type a random text inside the URL bar.
  2. Switch to the tab that has the loaded webpage and back and observe the URL bar.
  3. Switch to the new tab with the empty URL bar and back and observe the URL bar.

Expected result

  • Switching from a new tab or a loaded tab back to the tab that contains the text behaves the same.

Actual result

  • switching from a loaded tab will select the text inside the URL bar
  • switching from a new tab will not select the text and will move the caret to the left side

Regression range

  • Reproduced with Firefox 111.0a1 (2023-02-02) as well. I will search for one ASAP if there is one.

Additional notes

  • Attached a screen recording.

Set release status flags based on info from the regressing bug 1565751

:daisuke, since you are the author of the regressor, bug 1565751, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(daisuke)
Assignee: nobody → daisuke
Status: NEW → ASSIGNED
Flags: needinfo?(daisuke)
Whiteboard: [snt-scrubbed] [search-papercut]
Attachment #9337942 - Attachment is obsolete: true
Attachment #9337943 - Attachment is obsolete: true
Attachment #9337948 - Attachment is obsolete: true
Attachment #9337948 - Attachment is obsolete: false
Attachment #9337941 - Attachment is obsolete: true
Attachment #9337948 - Attachment description: Bug 1836051: Make the original URLbar to revert its previous focus state when switching tabs → Bug 1836051: Make the urlbar to revert its previous focus state when switching tabs
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b15e56c19bb7 Make the urlbar to revert its previous focus state when switching tabs r=tabbrowser-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/1b340c6a4e28 Restore selection range when tab switching r=tabbrowser-reviewers,mconley
Pushed by dakatsuka.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7ccb930352bf Make the urlbar to revert its previous focus state when switching tabs r=tabbrowser-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/513f9d3ebb82 Restore selection range when tab switching r=tabbrowser-reviewers,mconley
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Flags: needinfo?(daisuke) → in-testsuite+

The patch landed in nightly and beta is affected.
:daisuke, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox115 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(daisuke)

Comment on attachment 9337948 [details]
Bug 1836051: Make the urlbar to revert its previous focus state when switching tabs

Beta/Release Uplift Approval Request

  • User impact if declined: When user selects a tab, the text on the urlbar is selected or not depending on the condition.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change affects only tab switching.
  • String changes made/needed: None
  • Is Android affected?: Unknown
Flags: needinfo?(daisuke)
Attachment #9337948 - Flags: approval-mozilla-beta?
Attachment #9338233 - Flags: approval-mozilla-beta?

Comment on attachment 9337948 [details]
Bug 1836051: Make the urlbar to revert its previous focus state when switching tabs

Approved for 115.0b8.

Attachment #9337948 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment on attachment 9338233 [details]
Bug 1836051: Restore selection range when tab switching

Approved for 115.0b8.

Attachment #9338233 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Hello,

Confirming this issue as verified fixed on 115.0b8(20230620180051) and 116.0a1(20230621040008).
Verified using macOS 13.1, Ubuntu 22 and Windows 11.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: