Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9130720e
Commit
9130720e
authored
Oct 20, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't use fire_event in postMessage.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b271b48d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+1
-1
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-0
htmlwindow.c
dlls/mshtml/htmlwindow.c
+8
-1
No files found.
dlls/mshtml/htmlevent.c
View file @
9130720e
...
...
@@ -1132,7 +1132,7 @@ HRESULT create_document_event_str(HTMLDocumentNode *doc, const WCHAR *type, IDOM
return
S_OK
;
}
static
HRESULT
create_document_event
(
HTMLDocumentNode
*
doc
,
eventid_t
event_id
,
DOMEvent
**
ret_event
)
HRESULT
create_document_event
(
HTMLDocumentNode
*
doc
,
eventid_t
event_id
,
DOMEvent
**
ret_event
)
{
nsIDOMEvent
*
nsevent
;
DOMEvent
*
event
;
...
...
dlls/mshtml/htmlevent.h
View file @
9130720e
...
...
@@ -88,6 +88,7 @@ HRESULT ensure_doc_nsevent_handler(HTMLDocumentNode*,eventid_t) DECLSPEC_HIDDEN;
void
fire_event_obj
(
EventTarget
*
,
DOMEvent
*
)
DECLSPEC_HIDDEN
;
HRESULT
create_document_event
(
HTMLDocumentNode
*
,
eventid_t
,
DOMEvent
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_document_event_str
(
HTMLDocumentNode
*
,
const
WCHAR
*
,
IDOMEvent
**
)
DECLSPEC_HIDDEN
;
HRESULT
create_event_from_nsevent
(
nsIDOMEvent
*
,
DOMEvent
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/htmlwindow.c
View file @
9130720e
...
...
@@ -2161,6 +2161,8 @@ static HRESULT WINAPI HTMLWindow6_get_maxConnectionsPerServer(IHTMLWindow6 *ifac
static
HRESULT
WINAPI
HTMLWindow6_postMessage
(
IHTMLWindow6
*
iface
,
BSTR
msg
,
VARIANT
targetOrigin
)
{
HTMLWindow
*
This
=
impl_from_IHTMLWindow6
(
iface
);
DOMEvent
*
event
;
HRESULT
hres
;
FIXME
(
"(%p)->(%s %s) semi-stub
\n
"
,
This
,
debugstr_w
(
msg
),
debugstr_variant
(
&
targetOrigin
));
...
...
@@ -2169,7 +2171,12 @@ static HRESULT WINAPI HTMLWindow6_postMessage(IHTMLWindow6 *iface, BSTR msg, VAR
return
E_FAIL
;
}
fire_event
(
This
->
inner_window
->
doc
,
EVENTID_MESSAGE
,
TRUE
,
&
This
->
inner_window
->
event_target
,
NULL
);
hres
=
create_document_event
(
This
->
inner_window
->
doc
,
EVENTID_MESSAGE
,
&
event
);
if
(
FAILED
(
hres
))
return
hres
;
fire_event_obj
(
&
This
->
inner_window
->
event_target
,
event
);
IDOMEvent_Release
(
&
event
->
IDOMEvent_iface
);
return
S_OK
;
}
...
...
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