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
cfefbb8f
Commit
cfefbb8f
authored
Dec 06, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Dec 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Send proper legacy storage event with actual url.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
7ca9e4ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
htmldoc.c
dlls/mshtml/htmldoc.c
+1
-1
htmlevent.c
dlls/mshtml/htmlevent.c
+2
-2
htmlevent.h
dlls/mshtml/htmlevent.h
+1
-1
htmlstorage.c
dlls/mshtml/htmlstorage.c
+12
-3
No files found.
dlls/mshtml/htmldoc.c
View file @
cfefbb8f
...
...
@@ -3045,7 +3045,7 @@ static HRESULT WINAPI HTMLDocument4_createEventObject(IHTMLDocument4 *iface,
return
E_NOTIMPL
;
}
return
create_event_obj
(
dispex_compat_mode
(
&
This
->
node
.
event_target
.
dispex
),
ppEventObj
);
return
create_event_obj
(
NULL
,
dispex_compat_mode
(
&
This
->
node
.
event_target
.
dispex
),
ppEventObj
);
}
static
HRESULT
WINAPI
HTMLDocument4_fireEvent
(
IHTMLDocument4
*
iface
,
BSTR
bstrEventName
,
...
...
dlls/mshtml/htmlevent.c
View file @
cfefbb8f
...
...
@@ -2035,11 +2035,11 @@ static HTMLEventObj *alloc_event_obj(DOMEvent *event, compat_mode_t compat_mode)
return
event_obj
;
}
HRESULT
create_event_obj
(
compat_mode_t
compat_mode
,
IHTMLEventObj
**
ret
)
HRESULT
create_event_obj
(
DOMEvent
*
event
,
compat_mode_t
compat_mode
,
IHTMLEventObj
**
ret
)
{
HTMLEventObj
*
event_obj
;
event_obj
=
alloc_event_obj
(
NULL
,
compat_mode
);
event_obj
=
alloc_event_obj
(
event
,
compat_mode
);
if
(
!
event_obj
)
return
E_OUTOFMEMORY
;
...
...
dlls/mshtml/htmlevent.h
View file @
cfefbb8f
...
...
@@ -107,7 +107,7 @@ HRESULT fire_event(HTMLDOMNode*,const WCHAR*,VARIANT*,VARIANT_BOOL*);
void
update_doc_cp_events
(
HTMLDocumentNode
*
,
cp_static_data_t
*
);
HRESULT
doc_init_events
(
HTMLDocumentNode
*
);
void
detach_events
(
HTMLDocumentNode
*
doc
);
HRESULT
create_event_obj
(
compat_mode_t
,
IHTMLEventObj
**
);
HRESULT
create_event_obj
(
DOMEvent
*
,
compat_mode_t
,
IHTMLEventObj
**
);
void
bind_target_event
(
HTMLDocumentNode
*
,
EventTarget
*
,
const
WCHAR
*
,
IDispatch
*
);
HRESULT
ensure_doc_nsevent_handler
(
HTMLDocumentNode
*
,
nsIDOMNode
*
,
eventid_t
);
...
...
dlls/mshtml/htmlstorage.c
View file @
cfefbb8f
...
...
@@ -208,12 +208,21 @@ static void storage_event_proc(event_task_t *_task)
struct
storage_event_task
*
task
=
(
struct
storage_event_task
*
)
_task
;
HTMLInnerWindow
*
window
=
task
->
header
.
window
;
DOMEvent
*
event
=
task
->
event
;
compat_mode_t
compat_mode
;
VARIANT_BOOL
cancelled
;
HRESULT
hres
;
VARIANT
var
;
if
(
event
->
event_id
==
EVENTID_STORAGE
&&
dispex_compat_mode
(
&
window
->
event_target
.
dispex
)
>=
COMPAT_MODE_IE9
)
{
if
(
event
->
event_id
==
EVENTID_STORAGE
&&
(
compat_mode
=
dispex_compat_mode
(
&
window
->
event_target
.
dispex
)
)
>=
COMPAT_MODE_IE9
)
{
dispatch_event
(
&
window
->
event_target
,
event
);
if
(
window
->
doc
)
fire_event
(
&
window
->
doc
->
node
,
L"onstorage"
,
NULL
,
&
cancelled
);
if
(
window
->
doc
)
{
hres
=
create_event_obj
(
event
,
compat_mode
,
(
IHTMLEventObj
**
)
&
V_DISPATCH
(
&
var
));
if
(
SUCCEEDED
(
hres
))
{
V_VT
(
&
var
)
=
VT_DISPATCH
;
fire_event
(
&
window
->
doc
->
node
,
L"onstorage"
,
&
var
,
&
cancelled
);
IDispatch_Release
(
V_DISPATCH
(
&
var
));
}
}
}
else
if
(
window
->
doc
)
{
dispatch_event
(
&
window
->
doc
->
node
.
event_target
,
event
);
}
...
...
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