Bug 1689115 [wpt PR 27351] - [testharness.js] Disable assert tracking on workers...
commit15b753961a3586f77810836d9997c2ec7234b880
authorStephen McGruer <smcgruer@chromium.org>
Tue, 2 Feb 2021 09:12:06 +0000 (2 09:12 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 2 Feb 2021 17:07:57 +0000 (2 17:07 +0000)
treed350dbfaf775de2a085685ee787b169c5baf9d73
parenteceb2e2096dde8c054ab0e6f140f3b33f3c510da
Bug 1689115 [wpt PR 27351] - [testharness.js] Disable assert tracking on workers, a=testonly

Automatic update from web-platform-tests
[testharness.js] Disable assert tracking on workers (#27351)

We are continuing to see a performance regression from assert tracking
in Chromium. After investigation, it appears that the root problem is
that there is no way currently for a testharness.js script loaded in a
worker to know that it shouldn't be tracking asserts (since
testharnessreport.js isn't loaded).

To fix the performance hit, this commit disables assert tracking
entirely in workers. This is a behavior regression for the feature, but
is necessary to avoid an unacceptable performance regression.

Associated Chromium bug: https://crbug.com/1170588
--

wpt-commits: a1f5466c51ef000b4b4fcf66473e4f9a2b11c503
wpt-pr: 27351
testing/web-platform/tests/resources/testharness.js