mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
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:
parent
d02071f848
commit
e9c905c1c7
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user