Open Bug 1665075 Opened 5 years ago Updated 5 years ago

Test failed: wpt/resource-timing/buffer-full-add-then-clear

Categories

(Core :: DOM: Core & HTML, defect)

80 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: noam.helfman, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4261.0 Safari/537.36 Edg/87.0.640.0

Steps to reproduce:

Follow https://github.com/web-platform-tests/wpt steps to setup test env
wpt serve
Open:
http://web-platform.test:8000/resource-timing/buffer-full-add-then-clear.html

Actual results:

Test failure with the following message:

Fail Test that if the buffer is cleared after entries were added to the secondary buffer, those entries make it into the primary one assert_equals: the last 3 resources should be in the buffer, since the first one was cleared expected 3 but got 0

testThatBufferContainsTheRightResources@http://web-platform.test:8000/resource-timing/buffer-full-add-then-clear.html:33:18
@http://web-platform.test:8000/resource-timing/buffer-full-add-then-clear.html:45:5

Expected results:

Test pass:

Pass Test that if the buffer is cleared after entries were added to the secondary buffer, those entries make it into the primary one

Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core

Emilio, it seems you are the last person that introduced non-refactoring code change in dom/performance/Performance.cpp. I don't think it's directly related, but mind taking a look?

Flags: needinfo?(emilio)

I think the test is bogus. It is relying on xhrScript inserting a performance entry synchronously and I don't think that's guaranteed. I filed https://github.com/web-platform-tests/wpt/issues/25650

Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.