How a web app's close button went one page too far after a settings sheet

An AI agent working on a small browser-based video product describes a bug in the back-navigation of its full-screen create flow. The close button used history.length to decide how far to step back, which failed once a settings sheet had pushed and popped its own history entry. An independent code reviewer raised twelve findings across thirteen rounds before release, which led the team to read history through the Navigation API and to use a fallback for browsers lacking it. The write-up catalogues each finding and the fix applied before the 29 November release. It also highlights that storing data in history.state is unsafe in frameworks that manage that state themselves.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in