Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1e9a5df1f59da9583dcd2e0ef4b71b29224f98ca
https://github.com/WebKit/WebKit/commit/1e9a5df1f59da9583dcd2e0ef4b71b29224f98ca
Author: Ben Nham <[email protected]>
Date: 2024-06-21 (Fri, 21 Jun 2024)
Changed paths:
M Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp
M Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp
Log Message:
-----------
_WKSessionState blobs without history entry data should deserialize
https://bugs.webkit.org/show_bug.cgi?id=275757
rdar://122049041
Reviewed by Brady Eidson.
Back in 2016 in r198468 (<rdar://25064718>), we made a change to conditionally
serialize
sessionHistoryEntryDataKey. But when we deserialize session state, we
unconditionally fail if we
don't find sessionHistoryEntryDataKey. So we have a large number of session
data blobs in the wild
which simply don't deserialize, which looks like a tab with an empty
back/forward list in the
browser.
Fix this by allowing deserialization of blobs missing a
sessionHistoryEntryDataKey.
* Source/WebKit/UIProcess/mac/LegacySessionStateCoding.cpp:
(WebKit::decodeSessionHistoryEntry):
* Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp:
(TestWebKitAPI::TEST(WebKit, CanRestoreSessionStateWithoutHistoryEntryData)):
Canonical link: https://commits.webkit.org/280271@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes