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
6fd383e8
Commit
6fd383e8
authored
Apr 04, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLWindow6::postMessage semi-stub implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
feed9d47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
htmlwindow.c
dlls/mshtml/htmlwindow.c
+10
-2
jstest.html
dlls/mshtml/tests/jstest.html
+10
-0
No files found.
dlls/mshtml/htmlwindow.c
View file @
6fd383e8
...
...
@@ -2134,8 +2134,16 @@ 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
);
FIXME
(
"(%p)->(%s %s)
\n
"
,
This
,
debugstr_w
(
msg
),
debugstr_variant
(
&
targetOrigin
));
return
E_NOTIMPL
;
FIXME
(
"(%p)->(%s %s) semi-stub
\n
"
,
This
,
debugstr_w
(
msg
),
debugstr_variant
(
&
targetOrigin
));
if
(
!
This
->
inner_window
->
doc
)
{
FIXME
(
"No document
\n
"
);
return
E_FAIL
;
}
fire_event
(
This
->
inner_window
->
doc
,
EVENTID_MESSAGE
,
TRUE
,
&
This
->
inner_window
->
doc
->
node
,
NULL
,
NULL
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLWindow6_toStaticHTML
(
IHTMLWindow6
*
iface
,
BSTR
bstrHTML
,
BSTR
*
pbstrStaticHTML
)
...
...
dlls/mshtml/tests/jstest.html
View file @
6fd383e8
...
...
@@ -362,6 +362,15 @@ function test_xhr() {
ok
(
typeof
(
xhr
)
===
"object"
,
"typeof(xhr) = "
+
typeof
(
xhr
));
}
function
test_sendMessage
()
{
var
onmessage_called
=
false
;
window
.
onmessage
=
function
()
{
onmessage_called
=
true
;
}
window
.
postMessage
(
"test"
,
"*"
);
ok
(
onmessage_called
,
"onmessage not called"
);
}
var
globalVar
=
false
;
function
runTests
()
{
...
...
@@ -388,6 +397,7 @@ function runTests() {
test_language_attribute
();
test_text_node
();
test_xhr
();
test_sendMessage
();
var
r
=
window
.
execScript
(
"globalVar = true;"
);
ok
(
r
===
undefined
,
"execScript returned "
+
r
);
...
...
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