Thanks to Roman, I was able to reproduce this locally with:
rsorokin@rsorokin:~/chromium/src$ tools/mb/mb.py gen out/Release -m chromium.memory -b 'WebKit Linux Trusty Leak'
rsorokin@rsorokin:~/chromium/src$ autoninja -C out/Release/ webkit_layout_tests && third_party/blink/tools/run_web_tests.py --seed 4 --no-show-results --zero-tests-executed-ok --clobber-old-results --exit-after-n-failures 5000 --exit-after-n-crashes-or-timeouts 100 --debug-rwt-logging --additional-expectations ./third_party/blink/web_tests/LeakExpectations --time-out-ms 48000 --enable-leak-detection --gtest_filter=external/wpt/trusted-types/block-string-assignment-to-Window-open.tentative.html --gtest_repeat=40
The issue is with testWindowDoesntThrow(t, null, "null", document), I don't know why. I will comment-out the test with a TODO in the roll-forward.
I think I found it: The issue was in the test code, which apparently didn't always run the cleanup before the test had finished. Those non-cleaned-up objects then appeared to have leaked.
I'll upload a copy of the original CL + the fix.
Comment 1 by jakubvrana@google.com
, Jan 8