Bug 1757397
Summary: | Cannot drag and drop image from Nautilus to Firefox | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gwendal <ezwen-redhatbugzilla> | ||||||||||
Component: | firefox | Assignee: | Martin Stransky <stransky> | ||||||||||
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 31 | CC: | 0xalen+redhat, anto.trande, gecko-bugs-nobody, jhorak, john.j5live, kengert, pjasicek, rhughes, rstrode, sandmann, stransky | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2020-01-08 10:28:06 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Bug Depends On: | |||||||||||||
Bug Blocks: | 1054334 | ||||||||||||
Attachments: |
|
Note: this work with Brave Browser (ie. chromium) Can you please try firefox-x11 if that works? Thanks. I just tried, and yes it works with firefox-x11! Another information: it seems that it does not necessarily paste this text with drag and dropping : --------- x-special/nautilus-clipboard copy file:///home/<username>/test/tuesday-start.png -------- but instead it seems to paste the current content of the clipboard − and probably the last thing I did was to put the image in the clipboard, before attempting to drag it I just tested that with https://pasteboard.co/ and it works for me *but* I had to create a new profile. It doesn't work with my current default profile I use. So can you try in safe mode and/or with a new ff profile? Maybe some extension is blocking it or so. I tried with a fresh firefox profile, and the problem remains :/ strange! Can you try upstream nightly binary under wayland? (see https://fedoraproject.org/wiki/How_to_debug_Firefox_problems?rd=Bug_info_Firefox#Testing_Mozilla_binaries) If that fails, can you attach a log from D&D? Run ff as: MOZ_LOG="nsDragService:5" ./firefox Thanks. The problem still occurs with firefox nightly (firefox-71.0a1.en-US.linux-x86_64) running with wayland on a fresh profile. I started it with: MOZ_ENABLE_WAYLAND=1 ./firefox -ProfileManager -no-remote Then I started firefox nightly a second time on a fresh profile with the variable you gave like this: MOZ_LOG="nsDragService:5" MOZ_ENABLE_WAYLAND=1 ./firefox -ProfileManager -no-remote I went to a Github issue, tried to drag and drop an image in a comment, and then closed firefox. I'll attach the log right after this comment. Created attachment 1621771 [details]
logs with MOZ_LOG="nsDragService:5"
Can you also please try https://pasteboard.co/ which I used for testing? It has an advantage that you don't need to log in to paste the image there. Created attachment 1621874 [details]
logs with MOZ_LOG="nsDragService:5" when visiting pasteboard
Sure! Here you go.
Gwendal, does the pasteboard.co work for you or not? Thanks. Ah, I can reproduce the bug on Fedora 31 with pasteboard.co too. Strange, I can reproduce that with Fedora builds but it works with Mozilla binaries. Looks like a Fedora specific bug. Ahh, I see you can reproduce that with nightly too. Hm, I spend half of a day to poke this but without any result. I see the broken behavior with both X11 and Wayland Firefoxes, pasteboard.co works randomly. But what I think interesting is a minimal tetscase located at https://www.w3schools.com/html/html5_draganddrop.asp It seems to always work for me. Gwendal, can you please try to test the testcase at https://www.w3schools.com/html/html5_draganddrop.asp ? Launch the testcase by "Try it yourself" button and try to paste an image to a rectangle, it should show the image after that. Thanks. It seems to work for me as well, but I think it is a different case than this bug, as it only manipulates elements inside the page, instead of receiving data dragged from the file explorer of the system? (In reply to Gwendal from comment #16) > It seems to work for me as well, but I think it is a different case than > this bug, as it only manipulates elements inside the page, instead of > receiving data dragged from the file explorer of the system? That testcase should also work when you drag a image from filemanager. There's a very simple testcase available - just drag image to firefox titlebar and it should open in a new tab. That works for me in 100% cases. I'm still investigating why the in-page JS code does not work. Created attachment 1635272 [details]
simple D&D testcase
Okay, I created this simple testcase - It works for me in Firefox and Chromium. Can you please test it? I suspect pasteboard and other may contain some JS bugs which break the D&D there.
Thanks.
Please reopen if you can reproduce it with the testcase. Thanks. Sorry for the delay! I made a few more tests with firefox-71.0-15.fc31: - Drag and drop in Github now works for some reason! So it seems my initial problem was solved at some point. - your simple test case works as well, - but https://pasteboard.co/ still does not work though, strangely Therefore I am fine with closing the issue seems it works in most cases, while previously it worked in zero cases (with my setup). thanks for your investigation! (I add this comment to remove needinfo requests). |
Created attachment 1621381 [details] video showing the problem Description of problem: In some web pages, it should be possible to drag and drop pictures from the file explorer into an element of the web page (eg. adding an image to a Github issue). Since I upgrade to Fedora 31, I cannot drag and drop an image from Nautilus to a Github issue opened in Firefox anymore. Version-Release number of selected component (if applicable): - firefox-69.0.1-3.fc31 - nautilus-3.34.0-1.fc31 - gnome-shell-3.34.0-3.fc31 How reproducible: always Steps to Reproduce: 1. Open Firefox 2. Log into Github 3. In a Github project, open an issue 4. Drag and drop an image from Nautilus into the issue text editor Actual results: This text is pasted: ----------- x-special/nautilus-clipboard copy file:///home/<username>/test/tuesday-start.png ----------- Expected results: The image shoud be uploaded to Github and shown in the issue.