[UserTimingL3] Feature detection: API does not return the entry |
|||||
Issue description
UserTimingL3 uses returned value for feature detection. If measure and mark API returns null, the APIs are L2 API; If the APIs return an entry, the APIs are L3 API.
However, in the current implementation, when L3 API is disabled, the APIs do not always return the null.
Use case 1:
Repro steps (when CustomUserTiming is disabled):
1. Open console
2. performance.mark("name")
Expected:
return undefined
Actual:
return PerformanceMark entry
Use case 2:
Repro steps (when CustomUserTiming is disabled):
1. Open console
2. performance.measure("name")
Expected:
return undefined
Actual:
return PerformanceMeasure entry
,
Nov 19
I think the point is that in L3 it needs to return the entry whereas it was a void method. https://chromium-review.googlesource.com/c/chromium/src/+/1338225 fixes this (but the CL does not reference this bug). Max, is this fixed?
,
Nov 19
This has been fixed in https://chromium-review.googlesource.com/c/chromium/src/+/1338225
,
Nov 19
,
Nov 19
,
Nov 19
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by tdres...@chromium.org
, Nov 19