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
Session history fixup #20629
Merged
+64
−4
Merged
Session history fixup #20629
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.
Loading status checks…
Remove entries for removed iframes
Notify history changed after a navigation Add history drop test
- Loading branch information
commit 787ec4b2093ca1402537e04df572984808e5fa10
| @@ -0,0 +1 @@ | ||
| <body>Filler</body> |
| @@ -0,0 +1,23 @@ | ||
| <!doctype html> | ||
| <meta charset="utf-8"> | ||
| <title>Joint session history length does not include entries from a removed iframe.</title> | ||
| <script src="/resources/testharness.js"></script> | ||
| <script src="/resources/testharnessreport.js"></script> | ||
| <body> | ||
| <iframe id="frame" src="about:blank"></iframe> | ||
| <script> | ||
| async_test(function(t) { | ||
| t.step_timeout(() => { | ||
| var child = document.getElementById("frame"); | ||
| var old_history_len = history.length; | ||
| child.onload = () => { | ||
| assert_equals(old_history_len + 1, history.length); | ||
| document.body.removeChild(document.getElementById("frame")); | ||
| assert_equals(old_history_len, history.length); | ||
| t.done(); | ||
asajeffrey
Member
|
||
| } | ||
| child.src = "joint-session-history-filler.html"; | ||
| }, 1000); | ||
| }); | ||
| </script> | ||
| </body> | ||
ProTip!
Use n and p to navigate between commits in a pull request.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Ah, this is interesting. Does this mean we're now eagerly removing entries from the session history, so the changes to
history.lengthwill be immediately visible?