Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSession history fixup #20629
Session history fixup #20629
Conversation
highfive
commented
Apr 12, 2018
|
Heads up! This PR modifies the following files:
|
|
r? @asajeffrey |
|
Opened new PR for upstreamable changes. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#50. |
3c0f253
to
9dd91bb
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#50. |
9dd91bb
to
1b1b772
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#50. |
1b1b772
to
84fc67a
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#50. |
|
LGTM! |
| { | ||
| let session_history = self.get_joint_session_history(browsing_context.top_level_id); | ||
| session_history.remove_entries_for_browsing_context(browsing_context_id); | ||
| } |
This comment has been minimized.
This comment has been minimized.
asajeffrey
Apr 12, 2018
Member
Ah, this is interesting. Does this mean we're now eagerly removing entries from the session history, so the changes to history.length will be immediately visible?
This comment has been minimized.
This comment has been minimized.
| assert_equals(old_history_len + 1, history.length); | ||
| document.body.removeChild(document.getElementById("frame")); | ||
| assert_equals(old_history_len, history.length); | ||
| t.done(); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
asajeffrey
Apr 12, 2018
Member
Oh that's interesting. I'm pretty sure this is a spec-compliant test.
|
Squash and r=me. |
Notify history changed after a navigation Add history drop test
84fc67a
to
787ec4b
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at jdm/web-platform-tests#50. |
|
@bors-servo r=asajeffrey |
|
|
Session history fixup <!-- Please describe your changes on the following line: --> When a browsing context was removed, its entries were not removed from the joint session history. The embedder should be notified that the history changed after a navigation matures. --- <!-- 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 build-geckolib` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20629) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
Notify history changed after a navigation Add history drop test Upstreamed from servo/servo#20629 [ci skip]
cbrewster commentedApr 12, 2018
•
edited by SimonSapin
When a browsing context was removed, its entries were not removed from the joint session history.
The embedder should be notified that the history changed after a navigation matures.
./mach build -ddoes not report any errors./mach build-geckolibdoes not report any errors./mach test-tidydoes not report any errorsThis change is