diff --git a/src/vs/workbench/contrib/webview/browser/pre/index.html b/src/vs/workbench/contrib/webview/browser/pre/index.html
index fa7b15e39c8547..c8bc40568d3044 100644
--- a/src/vs/workbench/contrib/webview/browser/pre/index.html
+++ b/src/vs/workbench/contrib/webview/browser/pre/index.html
@@ -5,7 +5,7 @@
+ content="default-src 'none'; script-src 'sha256-P8o4sb+/oKsV3qM+wxe7VdC9SD4w9o5fftHmyimE/eU=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
void} callback
*/
@@ -881,7 +893,9 @@
window.addEventListener('keydown', handleInnerKeydown);
window.addEventListener('keyup', handleInnerKeyup);
window.addEventListener('dragenter', handleInnerDragStartEvent);
- window.addEventListener('dragover', handleInnerDragStartEvent);
+ window.addEventListener('dragover', handleInnerDragEvent);
+ window.addEventListener('drag', handleInnerDragEvent);
+
onDomReady(() => {
if (!document.body) {
@@ -1165,7 +1179,8 @@
});
contentWindow.addEventListener('dragenter', handleInnerDragStartEvent);
- contentWindow.addEventListener('dragover', handleInnerDragStartEvent);
+ contentWindow.addEventListener('dragover', handleInnerDragEvent);
+ contentWindow.addEventListener('drag', handleInnerDragEvent);
unloadMonitor.onIframeLoaded(newFrame);
}