Opening new Tab overwrites X11-clipboard
Categories
(Core :: Widget: Gtk, defect, P2)
Tracking
()
People
(Reporter: oliver, Unassigned)
Details
(Keywords: regression, regressionwindow-wanted)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
- Marking some text (e.g. in terminal/xterm), which represents url.
- opening Tab, e.g. either with Ctrl-t or with "+"-symbol for new tab.
- clicking into url-bar, so that insertion of url can be done here
- pressing middle-mouse-button
Actual results:
- new tab is opened by FF (as result of action (2))
- url-bar contains url of an already opened tab (I think the last one opened before, or the one on the left side besides the new one), as result of action (4)
Expected results:
- new tab is opened by FF (as result of action (2))
- url, copied with action (1), will be inserted into the urlbar
Comment 1•7 years ago
|
||
Oliver, is that a new issue?
If so, could you please try to pin point which change caused this regression?
Comment 2•7 years ago
|
||
The issue is not new.
It came up with (I guess) one or two versions before the current one (65.0.1).
Comment 4•7 years ago
|
||
Would be great if you could try to run mozregression!
mozregression seems to be for creating windows-binaries only.
So I can't help you here.
Comment 6•7 years ago
|
||
Can you please explain what you mean byt the first step (Marking some text (e.g. in terminal/xterm), which represents url.)?
I don't understand what I need to do to reproduce your issue. Thanks.
Updated•7 years ago
|
First step means, using X11-clipboard to contain some text, which represents an URL.
One way could be: double-click in url-widget of a browser. The url then is highlighted.
With Middle-Mouse-Button the contents of the X11 clipboard could then be pasted into the url-widget of a new tab.
Another way would be: pressing left mouse button while mouse pointer is in a terminal.
Then moving the mouse while holding the left mouse button pressed. This marks the text area, filling the X11 clipboard with this text. If it contains an URL, it can be pasted into the url-widget of a new tab of firefox (or other browser).
When first opening a new browser-tab and then doing copy&paste, things work well.
When first copying, then opening a new tab and then pasting the url, sometimes it's overwritten with the url of an already opened tab.
Comment 8•7 years ago
|
||
I have attempted to reproduce like so:
- Open terminal.
- Write www.google.com in terminal and tap enter.
- Use the mouse to select the link that was posted.
- Open browser.
- Open a random page: www.yahoo.com
- Open a new tab.
- Middle-click inside the address bar.
Result: The link (www.google.com) selected in the terminal was properly copied into the address bar of the browser.
Therefore, the issue you described could not be reproduced.
Considering the second part of the actual result, "url-bar contains url of an already opened tab (I think the last one opened before, or the one on the left side besides the new one), as result of action (4)", I have the impression that there's still some confusion around the bug's steps to reproduce. The Address Bar contains a URL of a previously opened tab...? The last one opened how/when? You should include any previously made action into the steps to reproduce. I need to reproduce this issue myself in order to confirm it.
Which exact operating system are you using?
1.: The problem does not occur always. It occurs sometimes. So you would need to try more than once. Just open 5 Tabs or so and try to reproduce the issue by often doing the reproducing-steps of copy & open_tab & paste.
2.: Arch Linux. Firefox 66.0.3, i3wm 4.16.1.
Comment 10•7 years ago
|
||
It depends on your actual DE and the clipboard implementation there. I don't think it's reproducible with e10s disabled [1], correct?
[1] set browser.tabs.remote.autostart at about:config to false and restart browser
Comment 11•7 years ago
|
||
Since we don't have Arch Linux, I will not spend more time attempting to reproduce this issue. Can you please confirm Martin's suspicion?
More exactly, he wants you to:
- Open the browser that reproduces the issue, with a profile that reproduces the issue.
- Go to "about:config" page.
- Find the pref called "browser.tabs.remote.autostart" and set it to "false".
- Restart the browser (reopen it with the same profile).
- Attempt to reproduce the issue using your own steps.
- Come back with a report on whether it still reproduces or not after the pref modification.
Thank you, Oliver!
| Reporter | ||
Comment 12•7 years ago
|
||
Arch linux will not make the difference. And i3-wm is available on other systems too.
But I had the problem only with firefox so far.
I will try the about-config thing.
| Reporter | ||
Comment 14•7 years ago
|
||
I have set the
browser.tabs.remote.autostart
to false.
Since then I did not have experienced the problem anymore.
I did less intensive use of the copy&paste-way since some weeks, so maybe with more intense work the problem might occur again.
But at least for now it looks like the problem is solved with this changed setting.
Comment 15•7 years ago
|
||
(In reply to oliver from comment #14)
I have set the
browser.tabs.remote.autostart
to false.Since then I did not have experienced the problem anymore.
I did less intensive use of the copy&paste-way since some weeks, so maybe
with more intense work the problem might occur again.
But at least for now it looks like the problem is solved with this changed
setting.
Thanks, looks like the remote process clears the clipboard. btw. browser.tabs.remote.autostart is here mainly for debugging and it may make your browser slower/less stable so I don't recommend to use it in production.
Updated•7 years ago
|
| Reporter | ||
Comment 16•7 years ago
|
||
Yes, I have experienced lower performance. Inserting the URL now takes very long.
Is there a better solution?
Or will the problem be fixed in the Code, so that I can set the
browser.tabs.remote.autostart
to true afterwards?
Updated•7 years ago
|
Comment 17•7 years ago
|
||
Martin, should I still try and reproduce the issue with Ubuntu 16/18/Fedora? Is it confirmed, considering the latest comments? Do you have any other details that might be missing from the STR? Thanks.
What about oliver's question above? Will it be fixed? If yes, is it assignable? How should we proceed?
Comment 18•7 years ago
|
||
(In reply to Bodea Daniel [:danibodea] from comment #17)
Martin, should I still try and reproduce the issue with Ubuntu 16/18/Fedora?
No need that, Thanks.
What about oliver's question above? Will it be fixed? If yes, is it
assignable? How should we proceed?
As it's i3-wm/X11 bug only (at least I can't reproduce it) I'm not going to work on it. Maybe someone from i3-wm can help here, the code is at https://dxr.mozilla.org/mozilla-central/source/widget/gtk/nsClipboardX11.cpp
But I think this is a bug in i3-wm manager as clipboard is managed by your actual window manager so I recommend to file a bug against i3.
Comment 19•7 years ago
|
||
Considering that this issue will not serve any other purpose, I think it would be better to change it's component to another that includes i3-wm manager to ask help from there.
I will set this bug's component to (Core) Window Management and await for a dev triage. Is this component correct? please see comment 18.
Alternatively, please set the component back or to another that would be more appropriate.
NI me if further testing is needed, along with the necessary information.
Comment 20•7 years ago
|
||
(In reply to Bodea Daniel [:danibodea] from comment #19)
Considering that this issue will not serve any other purpose, I think it
would be better to change it's component to another that includes i3-wm
manager to ask help from there.
I will set this bug's component to (Core) Window Management and await for a
dev triage. Is this component correct? please see comment 18.
No, widget/gtk is the correct component here. When I mentioned windo manager I mean i3 window manager which is a complete different software/project - https://i3wm.org/. I recommend you to file the bug at https://i3wm.org/
Comment 21•7 years ago
|
||
Github bug: https://github.com/i3/i3/issues/3716
Comment 22•7 years ago
|
||
I experience this bug on a daily basis too (on Kubuntu). It's really annoying.
Comment 23•7 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #22)
I experience this bug on a daily basis too (on Kubuntu). It's really annoying.
Unfortunately there's no clipboard logging available to get some useful info. Filed as Bug 1581638.
Comment 24•7 years ago
|
||
Now the clipboard logging is in place, can you run Firefox as MOZ_LOG="WidgetClipboard:5" ./firefox and see if/when and how is the clipboard cleared? Thanks.
Updated•4 years ago
|
Comment 25•4 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:stransky, since the bug has high priority, could you please find another way to get the information or close the bug as INCOMPLETE if it is not actionable?
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Description
•