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
dffb5e05
Commit
dffb5e05
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 when setting IHTMLDocument2::location for detached documents.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
cb14ca2a
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 @
dffb5e05
...
...
@@ -6089,10 +6089,12 @@ static HRESULT HTMLDocumentNode_location_hook(DispatchEx *dispex, WORD flags, DI
{
HTMLDocumentNode
*
This
=
impl_from_DispatchEx
(
dispex
);
if
(
!
(
flags
&
DISPATCH_PROPERTYPUT
)
||
!
This
->
outer_
window
)
if
(
!
(
flags
&
DISPATCH_PROPERTYPUT
)
||
!
This
->
window
)
return
S_FALSE
;
if
(
!
This
->
window
->
base
.
outer_window
)
return
E_FAIL
;
return
IDispatchEx_InvokeEx
(
&
This
->
outer_window
->
base
.
IDispatchEx_iface
,
DISPID_IHTMLWINDOW2_LOCATION
,
return
IDispatchEx_InvokeEx
(
&
This
->
window
->
base
.
outer_window
->
base
.
IDispatchEx_iface
,
DISPID_IHTMLWINDOW2_LOCATION
,
0
,
flags
,
dp
,
res
,
ei
,
caller
);
}
...
...
dlls/mshtml/tests/navigation.js
View file @
dffb5e05
...
...
@@ -124,6 +124,7 @@ function detached_iframe_doc() {
expect_exception
(
function
()
{
origDoc
.
documentElement
;
});
expect_exception
(
function
()
{
origDoc
.
domain
;
});
expect_exception
(
function
()
{
origDoc
.
frames
;
});
expect_exception
(
function
()
{
origDoc
.
location
=
"blank.html"
;
});
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