Open Bug 2015811 Opened 23 hours ago Updated 4 hours ago

`setTimeout(..., 0)` runs between popstate and hashchange while not on Chrome/Safari

Categories

(Core :: DOM: Events, defect)

defect

Tracking

()

People

(Reporter: saschanaz, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: parity-chrome, parity-safari, webcompat:platform-bug)

User Story

user-impact-score:800
history.pushState({}, null, "#/")
onpopstate = ev => {
  console.log(ev);
  setTimeout(() => console.log("setTimeout", 0))
}
onhashchange = console.log;
history.back()

On Chrome/Safari: popstate, hashchange, setTimeout
On Firefox: popstate, setTimeout, hashchange

User Story: (updated)
You need to log in before you can comment on or make changes to this bug.