kazcfz / Copy-n-Paste

Copy-n-Paste: Clipboard Upload Simplified extension for Chromium and Firefox. Simplifies uploading copied screenshots, images, files from clipboard. No need to save as files. Similar to Opera Easy Files.
https://chromewebstore.google.com/detail/copy-n-paste-image-upload/bnmdedmhngbeofnafobjmcihealecgnf
GNU General Public License v3.0
15 stars 3 forks source link

Chromium/Firefox known issues/differences #25

Open kazcfz opened 1 month ago

kazcfz commented 1 month ago

Multiple files

Chromium can read multiple files from the clipboard in any event. Firefox reads only 1 file in paste events. Drag and drop remains compatible. (See Bug 864052)

Copying GIF from the web

Copying animated GIF images from Chrome results in a static image. Copying from Firefox allows previewing and attaching the animated GIF.

unia909 commented 1 week ago

This extension doesn't work on the website I'm using. I can't tell the address, but it's due to a glitchy iframe handling. It shows error in content.js:172 document.getElementsByClassName(...)[0] is undefined

kazcfz commented 1 week ago

@unia909 Does the iframe happen to have sandbox attributes? Perhaps with allow-same-origin value too? Some webpages also seem to 'recreate' their iframes, since the original iframe element's no longer in the DOM.

unia909 commented 1 week ago

@kazcfz iframe does not have sandbox attribute nor allow-same-origin. But it has the seamless attribute. Maybe this creates script conflicts. Website seems to recreate iframes bc I can't find iframe that code is requesting