New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index the session past correctly when discarding. #14860
Index the session past correctly when discarding. #14860
Conversation
r? @cbrewster |
Any chance to test this? |
Not entirely sure how we'd test this. Do we have a servo-specific wpt? |
Yes, you have the tests/mozilla, and TestBinding if you need to expose internals. |
I meant |
Do we have tests that are only intended for servo, not for FF? |
May fix #7572? |
Yes, quite a few of them, grep for |
@emilio I added a test, took a while to work out how to test for this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we be use an iframe for the test? Does it mess with the testharness to discard and reload the page?
There's no messing with the test harness, just some hoop jumping to make sure the test reporting comes from a page with the same URL as the original. |
@bors-servo r+ |
📌 Commit 0396934 has been approved by |
…when-discarding, r=cbrewster Index the session past correctly when discarding. <!-- Please describe your changes on the following line: --> Oops, indexed from the wrong end when discarding documents in #14312. --- <!-- 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` does not report any errors - [X] These changes do not require tests because we're not testing document discarding <!-- 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/14860) <!-- Reviewable:end -->
💔 Test failed - mac-rel-wpt1 |
|
0396934
to
53436c8
Compare
IRC chat with @cbrewster http://logs.glob.uno/?c=mozilla%23servo&s=5+Jan+2017&e=5+Jan+2017#c587879 TL;DR the crash is the same as #14312 (comment), with root cause #14843. The long-term solution is to fix that issue, but in the short term increasing the default @bors-servo r=cbrewster |
📌 Commit 53436c8 has been approved by |
…when-discarding, r=cbrewster Index the session past correctly when discarding. <!-- Please describe your changes on the following line: --> Oops, indexed from the wrong end when discarding documents in #14312. --- <!-- 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` does not report any errors - [X] These changes do not require tests because we're not testing document discarding <!-- 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/14860) <!-- Reviewable:end -->
💔 Test failed - linux-rel-wpt |
|
Oh that's ironic, that would be the test I just added to make sure that document discarding is happening, and which assumes the default max session history is 16. |
53436c8
to
b401556
Compare
Fixed the test. @bors-servo r=cbrewster |
📌 Commit b401556 has been approved by |
…when-discarding, r=cbrewster Index the session past correctly when discarding. <!-- Please describe your changes on the following line: --> Oops, indexed from the wrong end when discarding documents in #14312. --- <!-- 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` does not report any errors - [X] These changes do not require tests because we're not testing document discarding <!-- 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/14860) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-gnu-dev, windows-msvc-dev |
Oops, indexed from the wrong end when discarding documents in #14312.
./mach build -d
does not report any errors./mach test-tidy
does not report any errorsThis change is