You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't prevent dropped file from opening in webview #13811
Operating System (Platform and Version): macOS 10.13.5
Expected Behavior
By default, dropping a file to a webview will trigger electron to open it within the webview.
I expect there is some way to prevent it.
Actual behavior
I can not find a way to prevent it.
To Reproduce
I'm trying to prevent the default drop behavior of Electron by adding the following code to renderer process.
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. For most questions about Electron there are a lot of options.
Check out the Electron community. There are also a bunch of helpful people in this community forum that should be willing to point you in the right direction.
#12655 disabled this behaviour by default in top-level frames. It should be disabled for webview too (though is in general fairly unstable, and I'd recommend finding a way to do what you need without it. Consider <iframe>s or an architecture that doesn't require embedding content).
Reopening this because this behaviour shouldn't be happening in webviews.
Activity
welcome commentedon Jul 26, 2018
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
sofianguy commentedon Jul 27, 2018
Thanks for reaching out!
Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. For most questions about Electron there are a lot of options.
Check out the Electron community. There are also a bunch of helpful people in this community forum that should be willing to point you in the right direction.
nornagon commentedon Jul 27, 2018
#12655 disabled this behaviour by default in top-level frames. It should be disabled for webview too (though is in general fairly unstable, and I'd recommend finding a way to do what you need without it. Consider <iframe>s or an architecture that doesn't require embedding content).
Reopening this because this behaviour shouldn't be happening in webviews.
fix: send null in debugger callback when no error
fix: send null in debugger callback when no error (#14814)