Portals: Basic linear history model
Implements a basic ability to navigate back and forward across a portal activation based on a linear model of portal history. Upon activation, only a portal contents' last committed entry is added to user facing session history. When the portal contents is swapped in, its NavigationController copies the navigation entries of the predecessor and combines them with its last committed navigation. Note that this does not cover the full design. Notably, the replace/traverse options of activation are not implemented. If we want to require navigation in a portal to be done with replacement, that's not implemented. Various races/edge cases are not yet addressed or cause us to bail out on the transfer of history entries for now. Bug: 914108 Change-Id: Ie44f8c77b80eb734db519a57ab63ad88a673b862 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807192 Commit-Queue: Kevin McNee <mcnee@chromium.org> Reviewed-by:Charlie Reis <creis@chromium.org> Cr-Commit-Position: refs/heads/master@{#719996}
Showing
Please register or sign in to comment