DescriptionFix Performance::now() for browser navigations.
Performance::now() is defined[1] as number of milliseconds since
navigationStart. It works correctly for renderer-initiated navigations,
but for browser-initiated ones we override the navigationStart with the
recording taken on the browser side and this is not represented in
Performace::now().
Among other reasons to be sad about this, this bug makes Chromium's
pagecyclers not represent the renderer initialization times in their
plt measurements.
This patch fixes this by adjusting the fields that are supposed to
correspond to navigationStart when we change navigationStart from the
embedder.
[1] http://www.w3.org/TR/hr-time/#dom-performance-now
BUG=376004
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178558
Patch Set 1 #Patch Set 2 : Make the comparison in the assert "<=". #Messages
Total messages: 9 (0 generated)
|