Commit ce62e84
authored
ref(core): Strengthen
In `browserPerformanceTimeOrigin`, we test how reliable
`performance.timeOrigin` (or its predecessor) is by comparing its
timestamp against `performance.now() - Date.now()`. If the delta is
larger than 1h, we take the fallback rather than
`performance.timeOrigin`.
This PR now makes the reliability check more strict by decreasing the
time window from 1h to just 5 minutes. This _should_ catch time drift
more often. Now that we improved the fallback via #18715, I think we can
give this a shot.browserPerformanceTimeOrigin reliability check (#18719)1 parent 2a2e8cb commit ce62e84
2 files changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments