Jacek Caban : mshtml: Inherit scriptmode from parent window.

Alexandre Julliard julliard at winehq.org
Thu Oct 29 11:20:36 CDT 2009


Module: wine
Branch: master
Commit: d76720cc562b9122c5c04427decb1727c78bd562
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d76720cc562b9122c5c04427decb1727c78bd562

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Oct 28 22:55:26 2009 +0100

mshtml: Inherit scriptmode from parent window.

---

 dlls/mshtml/htmlwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 @@ HRESULT HTMLWindow_Create(HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow, HTML
         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();




More information about the wine-cvs mailing list