Cannot read directory from drag and drop in sandboxed WebKitGTK (original) (raw)
October 27, 2022, 4:47pm 1
It seems that, with webkit_web_context_set_sandbox_enabled
set to true, dropping a directory results in a FileSystemFileEntry
instead of FileSystemDirectoryEntry
.
This can be reproduced with this demo:
Opening this demo with Epiphany, dragging and dropping a directory yields a single entry, rather than the whole directory tree. In a WebView without sandboxing, it works as expected.
Is this known/expected or should I file a bug?
mcatanzaro (Michael Catanzaro) October 27, 2022, 6:04pm 2
It’s a bug, certainly, but the question is where. I thought this would be handled by either a data transfer portal or a drag-and-drop portal, but they don’t seem to exist. So no clue how drag-and-drop is handled in sandboxed environments. Anyone know how this is supposed to work?
system (system) Closed November 26, 2022, 6:04pm 3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.