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
fe66c724
Commit
fe66c724
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.navigationStart.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
1dc507d3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-0
navigate.c
dlls/mshtml/navigate.c
+3
-1
omnavigator.c
dlls/mshtml/omnavigator.c
+2
-2
documentmode.js
dlls/mshtml/tests/documentmode.js
+2
-0
No files found.
dlls/mshtml/mshtml_private.h
View file @
fe66c724
...
...
@@ -508,6 +508,8 @@ typedef struct {
IHTMLPerformanceTiming
IHTMLPerformanceTiming_iface
;
LONG
ref
;
ULONGLONG
navigation_start_time
;
}
HTMLPerformanceTiming
;
typedef
struct
nsChannelBSC
nsChannelBSC
;
...
...
dlls/mshtml/navigate.c
View file @
fe66c724
...
...
@@ -1357,8 +1357,10 @@ static HRESULT nsChannelBSC_start_binding(BSCallback *bsc)
{
nsChannelBSC
*
This
=
nsChannelBSC_from_BSCallback
(
bsc
);
if
(
This
->
is_doc_channel
)
if
(
This
->
is_doc_channel
)
{
This
->
bsc
.
window
->
base
.
outer_window
->
base
.
inner_window
->
doc
->
skip_mutation_notif
=
FALSE
;
This
->
bsc
.
window
->
performance_timing
->
navigation_start_time
=
get_time_stamp
();
}
return
S_OK
;
}
...
...
dlls/mshtml/omnavigator.c
View file @
fe66c724
...
...
@@ -1591,9 +1591,9 @@ static HRESULT WINAPI HTMLPerformanceTiming_get_navigationStart(IHTMLPerformance
{
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
->
navigation_start_time
;
return
S_OK
;
}
...
...
dlls/mshtml/tests/documentmode.js
View file @
fe66c724
...
...
@@ -19,6 +19,8 @@
var
compat_version
;
var
tests
=
[];
ok
(
performance
.
timing
.
navigationStart
>
0
,
"navigationStart <= 0"
);
var
pageshow_fired
=
false
,
pagehide_fired
=
false
;
document
.
doc_unload_events_called
=
false
;
window
.
onbeforeunload
=
function
()
{
ok
(
false
,
"beforeunload fired"
);
};
...
...
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