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
2e77a62f
Commit
2e77a62f
authored
Dec 05, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Dec 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Return failure in IHTMLDocument2::frames for detached documents.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
ffb7ace4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
htmldoc.c
dlls/mshtml/htmldoc.c
+4
-2
navigation.js
dlls/mshtml/tests/navigation.js
+1
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
2e77a62f
...
...
@@ -914,11 +914,13 @@ static HRESULT WINAPI HTMLDocument_get_frames(IHTMLDocument2 *iface, IHTMLFrames
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
This
->
outer_
window
)
{
if
(
!
This
->
window
)
{
/* Not implemented by IE */
return
E_NOTIMPL
;
}
return
IHTMLWindow2_get_frames
(
&
This
->
outer_window
->
base
.
IHTMLWindow2_iface
,
p
);
if
(
!
This
->
window
->
base
.
outer_window
)
return
E_FAIL
;
return
IHTMLWindow2_get_frames
(
&
This
->
window
->
base
.
outer_window
->
base
.
IHTMLWindow2_iface
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_get_embeds
(
IHTMLDocument2
*
iface
,
IHTMLElementCollection
**
p
)
...
...
dlls/mshtml/tests/navigation.js
View file @
2e77a62f
...
...
@@ -119,6 +119,7 @@ function detached_iframe_doc() {
expect_exception
(
function
()
{
origDoc
.
onclick
;
},
true
);
expect_exception
(
function
()
{
origDoc
.
toString
;
},
true
);
expect_exception
(
function
()
{
origDoc
.
toString
();
},
true
);
expect_exception
(
function
()
{
origDoc
.
frames
;
});
expect_exception
(
function
()
{
origDoc
.
readyState
;
},
true
);
expect_exception
(
function
()
{
origDoc
.
URL
;
});
expect_exception
(
function
()
{
origDoc
.
URL
=
"blank.html"
;
});
...
...
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