Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: efe49205d32cdfd396ca62f1b3b7452acdcfc176
https://github.com/WebKit/WebKit/commit/efe49205d32cdfd396ca62f1b3b7452acdcfc176
Author: Chris Dumez <[email protected]>
Date: 2026-07-01 (Wed, 01 Jul 2026)
Changed paths:
A
LayoutTests/fast/history/popstate-add-iframes-during-history-back-expected.txt
A LayoutTests/fast/history/popstate-add-iframes-during-history-back.html
M Source/WebCore/loader/HistoryController.cpp
Log Message:
-----------
Use-after-free in HistoryController::recursiveGoToItem — popstate-reentrant
setChildItem reallocates iterated m_children
https://bugs.webkit.org/show_bug.cgi?id=313623
rdar://175673154
Reviewed by Ryosuke Niwa.
Iterate over a copy of the HistoryItem children vector since it can be
modified while looping.
Test: fast/history/popstate-add-iframes-during-history-back.html
*
LayoutTests/fast/history/popstate-add-iframes-during-history-back-expected.txt:
Added.
* LayoutTests/fast/history/popstate-add-iframes-during-history-back.html: Added.
* Source/WebCore/loader/HistoryController.cpp:
(WebCore::HistoryController::recursiveSetProvisionalItem):
(WebCore::HistoryController::recursiveGoToItem):
Originally-landed-as: 305413.764@safari-7624-branch (9fd7e69ed2c4).
rdar://180437593
Canonical link: https://commits.webkit.org/316272@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications