[Webkit-unassigned] [Bug 168005] LayoutTest performance-api/performance-now-time-origin-in-worker.html is a flaky failure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 8 22:12:08 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=168005

--- Comment #4 from Joseph Pecoraro <joepeck at webkit.org> ---
(In reply to comment #3)
> Comment on attachment 300928 [details]
> [PATCH] Proposed Fix
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=300928&action=review
> 
> > LayoutTests/ChangeLog:8
> > +        Increase the budget from 200ms to 250ms and if it fails, log the time
> 
> Any timeout can take up to a couple seconds in a test, so 250 ms can never
> be right.
> 
> What exactly is this test checking for, can it work without precise time
> measurement?

This is checking that the performance.now() values in a Worker are relative to their creation time and not relative to the Document's creation time.

Ultimately this is checking that the performance.now in the Worker and Page are different. Currently to do this, the test waits 200ms on the Document, spawns a Worker, and checks that performance.now in that Worker is less then 200ms. The patch above bumped this to 250ms and would log the failure time if the test fails to get an idea of how long it took.

PerformanceTiming Level 3 introduces performance.timeOrigin which would be the easier way to verify this. Then we could just send the timeOrigin back to the page and verify the difference. Currently we don't have that luxury, so the best I can come up is ensuring the different by waiting some N milliseconds on the Page before spawning the Worker to verify we can get a time below N in the Worker.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170209/569897a6/attachment.html>


More information about the webkit-unassigned mailing list