[webkit-changes] [WebKit/WebKit] 68c5d7: Don't show STTF generation in the context menu for...

Tim Horton noreply at github.com
Thu Aug 29 18:16:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 68c5d71c510d54631b1e34f53a10ad64e6911ace
      https://github.com/WebKit/WebKit/commit/68c5d71c510d54631b1e34f53a10ad64e6911ace
  Author: Tim Horton <thorton at apple.com>
  Date:   2024-08-29 (Thu, 29 Aug 2024)

  Changed paths:
    M Source/WebCore/page/ContextMenuController.cpp
    M Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm

  Log Message:
  -----------
  Don't show STTF generation in the context menu for non-HTTP URLs
https://bugs.webkit.org/show_bug.cgi?id=278890
rdar://134830459

Reviewed by Richard Robinson.

* Source/WebCore/page/ContextMenuController.cpp:
(WebCore::ContextMenuController::shouldEnableCopyLinkToHighlight const):
* Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView shouldAllowHighlightLinkCreation]):
(-[WKContentView scrollToTextFragmentGenerationMenu]):
Disable the menu on both platforms for non-HTTP URLs.

Canonical link: https://commits.webkit.org/282940@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