You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] WebKit/Firefox do not emit request/response events if its a cache hit for img resources #11390
Above mentioned code works fine in Chromium and Webkit but fails in Firefox. After page load click to 'test A' succeeds but click to 'menu-item-85' will timeout. It appears if the request is served from browser cache, this issue is noticed in Firefox.
vsravuri (@vsravuri) Unfortunately, the repro script does not work for me. At first, it did not find #menu-item-85, but on future runs it did not find text="test A". Does this page change under my feet?
Also, from the error above, it is actually the first response that was missing. Are you sure it is related to the cache? Perhaps header is not always requested when you click on 'test A'?
changed the title [-][BUG] Firefox: page.waitForResponse() timeout if the matching request is served from cache[/-][+][BUG] Firefox: page.waitForRequest() / page.waitForResponse() timeout if the matching response is served from cache[/+]on Jan 17, 2022
changed the title [-][BUG] Firefox: page.waitForRequest() / page.waitForResponse() timeout if the matching response is served from cache[/-][+][BUG] WebKit/Firefox do not emit request/response events if its a cache hit for img resources[/+]on Jan 20, 2022
In case of a repetitive request, network is not being used, the image is already in the memory cache. Depending on the browser implementation, it'll either pretend it made a request or not, it is an implementation detail of the browser. You should rely on different heuristics to determine the image was shown.
Activity
dgozman commentedon Jan 14, 2022
vsravuri (@vsravuri) Unfortunately, the repro script does not work for me. At first, it did not find
#menu-item-85, but on future runs it did not findtext="test A". Does this page change under my feet?Also, from the error above, it is actually the first response that was missing. Are you sure it is related to the cache? Perhaps header is not always requested when you click on 'test A'?
vsravuri commentedon Jan 14, 2022
Dmitry Gozman (@dgozman) Thanks for looking into this. You are right, the website changed after i created the repro script.
Please try this script.
[-][BUG] Firefox: page.waitForResponse() timeout if the matching request is served from cache[/-][+][BUG] Firefox: page.waitForRequest() / page.waitForResponse() timeout if the matching response is served from cache[/+]vsravuri commentedon Jan 17, 2022
Noticed similar behaviour with page.waitForRequest() in Firefox
[-][BUG] Firefox: page.waitForRequest() / page.waitForResponse() timeout if the matching response is served from cache[/-][+][BUG] WebKit/Firefox do not emit request/response events if its a cache hit for img resources[/+]pavelfeldman commentedon Jan 25, 2022
In case of a repetitive request, network is not being used, the image is already in the memory cache. Depending on the browser implementation, it'll either pretend it made a request or not, it is an implementation detail of the browser. You should rely on different heuristics to determine the image was shown.
test(replay): Fix flaky xhr/fetch request tests (#7270)