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
bbaa307f
Commit
bbaa307f
authored
Jul 12, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use per-inner window task_magic for binding.
parent
25c5082f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
htmlwindow.c
dlls/mshtml/htmlwindow.c
+3
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
navigate.c
dlls/mshtml/navigate.c
+4
-5
No files found.
dlls/mshtml/htmlwindow.c
View file @
bbaa307f
...
...
@@ -235,6 +235,7 @@ static void release_inner_window(HTMLInnerWindow *This)
TRACE
(
"%p
\n
"
,
This
);
remove_target_tasks
(
This
->
task_magic
);
abort_window_bindings
(
This
);
release_script_hosts
(
This
);
...
...
@@ -2622,6 +2623,8 @@ static HRESULT create_inner_window(HTMLOuterWindow *outer_window, HTMLInnerWindo
init_dispex
(
&
window
->
dispex
,
(
IUnknown
*
)
&
window
->
base
.
IHTMLWindow2_iface
,
&
HTMLWindow_dispex
);
window
->
task_magic
=
get_task_target_magic
();
*
ret
=
window
;
return
S_OK
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
bbaa307f
...
...
@@ -361,6 +361,8 @@ struct HTMLInnerWindow {
DWORD
global_prop_cnt
;
DWORD
global_prop_size
;
LONG
task_magic
;
nsChannelBSC
*
bscallback
;
struct
list
bindings
;
};
...
...
dlls/mshtml/navigate.c
View file @
bbaa307f
...
...
@@ -1325,7 +1325,7 @@ static HRESULT async_stop_request(nsChannelBSC *This)
IBindStatusCallback_AddRef
(
&
This
->
bsc
.
IBindStatusCallback_iface
);
task
->
bsc
=
This
;
push_task
(
&
task
->
header
,
stop_request_proc
,
stop_request_task_destr
,
This
->
window
->
doc_obj
->
basedoc
.
task_magic
);
push_task
(
&
task
->
header
,
stop_request_proc
,
stop_request_task_destr
,
This
->
bsc
.
window
->
task_magic
);
return
S_OK
;
}
...
...
@@ -1679,7 +1679,7 @@ HRESULT async_start_doc_binding(HTMLOuterWindow *window, HTMLInnerWindow *pendin
task
->
pending_window
=
pending_window
;
IHTMLWindow2_AddRef
(
&
pending_window
->
base
.
IHTMLWindow2_iface
);
push_task
(
&
task
->
header
,
start_doc_binding_proc
,
start_doc_binding_task_destr
,
window
->
task_magic
);
push_task
(
&
task
->
header
,
start_doc_binding_proc
,
start_doc_binding_task_destr
,
pending_
window
->
task_magic
);
return
S_OK
;
}
...
...
@@ -1687,6 +1687,8 @@ void abort_window_bindings(HTMLInnerWindow *window)
{
BSCallback
*
iter
;
remove_target_tasks
(
window
->
task_magic
);
while
(
!
list_empty
(
&
window
->
bindings
))
{
iter
=
LIST_ENTRY
(
window
->
bindings
.
next
,
BSCallback
,
entry
);
...
...
@@ -1694,9 +1696,6 @@ void abort_window_bindings(HTMLInnerWindow *window)
IBindStatusCallback_AddRef
(
&
iter
->
IBindStatusCallback_iface
);
if
(
iter
->
window
&&
iter
->
window
->
doc
)
remove_target_tasks
(
iter
->
window
->
doc
->
basedoc
.
task_magic
);
if
(
iter
->
binding
)
IBinding_Abort
(
iter
->
binding
);
else
...
...
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