middle-clicking on tab insert text into address bar
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | unaffected |
firefox86 | --- | unaffected |
firefox87 | --- | wontfix |
firefox88 | --- | wontfix |
firefox89 | --- | verified |
People
(Reporter: exynil, Assigned: daisuke)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0
Steps to reproduce:
Firefox version: 87.0
- Copy MULTI-LINE text
- Open firefox
- Open a new tab
- Close the old tab
Actual results:
The tab is closed and the text from the clipboard is pasted into a new tab
Expected results:
Close a tab without pasting text from the clipboard into a new tab
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Tabbed Browser' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
I can reproduce on Nightly 89.0a1 Ubuntu20.04.
And I can also reproduce on Windows if middlemouse.paste = true.
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=81bec1bb5b4e34a819dc9159b194f1896edd2436&tochange=22e706c2ff1d4469907bc44c8c1bc256512553e7
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Daisuke, do you have time to look at this?
Assignee | ||
Comment 4•4 years ago
|
||
Thank you very much for reporting, Maxim!
And also, thank you very much for confirming, Alice0775!
Yes, I also could reproduce this issue on the current m-c on Ubuntu 18.04.5 LTS.
(Could not reproduce it on OSX 10.14.6 with/without middlemouse.paste
pref)
I will take a look at this.
(Thank you for letting me know, Drew!)
Assignee | ||
Comment 5•4 years ago
|
||
Sorry, I could reproduce it on OSX as well.
Assignee | ||
Comment 6•4 years ago
|
||
I investigated the reason for this issue.
First, even if we get rid of the patch of bug 1185358, we can reproduce a similar issue.
STR:
- Copy the following multiline test.
java
script:alert(1);
- Paste with middle click
Then a tab will be removed and alert(1);
is pasted to the URLBar by https://hg.mozilla.org/mozilla-central/rev/e4a60e1d9ef527ebc960f7ebc589b24e9d7681b1#l1.12 .
It seems that a fundamental fix is needed, such as when the tab is removed by middle-clicking, avoid pasting the value.
Assignee | ||
Comment 7•4 years ago
|
||
Comment 9•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Comment 10•4 years ago
|
||
I've verified that if I middle-click to the right of the plus sign, the one that opens a new tab, a mew tab is opened with the text copied on the address bar. As mentioned above, I have middlemouse.paste = true. Is this the expected result?
Assignee | ||
Comment 11•4 years ago
|
||
Thank you very much for the verifying and the reporting, Florencia!
Yeah, that is an unexpected result. Now, we are fixing the issue in bug 1710289.
Thanks.
Comment 12•4 years ago
|
||
Hi,
Thanks for the answer. Then I've verified that this has been fixed on Beta 89.0b10.
Regards, Flor.
Updated•4 years ago
|
Description
•