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
5e8210bb
Commit
5e8210bb
authored
Aug 15, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Move console to the inner window.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
c81c0aa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
htmlwindow.c
dlls/mshtml/htmlwindow.c
+7
-9
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-2
No files found.
dlls/mshtml/htmlwindow.c
View file @
5e8210bb
...
@@ -257,9 +257,6 @@ static ULONG WINAPI HTMLWindow2_Release(IHTMLWindow2 *iface)
...
@@ -257,9 +257,6 @@ static ULONG WINAPI HTMLWindow2_Release(IHTMLWindow2 *iface)
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%ld
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
if
(
!
ref
)
{
if
(
This
->
console
)
IWineMSHTMLConsole_Release
(
This
->
console
);
if
(
is_outer_window
(
This
))
if
(
is_outer_window
(
This
))
release_outer_window
(
This
->
outer_window
);
release_outer_window
(
This
->
outer_window
);
else
else
...
@@ -3255,15 +3252,16 @@ static HRESULT WINAPI window_private_postMessage(IWineHTMLWindowPrivate *iface,
...
@@ -3255,15 +3252,16 @@ static HRESULT WINAPI window_private_postMessage(IWineHTMLWindowPrivate *iface,
static
HRESULT
WINAPI
window_private_get_console
(
IWineHTMLWindowPrivate
*
iface
,
IDispatch
**
console
)
static
HRESULT
WINAPI
window_private_get_console
(
IWineHTMLWindowPrivate
*
iface
,
IDispatch
**
console
)
{
{
HTMLWindow
*
This
=
impl_from_IWineHTMLWindowPrivateVtbl
(
iface
);
HTMLWindow
*
This
=
impl_from_IWineHTMLWindowPrivateVtbl
(
iface
);
HTMLInnerWindow
*
window
=
This
->
inner_window
;
TRACE
(
"iface %p, console %p.
\n
"
,
iface
,
console
);
TRACE
(
"iface %p, console %p.
\n
"
,
iface
,
console
);
if
(
!
This
->
console
)
if
(
!
window
->
console
)
create_console
(
dispex_compat_mode
(
&
This
->
inner_window
->
event_target
.
dispex
),
&
This
->
console
);
create_console
(
dispex_compat_mode
(
&
window
->
event_target
.
dispex
),
&
window
->
console
);
*
console
=
(
IDispatch
*
)
This
->
console
;
*
console
=
(
IDispatch
*
)
window
->
console
;
if
(
This
->
console
)
if
(
window
->
console
)
IWineMSHTMLConsole_AddRef
(
This
->
console
);
IWineMSHTMLConsole_AddRef
(
window
->
console
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -3725,7 +3723,7 @@ static void HTMLWindow_unlink(DispatchEx *dispex)
...
@@ -3725,7 +3723,7 @@ static void HTMLWindow_unlink(DispatchEx *dispex)
TRACE
(
"%p
\n
"
,
This
);
TRACE
(
"%p
\n
"
,
This
);
unlink_ref
(
&
This
->
base
.
console
);
unlink_ref
(
&
This
->
console
);
detach_inner_window
(
This
);
detach_inner_window
(
This
);
if
(
This
->
doc
)
{
if
(
This
->
doc
)
{
...
...
dlls/mshtml/mshtml_private.h
View file @
5e8210bb
...
@@ -569,8 +569,6 @@ struct HTMLWindow {
...
@@ -569,8 +569,6 @@ struct HTMLWindow {
IWineHTMLWindowPrivate
IWineHTMLWindowPrivate_iface
;
IWineHTMLWindowPrivate
IWineHTMLWindowPrivate_iface
;
IWineHTMLWindowCompatPrivate
IWineHTMLWindowCompatPrivate_iface
;
IWineHTMLWindowCompatPrivate
IWineHTMLWindowCompatPrivate_iface
;
IWineMSHTMLConsole
*
console
;
LONG
ref
;
LONG
ref
;
HTMLInnerWindow
*
inner_window
;
HTMLInnerWindow
*
inner_window
;
...
@@ -625,6 +623,7 @@ struct HTMLInnerWindow {
...
@@ -625,6 +623,7 @@ struct HTMLInnerWindow {
IOmNavigator
*
navigator
;
IOmNavigator
*
navigator
;
IHTMLStorage
*
session_storage
;
IHTMLStorage
*
session_storage
;
IHTMLStorage
*
local_storage
;
IHTMLStorage
*
local_storage
;
IWineMSHTMLConsole
*
console
;
BOOL
performance_initialized
;
BOOL
performance_initialized
;
VARIANT
performance
;
VARIANT
performance
;
...
...
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