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
49c72775
Commit
49c72775
authored
Nov 18, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added support for IHTMLFrameBase::put_src call on detached element.
parent
90017fb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
htmlframebase.c
dlls/mshtml/htmlframebase.c
+15
-2
nav_test.html
dlls/mshtml/tests/nav_test.html
+15
-0
No files found.
dlls/mshtml/htmlframebase.c
View file @
49c72775
...
...
@@ -134,8 +134,21 @@ static HRESULT WINAPI HTMLFrameBase_put_src(IHTMLFrameBase *iface, BSTR v)
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
if
(
!
This
->
content_window
||
!
This
->
element
.
node
.
doc
||
!
This
->
element
.
node
.
doc
->
basedoc
.
window
)
{
FIXME
(
"detached element
\n
"
);
return
E_FAIL
;
nsAString
nsstr
;
nsresult
nsres
;
nsAString_InitDepend
(
&
nsstr
,
v
);
if
(
This
->
nsframe
)
nsres
=
nsIDOMHTMLFrameElement_SetSrc
(
This
->
nsframe
,
&
nsstr
);
else
nsres
=
nsIDOMHTMLIFrameElement_SetSrc
(
This
->
nsiframe
,
&
nsstr
);
nsAString_Finish
(
&
nsstr
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"SetSrc failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
return
navigate_url
(
This
->
content_window
,
v
,
This
->
element
.
node
.
doc
->
basedoc
.
window
->
uri
,
BINDING_NAVIGATED
);
...
...
dlls/mshtml/tests/nav_test.html
View file @
49c72775
...
...
@@ -43,9 +43,24 @@ function window_navigate_test() {
iframe
.
contentWindow
.
navigate
(
"about:blank"
);
}
function
detached_src_test
()
{
var
iframe
=
document
.
createElement
(
"iframe"
);
var
onload_called
=
false
;
iframe
.
onload
=
function
()
{
onload_called
=
true
;
next_test
();
}
iframe
.
src
=
"blank.html"
;
document
.
body
.
appendChild
(
iframe
);
ok
(
onload_called
===
false
,
"called onload too early?"
);
}
var
tests
=
[
nav_back_test
,
window_navigate_test
,
detached_src_test
,
function
()
{
external
.
reportSuccess
();
}
];
...
...
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