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
60c9069f
Commit
60c9069f
authored
Oct 02, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Defer event script evaluation.
parent
3bfbd6b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
script.c
dlls/mshtml/script.c
+17
-2
No files found.
dlls/mshtml/script.c
View file @
60c9069f
...
...
@@ -753,12 +753,27 @@ static void parse_inline_script(ScriptHost *script_host, nsIDOMHTMLScriptElement
static
void
parse_script_elem
(
ScriptHost
*
script_host
,
nsIDOMHTMLScriptElement
*
nsscript
)
{
nsAString
src_str
,
event_str
;
const
PRUnichar
*
src
;
nsAString
src_str
;
nsresult
nsres
;
nsAString_Init
(
&
src_str
,
NULL
);
nsAString_Init
(
&
event_str
,
NULL
);
nsres
=
nsIDOMHTMLScriptElement_GetEvent
(
nsscript
,
&
event_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
const
PRUnichar
*
event
;
nsAString_GetData
(
&
event_str
,
&
event
);
if
(
*
event
)
{
TRACE
(
"deferring event %s script evaluation
\n
"
,
debugstr_w
(
event
));
nsAString_Finish
(
&
event_str
);
return
;
}
}
else
{
ERR
(
"GetAttribute(event) failed: %08x
\n
"
,
nsres
);
}
nsAString_Finish
(
&
event_str
);
nsAString_Init
(
&
src_str
,
NULL
);
nsres
=
nsIDOMHTMLScriptElement_GetSrc
(
nsscript
,
&
src_str
);
nsAString_GetData
(
&
src_str
,
&
src
);
...
...
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