github web-platform-tests/wpt merge_pr_47850

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
5 months ago

[wptrunner] Implement --leak-check for Blink-based browsers (#47850)

... to support Chromium CI testing needs.

  • Introduce LeakProtocolPart, an optional API that lets wptrunner
    check for leaks programmatically. The default implementation checks
    that navigating to about:blank after a test cleans up the DOM
    objects it created.
  • For browsers that implement LeakProtocolPart, the base WebDriver
    executors run the leak check after each test and report the results as
    an extra test result field named leak_counters.
  • Currently, the only implementers of LeakProtocolPart are
    ChromeDriver-based browsers, which use a nonstandard Chrome DevTools
    Protocol method 0 to count DOM objects. For those browsers, a leak
    is coerced to CRASH to report the result appropriately and induce a
    browser restart.

See Also: https://crbug.com/40887057

Don't miss a new wpt release

NewReleases is sending notifications on new releases.