Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

pictures copy & pasting behaviour #4

Closed
paulsetchko opened this issue Jul 25, 2019 · 4 comments
Closed

pictures copy & pasting behaviour #4

paulsetchko opened this issue Jul 25, 2019 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@paulsetchko
Copy link

paulsetchko commented Jul 25, 2019

the page creates a text input element when trying to insert a picture in a tweet.
before ctrl+v:
image
after ctrl+v:
image

steps to reproduce:

  1. Copy any picture into the clipboard manager
  2. Launch the browser.
  3. Open the twitter main page (https://twitter.com)
  4. Click the "What's happening?" text input element
  5. Press "ctrl+v" keys combination

I'm using Firefox 68.0 on Linux Mint Tessa with adblock and ghostery extensions that I've already tried disabling which didn't help, sadly.

@ReimarPB
Copy link
Contributor

For now, before it gets fixed, you will have to right click and click "paste" to insert an image and if this happens, pressing any letter will remove the input field. I will look into this issue, though.

@paulsetchko
Copy link
Author

thanks, it did the trick!

@zusorio
Copy link
Owner

zusorio commented Jul 25, 2019

So this bug is somewhat changed in d305e0b as now images appear then disappear. What needs to be done is I need to figure out what type of content is in the clipboard. If it's an image let twitter handle the paste and if it's text cancel the propagation. I just haven't figured it out yet. Help is appreciated

@zusorio zusorio added help wanted Extra attention is needed question Further information is requested and removed question Further information is requested labels Jul 25, 2019
@twilight-sparkle-irl
Copy link

twilight-sparkle-irl commented Aug 4, 2019

@ZusorCode This stackoverflow might be useful as it has a few functions for telling what type of thing is being pasted, but if all else fails, I at one point wrote an addon that'd let you monkey patch Twitter's code.

zusorio added a commit that referenced this issue Sep 19, 2019
Fix #4, #6, #9, and probably everything else too
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants