Repository navigation
History API - #11220
History API#11220cbrewster wants to merge 10 commits into
Conversation
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try |
History API Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR * Will enable these after making sure the current set of tests still pass. - [ ] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. This is a work in progress. **Do not merge.** What needs to be done: - [ ] Cleanup - [ ] Enabling the history interface tests - [ ] Security Checks - [ ] Changing `Url` on state change
|
💔 Test failed - mac-rel-wpt |
|
|
Looks like nothing broke at all! 😄 |
|
New code was committed to pull request. |
|
New code was committed to pull request. |
|
New code was committed to pull request. |
|
@bors-servo try |
History API Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR * Will enable these after making sure the current set of tests still pass. - [ ] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. This is a work in progress. **Do not merge.** What needs to be done: - [ ] Cleanup (Clear out things marked with `TODO` and cleanup commits) - [ ] Enabling the history interface tests - [ ] Security Checks - [ ] Changing `Url` on state change - [ ] Scroll Restoration (I may save this for a different PR) - [ ] Window `onpopstate` - [x] Clear forward state on `BrowsingContext` when frames are evicted <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11220) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
|
New code was committed to pull request. |
|
New code was committed to pull request. |
|
@bors-servo try |
History API Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy --faster` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). Either: - [ ] There are tests for these changes OR * Will enable these after making sure the current set of tests still pass. - [ ] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. This is a work in progress. **Do not merge.** What needs to be done: - [ ] Cleanup (Clear out things marked with `TODO` and cleanup commits) - [ ] Enabling the history interface tests - [ ] Security Checks - [ ] Changing `Url` on state change - [ ] Scroll Restoration (I may save this for a different PR) - [ ] Window `onpopstate` - [x] Clear forward state on `BrowsingContext` when frames are evicted <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11220) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
Blocked by #11344 |
|
☔ The latest upstream changes (presumably #11326) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #11471) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@asajeffrey the joint session history is now an iterator that lazily interleaves the frame tree history. Seems to work very well, plus if a Frame is removed from the tree, there should be no issue now. Also, once we get this ready for actual reviewal, I will open a PR so reviewable isn't so slow |
|
☔ The latest upstream changes (presumably #11472) made this pull request unmergeable. Please resolve the merge conflicts. |
window ref push state forward nav more history api work Added popstate event usage more stuff Added delta to NavigationDirection enum variants Added history length and full delta nav Added constellation - script communication for active history entry Quick fixes to finish of proof of concept Switched to use StructuredCloneData when possible Use Heap<JS> instead of MutHeapJSVal pushState and replaceState should be marked as Throw Added FrameEntry added interleaved session history Cleanup tidy fixes cleaned up clear forward browsing context session history updated test expectations enabled history interface tests Added popstate event handler fixed forward history not being cleared Fix conditions on when popstate should be fired push/replace state url handling remove changing of hash as it causes a page reload Updated test expectations Added active document check
Address other comments Remove duplicate popstate event binding
rebase and fix bhtml nav issue
|
New code was committed to pull request. |
|
New PR at #11481 |
Thank you for contributing to Servo! Please replace each
[ ]by[X]when the step is complete, and replace__with appropriate data:./mach build -ddoes not report any errors./mach test-tidy --fasterdoes not report any errorsEither:
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
What this PR covers
historyobjectHistoryTraversalTaskSourceonpopstatewindow event listenerBrowsingContext's session history to store history stateWhat needs to be done:
TODOand cleanup commits)onpopstateBrowsingContextwhen frames are evictedThis change is