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
3de9f679
Commit
3de9f679
authored
Nov 22, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement performance.timing.responseStart & responseEnd.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
0118f360
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
11 deletions
+24
-11
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
navigate.c
dlls/mshtml/navigate.c
+16
-7
omnavigator.c
dlls/mshtml/omnavigator.c
+4
-4
documentmode.js
dlls/mshtml/tests/documentmode.js
+2
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
3de9f679
...
...
@@ -516,6 +516,8 @@ typedef struct {
ULONGLONG
dns_lookup_time
;
ULONGLONG
connect_time
;
ULONGLONG
request_time
;
ULONGLONG
response_start_time
;
ULONGLONG
response_end_time
;
}
HTMLPerformanceTiming
;
typedef
struct
nsChannelBSC
nsChannelBSC
;
...
...
dlls/mshtml/navigate.c
View file @
3de9f679
...
...
@@ -1107,6 +1107,9 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
if
(
!
This
->
response_processed
)
{
IWinInetHttpInfo
*
wininet_info
;
if
(
This
->
is_doc_channel
)
This
->
bsc
.
window
->
performance_timing
->
response_start_time
=
get_time_stamp
();
This
->
response_processed
=
TRUE
;
if
(
This
->
bsc
.
binding
)
{
hres
=
IBinding_QueryInterface
(
This
->
bsc
.
binding
,
&
IID_IWinInetHttpInfo
,
(
void
**
)
&
wininet_info
);
...
...
@@ -1522,13 +1525,16 @@ static HRESULT nsChannelBSC_stop_binding(BSCallback *bsc, HRESULT result)
{
nsChannelBSC
*
This
=
nsChannelBSC_from_BSCallback
(
bsc
);
if
(
result
!=
E_ABORT
&&
This
->
is_doc_channel
&&
This
->
bsc
.
window
)
{
if
(
FAILED
(
result
))
handle_navigation_error
(
This
,
result
);
else
if
(
This
->
nschannel
)
{
result
=
async_stop_request
(
This
);
if
(
SUCCEEDED
(
result
))
return
S_OK
;
if
(
This
->
is_doc_channel
&&
This
->
bsc
.
window
)
{
This
->
bsc
.
window
->
performance_timing
->
response_end_time
=
get_time_stamp
();
if
(
result
!=
E_ABORT
)
{
if
(
FAILED
(
result
))
handle_navigation_error
(
This
,
result
);
else
if
(
This
->
nschannel
)
{
result
=
async_stop_request
(
This
);
if
(
SUCCEEDED
(
result
))
return
S_OK
;
}
}
}
...
...
@@ -1786,6 +1792,9 @@ static HRESULT nsChannelBSC_on_response(BSCallback *bsc, DWORD response_code,
char
*
str
;
HRESULT
hres
;
if
(
This
->
is_doc_channel
)
This
->
bsc
.
window
->
performance_timing
->
response_start_time
=
get_time_stamp
();
This
->
response_processed
=
TRUE
;
This
->
nschannel
->
response_status
=
response_code
;
...
...
dlls/mshtml/omnavigator.c
View file @
3de9f679
...
...
@@ -1725,9 +1725,9 @@ static HRESULT WINAPI HTMLPerformanceTiming_get_responseStart(IHTMLPerformanceTi
{
HTMLPerformanceTiming
*
This
=
impl_from_IHTMLPerformanceTiming
(
iface
);
FIXME
(
"(%p)->(%p) returning fake value
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
T
IMING_FAKE_TIMESTAMP
;
*
p
=
T
his
->
response_start_time
;
return
S_OK
;
}
...
...
@@ -1735,9 +1735,9 @@ static HRESULT WINAPI HTMLPerformanceTiming_get_responseEnd(IHTMLPerformanceTimi
{
HTMLPerformanceTiming
*
This
=
impl_from_IHTMLPerformanceTiming
(
iface
);
FIXME
(
"(%p)->(%p) returning fake value
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
T
IMING_FAKE_TIMESTAMP
;
*
p
=
T
his
->
response_end_time
;
return
S_OK
;
}
...
...
dlls/mshtml/tests/documentmode.js
View file @
3de9f679
...
...
@@ -26,6 +26,8 @@ ok(performance.timing.domainLookupEnd >= performance.timing.domainLookupStart, "
ok
(
performance
.
timing
.
connectStart
>=
performance
.
timing
.
domainLookupEnd
,
"connectStart < domainLookupEnd"
);
ok
(
performance
.
timing
.
connectEnd
>=
performance
.
timing
.
connectStart
,
"connectEnd < connectStart"
);
ok
(
performance
.
timing
.
requestStart
>=
performance
.
timing
.
connectEnd
,
"requestStart < connectEnd"
);
ok
(
performance
.
timing
.
responseStart
>=
performance
.
timing
.
requestStart
,
"responseStart < requestStart"
);
ok
(
performance
.
timing
.
responseEnd
>=
performance
.
timing
.
responseStart
,
"responseEnd < responseStart"
);
ok
(
performance
.
timing
.
unloadEventStart
===
0
,
"unloadEventStart != 0"
);
ok
(
performance
.
timing
.
unloadEventEnd
===
0
,
"unloadEventEnd != 0"
);
ok
(
performance
.
timing
.
redirectStart
===
0
,
"redirectStart != 0"
);
...
...
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