[webkit-changes] [WebKit/WebKit] d3d216: [Site Isolation] editing/input/reveal-selection-ha...

Charlie Wolfe noreply at github.com
Tue Oct 29 10:27:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d3d21638647f4c6b6444a11da68bbc037393a649
      https://github.com/WebKit/WebKit/commit/d3d21638647f4c6b6444a11da68bbc037393a649
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2024-10-29 (Tue, 29 Oct 2024)

  Changed paths:
    M Source/WebCore/loader/NavigationScheduler.cpp
    M Source/WebCore/page/LocalFrame.h
    M Source/WebCore/page/Page.cpp
    M Source/WebCore/page/Page.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp

  Log Message:
  -----------
  [Site Isolation] editing/input/reveal-selection-having-stored-scroll-position.html crashes
https://bugs.webkit.org/show_bug.cgi?id=282191
rdar://138781071

Reviewed by Alex Christensen.

This test caused an assertion to fail that verifies the frame being navigated is a root frame.
`ScheduledHistoryNavigation` should pass the rootmost frame to `Page::goToItem`, rather than the main
frame, which may be out-of-process and unable to load history items. Also change the frame parameter to
LocalFrame to prevent this in the future.

No change in behavior when site isolation is disabled.

* Source/WebCore/loader/NavigationScheduler.cpp:
(WebCore::NavigationScheduler::scheduleHistoryNavigation):
* Source/WebCore/page/LocalFrame.h:
* Source/WebCore/page/Page.cpp:
(WebCore::Page::goToItem):
* Source/WebCore/page/Page.h:
* Source/WebKit/WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::goToBackForwardItem):

Canonical link: https://commits.webkit.org/285844@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list