Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ac6cbb79
Commit
ac6cbb79
authored
Mar 28, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Set script engine state to SCRIPTSTATE_CONNECTED when page is loaded.
parent
0db1b86c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsevents.c
dlls/mshtml/nsevents.c
+1
-0
script.c
dlls/mshtml/script.c
+10
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
ac6cbb79
...
...
@@ -450,6 +450,7 @@ HTMLDOMNode *get_node(HTMLDocument*,nsIDOMNode*);
void
release_nodes
(
HTMLDocument
*
);
void
release_script_hosts
(
HTMLDocument
*
);
void
connect_scripts
(
HTMLDocument
*
);
void
doc_insert_script
(
HTMLDocument
*
,
nsIDOMHTMLScriptElement
*
);
IHTMLElementCollection
*
create_all_collection
(
HTMLDOMNode
*
);
...
...
dlls/mshtml/nsevents.c
View file @
ac6cbb79
...
...
@@ -136,6 +136,7 @@ static nsresult NSAPI handle_load(nsIDOMEventListener *iface, nsIDOMEvent *event
if
(
!
This
->
doc
)
return
NS_OK
;
connect_scripts
(
This
->
doc
);
setup_nswindow
(
This
->
doc
->
window
);
if
(
This
->
editor_controller
)
{
...
...
dlls/mshtml/script.c
View file @
ac6cbb79
...
...
@@ -171,6 +171,16 @@ static void release_script_engine(ScriptHost *This)
This
->
script_state
=
SCRIPTSTATE_UNINITIALIZED
;
}
void
connect_scripts
(
HTMLDocument
*
doc
)
{
ScriptHost
*
iter
;
LIST_FOR_EACH_ENTRY
(
iter
,
&
doc
->
script_hosts
,
ScriptHost
,
entry
)
{
if
(
iter
->
script_state
==
SCRIPTSTATE_STARTED
)
IActiveScript_SetScriptState
(
iter
->
script
,
SCRIPTSTATE_CONNECTED
);
}
}
#define ACTSCPSITE_THIS(iface) DEFINE_THIS(ScriptHost, ActiveScriptSite, iface)
static
HRESULT
WINAPI
ActiveScriptSite_QueryInterface
(
IActiveScriptSite
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment