ericfs
ericfs
I'm not sure if there is a normal behavior for modal lightboxes like this, but it leaves an entry in the forward history stack so feels a little confusing that...
With my current implementation the viewer is listening for all popstate events from the browser and sending them on to the AMP doc via "historyPopped" whenever this changes the stack...
Only tracked internally: b/33734828
Doesn't it already do that? https://github.com/ampproject/amphtml/blob/master/src/service/viewer-impl.js#L543
cc @dvoytenko
Also need to accept the value as an initialization parameter to restore the state
It's nice to have but not critical. Whenever it's ready we can make use of it, but it's not blocking.
The message name we are using is "willUnload"
Higher than https://github.com/ampproject/amphtml/issues/1677 Discussed and agreed with @malteubl I think it would be very nice to have for overall stability.
I mean @cramforce