Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6dfd984c1428160bec8fb28a7fefd5f9ec2c382c
https://github.com/WebKit/WebKit/commit/6dfd984c1428160bec8fb28a7fefd5f9ec2c382c
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2026-09-28 (Mon, 28 Sep 2026)
Changed paths:
M Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm
M Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture
Tests/BasicAppKitGesturesTests.swift
Log Message:
-----------
[AppKit Gestures] Cannot get context menu when right-clicking on standalone
image documents
https://bugs.webkit.org/show_bug.cgi?id=325556
rdar://188630800
Reviewed by Richard Robinson.
Standalone image documents style their image with `user-select: none`,
c.f. ImageDocument::createDocumentStructure(). As such, the secondary
click gesture treated the image as unselectable content and never began.
To fix this bug, we introduce a special case for standalone image
documents such that the secondary click can begin over the image when
the web view is presenting one.
Test: AppKitGesturesTests.Basic/clickAndHoldOnStandaloneImageOpensContextMenu
* Source/WebKit/UIProcess/mac/AppKitGestures/WKAppKitGestureController.mm:
(representsSecondaryClickableElement):
(-[WKAppKitGestureController _secondaryClickShouldBeginAtLocation:]):
* Tools/TestWebKitAPI/Tests/WebKit/WebPage/AppKit Gesture
Tests/BasicAppKitGesturesTests.swift:
(AppKitGesturesTests.clickAndHoldOnStandaloneImageOpensContextMenu):
Canonical link: https://commits.webkit.org/322109@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications