mshtml: Inherit scriptmode from parent window.
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
index 9b8dda3..5b07b0f 100644
--- a/dlls/mshtml/htmlwindow.c
+++ b/dlls/mshtml/htmlwindow.c
@@ -1582,7 +1582,7 @@
         window->nswindow = nswindow;
     }
 
-    window->scriptmode = SCRIPTMODE_GECKO;
+    window->scriptmode = parent ? parent->scriptmode : SCRIPTMODE_GECKO;
     list_init(&window->script_hosts);
 
     window->task_magic = get_task_target_magic();