Closed Bug 2042893 Opened 2 months ago Closed 2 months ago

Middle click paste into address bar doesn't replace existing content anymore

Categories

(Firefox :: Address Bar, defect, P1)

defect

Tracking

()

VERIFIED FIXED
153 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox151 --- wontfix
firefox152 --- verified
firefox153 --- verified

People

(Reporter: manuel, Assigned: mbeier)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [sng])

Attachments

(2 files)

STR:

  1. open a website (e.g. https://wikipedia.org)
  2. select some text to put into secondary clipboard (likely linux-only)
  3. middle click on address bar

Expected result: content from address bar is replaced with selected content
Got result: selected content is pasted at position where the middle click happened

Regression bug found via mozregression (larger regression window than usual, but picked most likely bug: https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=e41f1f9aa58a7d4c0c79bc3c9e4a234136e83dc7&tochange=602084a80545c3aa2879ec54585f298966b00839)

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

:mbeier, since you are the author of the regressor, bug 2030983, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

This happened because converting urlbar-input-container from a xul hbox to an html div caused "click" events to not fire because "click" only fires for the primary mouse button in HTML.

Assignee: nobody → mbeier
Status: NEW → ASSIGNED
Flags: needinfo?(mbeier)
Severity: -- → S4
Priority: -- → P1
Whiteboard: [sng]
Pushed by mbeier@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/64ac51f872b9 https://hg.mozilla.org/integration/autoland/rev/2c047828543b Make sure middle click paste into address bar replaces existing content. r=urlbar-reviewers,jteow
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch

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

For more information, please visit BugBot documentation.

Flags: needinfo?(mbeier)
QA Whiteboard: [search] [qa-triage-done-c153/b152] [qa-ver-needed-c153/b152]

Reproducible on a 2026-05-27 Firefox Nightly build on Ubuntu 22, using the STR from Comment 0.

Verified as fixed on Firefox Nightly 153.0a1 on Ubuntu 22.

Status: RESOLVED → VERIFIED
QA Whiteboard: [search] [qa-triage-done-c153/b152] [qa-ver-needed-c153/b152] → [search] [qa-triage-done-c153/b152] [qa-ver-done-c153/b152]

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Users have to manually clear the urlbar before middle click pasting on Linux
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: See https://bugzilla.mozilla.org/show_bug.cgi?id=2042893#c0
  • Risk associated with taking this patch: low
  • Explanation of risk level: Very small change
  • String changes made/needed?: no
  • Is Android affected?: no
Attachment #9595284 - Flags: approval-mozilla-beta?
Flags: qe-verify+

This happened because converting urlbar-input-container from a xul hbox to an html div caused "click" events to not fire because "click" only fires for the primary mouse button in HTML.

Original Revision: https://phabricator.services.mozilla.com/D303007

Flags: needinfo?(mbeier) → in-testsuite+
Attachment #9595284 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [search] [qa-triage-done-c153/b152] [qa-ver-done-c153/b152] → [search] [qa-triage-done-c153/b152][uplift][qa-ver-needed-c153/b152]
QA Contact: oardelean

Verified as fixed on Firefox 152.0b10 on Ubuntu 22.

QA Whiteboard: [search] [qa-triage-done-c153/b152][uplift][qa-ver-needed-c153/b152] → [search] [qa-triage-done-c153/b152][uplift][qa-ver-done-c153/b152]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: