Data in X Primary Selection is pasted in the address bar when middle-click is used to open bookmark in new tab
Categories
(Firefox :: Address Bar, defect)
Tracking
()
People
(Reporter: leealwc, Assigned: daisuke)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
UA: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
The issue looks similar to bug 1696974, but appears to be different issues as bug 1696974 seems to be fixed already but this one is still reproducible.
The issue appears to happen when there are content in the X Primary Selection buffer, and the content contains newline character.
Steps to reproduce:
-
Select some text including newline character, to put them into the X Primary Selection buffer. The xclip utility can be used to demonstrate the issue (the \n seems to be necessary to reproduce the issue):
echo -e "xyz\n" | xclip -r -
In Firefox, open a New Tab. Let the focus stay in the address bar.
-
Middle-click on a bookmark (to open it in a new tab)
Expected result:
- The bookmark to open in a new tab.
- No change in the "New Tab" tab.
Actual result:
- The bookmark opened in a new tab.
- In the "New Tab" tab, "xyz " is pasted into the address bar.
I also think it could become a privacy issue if search engine suggestion is enabled.
I can reproduce this for bookmarks in the menubar and the toolbar but it is intermittent. Middle-clicking an empty part of a toolbar when a new tab is open does the same thing and is consistently reproducible. Pasting should only occur when middle-clicking inside the address bar.
Regression window:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=5f0f6477c734369a72fec1211b608eb14d33bd4a&tochange=db7158dfb86d26ee055be75542446811d0fbb572
Possibly regressed by Bug 1327589.
Comment 3•2 years ago
|
||
:daisuke, since you are the author of the regressor, bug 1327589, could you take a look?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Set release status flags based on info from the regressing bug 1327589
| Assignee | ||
Comment 5•2 years ago
|
||
Comment 7•2 years ago
•
|
||
Backed out for causing failures on browser_947914_button_paste.js
Updated•2 years ago
|
Comment 9•2 years ago
|
||
| bugherder | ||
Updated•2 years ago
|
Comment 10•2 years ago
|
||
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-firefox116towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•