Open Bug 1763745 Opened 4 years ago Updated 3 years ago

Pasting with the mouse button in the search area of a new tab has no effect when clipboard events are disabled

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 99
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vincent-moz, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0

Steps to reproduce:

  1. Open Firefox with ProfileManager.
  2. Create a new profile.
  3. Open about:config and switch dom.event.clipboardevents.enabled to false.
  4. Open a new tab.
    5a. In another application, select something.
    6a. In the search area (specific to a new tab), click with the middle button.

or

5b. In another application, select and copy something.
6b. In the search area, click on Paste via the context menu.

Actual results:

Nothing happens.

Expected results:

The text should be pasted. Note that instead of 6b, Ctrl-V works as expected.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Priority: -- → P3

Still occurs with FF 103.0.2.

Does dom.event.clipboardevents.enabled bring any benefit to disable it?

Blocks: gtkclipboard

(In reply to Martin Stránský [:stransky] (ni? me) from comment #3)

Does dom.event.clipboardevents.enabled bring any benefit to disable it?

I'm not sure I understand your question, but for security and privacy reasons (I don't want sites to know when I copy or paste to them).

In particular, there's https://superuser.com/questions/1595994/dont-let-websites-overwrite-clipboard-in-firefox-without-explicitly-giving-perm

(In reply to Vincent Lefevre from comment #4)

I'm not sure I understand your question, but for security and privacy reasons (I don't want sites to know when I copy or paste to them).

In particular, there's https://superuser.com/questions/1595994/dont-let-websites-overwrite-clipboard-in-firefox-without-explicitly-giving-perm

I see, didn't know about this feature.

You need to log in before you can comment on or make changes to this bug.