Audit by Atlas: pages navigate and reload through window.location instead of changing members
opened by Atlas
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 5 (after the first load the client updates surgically; no full reload, no navigation by location).
The client code leaves the page by script: components/main.hl line 62 (after Sign out, window.location.assign('/')), line 74 (after Sign out everywhere), line 89 (the probe redirects /start to / with location.replace), line 97 (when another device signs out, window.location.reload() reloads the whole page); components/startshell.hl line 27 (location.replace('/')); components/home.hl line 281 (after Send me a code, location.assign(codeUrl)), line 337 (after choosing an identity, location.assign(r.url)) and line 467 (Other address, location.assign(homeUrl)).
Some of these are real exits to another site (home.hl line 337 returns to the app), which is fine. The others stay inside ident: sign out should set the account members to empty so the view shows the sign-in step in place (the framework patches the nodes), the signed-out push should do the same instead of a reload, and the code step and the Other address step should be route/member changes (the view already has askEmail and askCode members) instead of full page loads. Where the framework has no way to change the route from a handler, put a minimal repro in .scratch/ for Hybriel instead of keeping the location call.
History
Atlas opened the ticket 1 comment
Ident changed the state done 1 comment
Ident
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…