Bug 453073 - Add allow-forms permission to plugin/delegated UI frames
diff --git a/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js b/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js
index 24f29f9..9c854d8 100644
--- a/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js
+++ b/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js
@@ -954,7 +954,7 @@
                     clearTimeout(loadTimeout);
                     loadTimeout = setTimeout(sendTimeout.bind(null, "Plugin handshake timeout for: " + url), 5000);
                 };
-                iframe.sandbox = "allow-scripts allow-same-origin"; //$NON-NLS-0$
+                iframe.sandbox = "allow-scripts allow-same-origin allow-forms"; //$NON-NLS-0$
         		iframe.style.width = iframe.style.height = "100%"; //$NON-NLS-0$
 	        	iframe.frameBorder = 0;
                 (parent || _parent).appendChild(iframe);
diff --git a/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js b/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js
index 222e9b4..142fcb5 100644
--- a/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js
+++ b/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js
@@ -338,7 +338,7 @@
 						iframe.id = 'HtmlHover'; //$NON-NLS-0$
 						iframe.name = 'HTML Hover'; //$NON-NLS-0$
 						iframe.type = "text/html"; //$NON-NLS-0$
-						iframe.sandbox = "allow-scripts allow-same-origin"; //$NON-NLS-0$
+						iframe.sandbox = "allow-scripts allow-same-origin allow-forms"; //$NON-NLS-0$
 						iframe.style.border = "none"; //$NON-NLS-0$
 						iframe.style.width = "auto"; //$NON-NLS-0$
 						iframe.style.height = "auto"; //$NON-NLS-0$
@@ -494,7 +494,7 @@
 			iframe.id = options.id;
 			iframe.name = options.id;
 			iframe.type = "text/html"; //$NON-NLS-0$
-			iframe.sandbox = "allow-scripts allow-same-origin"; //$NON-NLS-0$
+			iframe.sandbox = "allow-scripts allow-same-origin allow-forms"; //$NON-NLS-0$
 			iframe.frameborder = options.border !== undefined ? options.border : 0;
 			iframe.src = href;
 			iframe.style.border = "none"; //$NON-NLS-0$
diff --git a/bundles/org.eclipse.orion.client.ui/web/orion/editorCommands.js b/bundles/org.eclipse.orion.client.ui/web/orion/editorCommands.js
index fd4145d..7b4b8f4 100644
--- a/bundles/org.eclipse.orion.client.ui/web/orion/editorCommands.js
+++ b/bundles/org.eclipse.orion.client.ui/web/orion/editorCommands.js
@@ -50,7 +50,7 @@
 		iframe.id = options.id;
 		iframe.name = options.id;
 		iframe.type = "text/html"; //$NON-NLS-0$
-		iframe.sandbox = "allow-scripts allow-same-origin"; //$NON-NLS-0$
+		iframe.sandbox = "allow-scripts allow-same-origin allow-forms"; //$NON-NLS-0$
 		iframe.frameborder = options.border !== undefined ? options.border : 1;
 		iframe.src = href;
 		iframe.className = "delegatedUI"; //$NON-NLS-0$
diff --git a/bundles/org.eclipse.orion.client.ui/web/shell/shellPage.js b/bundles/org.eclipse.orion.client.ui/web/shell/shellPage.js
index 9c559d4..dce0138 100644
--- a/bundles/org.eclipse.orion.client.ui/web/shell/shellPage.js
+++ b/bundles/org.eclipse.orion.client.ui/web/shell/shellPage.js
@@ -753,7 +753,7 @@
 						iframe.id = name;

 						iframe.name = name;

 						iframe.type = "text/html"; //$NON-NLS-0$

-						iframe.sandbox = "allow-scripts allow-same-origin"; //$NON-NLS-0$

+						iframe.sandbox = "allow-scripts allow-same-origin allow-forms"; //$NON-NLS-0$

 						iframe.frameborder = 1;

 						iframe.src = href;

 						iframe.className = "delegatedUI"; //$NON-NLS-0$