Bug 308115
| Summary: | `navigation.currentEntry.key` doesn't change in private windows | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Oliver Joseph Ash <oliverjash> |
| Component: | Page Loading | Assignee: | rupin |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | achristensen, basuke, beidson, cdumez, rupin, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 26 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Oliver Joseph Ash
https://cdpn.io/pen/debug/LEZKPLE?authentication_hash=vWMRwVGBdLOr
Code: https://codepen.io/OliverJAsh/pen/LEZKPLE
```js
console.log(1, window.navigation.currentEntry.key);
setTimeout(() => {
history.pushState(null, "", "/foo")
console.log(2, window.navigation.currentEntry.key);
}, 2000)
```
In non-private windows, it changes as expected after the navigation (`pushState`), but in private windows it does not change.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/171147417>
rupin
Pull request: https://github.com/WebKit/WebKit/pull/60778
EWS
Committed 309489@main (6d6bfe8ade28): <https://commits.webkit.org/309489@main>
Reviewed commits have been landed. Closing PR #60778 and removing active labels.
rupin
Thank you for the bug report! This is fixed now by https://commits.webkit.org/309489@main.