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
db12c470
Commit
db12c470
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: Skip navigation handling on anchor/area elements for detached documents.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
dffb5e05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
htmlanchor.c
dlls/mshtml/htmlanchor.c
+9
-3
No files found.
dlls/mshtml/htmlanchor.c
View file @
db12c470
...
...
@@ -48,12 +48,15 @@ static HRESULT navigate_href_new_window(HTMLElement *element, nsAString *href_st
IUri
*
uri
;
HRESULT
hres
;
if
(
!
element
->
node
.
doc
->
window
->
base
.
outer_window
)
return
S_OK
;
nsAString_GetData
(
href_str
,
&
href
);
hres
=
create_relative_uri
(
element
->
node
.
doc
->
outer_window
,
href
,
&
uri
);
hres
=
create_relative_uri
(
element
->
node
.
doc
->
window
->
base
.
outer_window
,
href
,
&
uri
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
navigate_new_window
(
element
->
node
.
doc
->
outer_window
,
uri
,
target
,
NULL
,
NULL
);
hres
=
navigate_new_window
(
element
->
node
.
doc
->
window
->
base
.
outer_window
,
uri
,
target
,
NULL
,
NULL
);
IUri_Release
(
uri
);
return
hres
;
}
...
...
@@ -110,7 +113,10 @@ static HRESULT navigate_href(HTMLElement *element, nsAString *href_str, nsAStrin
const
PRUnichar
*
href
;
HRESULT
hres
;
window
=
get_target_window
(
element
->
node
.
doc
->
outer_window
,
target_str
,
&
use_new_window
);
if
(
!
element
->
node
.
doc
->
window
->
base
.
outer_window
)
return
S_OK
;
window
=
get_target_window
(
element
->
node
.
doc
->
window
->
base
.
outer_window
,
target_str
,
&
use_new_window
);
if
(
!
window
)
{
if
(
use_new_window
)
{
const
PRUnichar
*
target
;
...
...
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