In Page.prototype.back, this.len-- is used to make len property decrease when manually call page.back(). However, in Page.prototype._onpopstate, which is attached to window's popstate event, property len is not changed.
Is this the desired behavior or am I missing something here?