Bug 1839964 - Use `promiseAllPaintsDone` rather than waiting for the first-contentful...