Part of #10992. We should be adding session history entries every time a new history state is pushed.