Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose WKBackForwardListItem._wasCreatedByJSWithoutUserInteraction as SPI #13890

Conversation

cdumez
Copy link
Contributor

@cdumez cdumez commented May 15, 2023

168fc8d

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

9a20a61

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
  πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  tv-sim
βœ… πŸ›  watch
βœ… πŸ›  πŸ§ͺ unsafe-merge βœ… πŸ›  watch-sim

@cdumez cdumez self-assigned this May 15, 2023
@cdumez cdumez added the WebKit2 Bugs relating to the WebKit2 API layer label May 15, 2023
Copy link
Contributor

@brentfulgham brentfulgham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, and includes a test!

@cdumez cdumez added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label May 15, 2023
… 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
@webkit-commit-queue webkit-commit-queue force-pushed the 256798_WKBackForwardItem_wasCreatedByJSWithoutUserInteraction branch from 9a20a61 to 168fc8d Compare May 15, 2023 21:13
@webkit-commit-queue
Copy link
Collaborator

Committed 264082@main (168fc8d): https://commits.webkit.org/264082@main

Reviewed commits have been landed. Closing PR #13890 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 168fc8d into WebKit:main May 15, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit2 Bugs relating to the WebKit2 API layer
Projects
None yet
4 participants