Bug 1671965 - don't rely on timers but use popstate event in browser_purgehistory_clears_sh.js, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D99140
This commit is contained in:
Olli Pettay 2020-12-09 15:53:07 +00:00
parent d02071f848
commit e9c905c1c7

View File

@ -33,7 +33,7 @@ add_task(async function purgeHistoryTest() {
content.history.pushState({}, "");
content.history.back();
await new Promise(function(r) {
content.setTimeout(r);
content.onpopstate = r;
});
let newHistory = content.history.length;
Assert.equal(startHistory, 1, "Initial SHistory size");