[Webkit-unassigned] [Bug 244149] REGRESSION (iOS 16): New context menu (UIEditMenuInteraction) can't be disabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 23 11:54:56 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244149

--- Comment #4 from Kurt Revis <krevis at figma.com> ---
That solution wouldn't help pure web content. In Safari on MacOS, preventDefault() stops the system context menu from appearing. That should also work on iPadOS.

I can override -buildMenuWithBuilder: on a subclass of WKWebView, and it is called.  But if I do nothing and don't call super, the menu still appears, with a few items (Copy, Select all, Translate, Share). We don't want the menu to appear at all.

UIMenuBuilder does not provide a way to determine what items are actually in the menu so far, but I can just blindly guess, and remove the ones I think might be there. That's a pretty fragile workaround, though.

(If I do succeed in removing all the items, then nothing appears, and the pointer-event bug is not triggered. So that's good, at least.)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220823/2961f0cb/attachment-0001.htm>


More information about the webkit-unassigned mailing list