Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 30d1ac0d9651dfdd5dcf37f7c8265400b5c97d09
      
https://github.com/WebKit/WebKit/commit/30d1ac0d9651dfdd5dcf37f7c8265400b5c97d09
  Author: Diego De La Toba <[email protected]>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorkerPerformanceNow.html

  Log Message:
  -----------
  [macOS] 
imported/w3c/web-platform-tests/workers/SharedWorkerPerformanceNow.html is a 
flaky text failure
rdar://170159172
https://bugs.webkit.org/show_bug.cgi?id=307571

Reviewed by Sam Sneddon.

The test imported/w3c/web-platform-tests/workers/SharedWorkerPerformanceNow.html
is flaky because it asserts that performance.now() must be strictly greater 
than 0.
However, due to WebKit's 1ms timer precision (Performance.cpp:72), if the 
SharedWorker
calls performance.now() within ~0.5ms of creation, the time rounds down to 0ms.

Performance.now() returning 0 is valid when called at or very
close to the time origin. The test should accept 0 as a valid value.

Changed assertion from assert_greater_than(results[3], 0, ...) to
assert_greater_than_equal(results[3], 0, ...) on line 19.

* 
LayoutTests/imported/w3c/web-platform-tests/workers/SharedWorkerPerformanceNow.html:

Canonical link: https://commits.webkit.org/307405@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to