mbnuqw / sidebery

Firefox extension for managing tabs and bookmarks in sidebar.
MIT License
3.43k stars 175 forks source link

Drag and Drop Image to Open in Firefox #1639

Open Ardemus opened 5 months ago

Ardemus commented 5 months ago

Steps to reproduce

Actual behavior

(No observable change)

Expected behavior

  1. Firefox opens the image
  2. The address bar displays a file URL, like file:///home/nick/Downloads/Screenshot%202024-05-09%201950.jpg
  3. The firefox tab title changes to the file name
  4. The sidebery tab title changes to the file name

System

Manjaro: KDE Plasma 5.27.11 / KDE Frameworks 5.115.0 / QT 5.15.12 / Kernel 6.6.26-1-MANJARO

Firefox version

125.0.1

Sidebery version

5.2.0

Logs

No log messages produced
Ardemus commented 5 months ago

NOTE:

If you manually open a local image in Firefox (in my case right click on the file and choose Open With > Firefox Web Browser), it will open as expected.

If you then drag the same or a different image onto that tab's content area, a bright gradient moves left to right across the tab in the Sidebery tab list but the new file is not opened.

Ardemus commented 5 months ago

NOTE 2

I haven't tested it, but I suspect that this issue also affects other file types like json and html.

NOTE 3

Feature suggestion #1640 works around this issue. If I had to pick between the two solutions I'd pick #1640 because dropping images directly onto Sidebery is slightly easier than opening a new tab then dropping images there. However, if other file types are affected by this issue then my priority would be getting the largest number of file types working.