Add regression tests: history.back() called twice.
history.back() called twice causes the browser to navigate back twice. This is wrong. It should navigate back only once. This CL adds regression tests. The specification says the following: --- If there is an ongoing attempt to navigate specified browsing context that has not yet matured (i.e. it has not passed the point of making its Document the active document), then cancel that attempt to navigate the browsing context. --- Specification: https://html.spec.whatwg.org/multipage/history.html#traverse-the-history-by-a-delta Bug: 869710 Change-Id: I1534c7a04dbd220920970576baad02cedfaf6a12 Reviewed-on: https://chromium-review.googlesource.com/1215803 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:Camille Lamy <clamy@chromium.org> Reviewed-by:
Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/master@{#593553}
Showing
Please register or sign in to comment