3 ms·
This is probably more of an adgecase, but it would be nice... access to an array of the last 10 items in the history (for the same domain in the same tab). Yes
by bonestamp2 6y ago
This is probably more of an adgecase, but it would be nice... access to an array of the last 10 items in the history (for the same domain in the same tab).
Yes, of course you can store that data in application memory, and that's what we currently do (we send it with runtime exception errors so we can try to reproduce the problem). But, it would be nice if that function was inherent to the browser instead of everyone downloading that code in all of our applications. Then it could persist through page refreshes too.
- cush 6y agoThis was the first thing that came to mind for me too. Definitely not an edge case!
- danShumway 6y agoYep, that's part of the proposal. See https://github.com/WICG/app-history/blob/main/README.md#introspecting-the-history-list https://github.com/WICG/app-history/blob/main/README.md#intr...
- bonestamp2 6y agoThat's fantastic, thank you!