mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
The stale/busy state test relies on loading a document that is slow to load, but because it's an automated test, we need to be able to control the timing. Previously, it used slow_image.sjs, which handles one request for the page load and blocks that first request until it receives a second request to finish the load. However, because we're loading the document in the content process and issuing the second (finish) request in the parent process, the requests can sometimes arrive out of order, with the finish request arriving first. slow_image.sjs doesn't know how to handle this and will just block the load request forever. To fix this, switch to slow_doc.sjs (introduced in bug 1974131) which *does* know how to handle this race; see https://searchfox.org/firefox-main/rev/e28b34ab33dbf49364999070168cbb7e11e8e5bd/accessible/tests/browser/events/slow_doc.sjs#55 The potential for this problem existed before the fix for bug 2041564 and I was able to reproduce it locally with --verify on Linux even without that patch. However, that fix made it far more likely to occur as a tv intermittent, perhaps due to slight timing changes. Differential Revision: https://phabricator.services.mozilla.com/D304008