[webkit-changes] [WebKit/WebKit] 168fc8: Expose WKBackForwardListItem._wasCreatedByJSWithou...

Chris Dumez noreply at github.com
Mon May 15 14:14:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 168fc8d9d4cf8ecc403c5fd070375821983c8d4b
      https://github.com/WebKit/WebKit/commit/168fc8d9d4cf8ecc403c5fd070375821983c8d4b
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M Source/WebKit/UIProcess/API/Cocoa/WKBackForwardListItem.mm
    M Source/WebKit/UIProcess/API/Cocoa/WKBackForwardListItemPrivate.h
    M Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardListTests.mm

  Log Message:
  -----------
  Expose WKBackForwardListItem._wasCreatedByJSWithoutUserInteraction as SPI
https://bugs.webkit.org/show_bug.cgi?id=256798
rdar://109366865

Reviewed by Brent Fulgham.

Expose WKBackForwardListItem._wasCreatedByJSWithoutUserInteraction as SPI. We
use this flag internally to determine whether or not we should skip a
particular back/forward list item when navigating back / forward.

* Source/WebKit/UIProcess/API/Cocoa/WKBackForwardListItem.mm:
(-[WKBackForwardListItem _scrollPosition]):
(-[WKBackForwardListItem _wasCreatedByJSWithoutUserInteraction]):
* Source/WebKit/UIProcess/API/Cocoa/WKBackForwardListItemPrivate.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKBackForwardListTests.mm:
(runBackForwardNavigationSkipsItemsWithoutUserGestureTest):
(runBackForwardNavigationDoesNotSkipItemsWithUserGestureTest):
(TEST):

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




More information about the webkit-changes mailing list