Services menu in WKWebviewMBS

If I remove all context menu items in a WKWebviewMBS with the following code in WillShowContextMenu:

menu.allowsContextMenuPlugIns = false
menu.removeAllItems

should there be a services menu or not?

The services in the services menu mostly don’t make any sense for my app.

Tahoe 26.2, Xojo 2025r2 and MBS from 13.10.2025.

Sorry, I don’t get a services menu here.

I tried my example with this code:

Sub willShowContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS) Handles willShowContextualMenu
  List.AddRow CurrentMethodName
  
  // remove all
  menu.removeAllItems
  menu.allowsContextMenuPlugIns = false
  
End Sub

Do you see it in the example project?

Yes, I see this in an example project:

test.xojo_binary_project.zip (4.5 KB)

I could swear that this is new to 26.2.

Okay. I’ll update my MacOS 26.2 to the latest beta to try this again.

I got 26.2 with build 25C56. The problem doesn’t happen there for me. Sorry.

I’m on 26.1 and I see the same services menu in your test project.

Aren’t services contextual for things you have installed? I customize them to suit my needs in System Settings. For example, there’s a service for Sentinel if you use that for launching unsigned apps.

Yep, I just meant that I saw the existence of the services menu, not that the items were the same.

@Beatrix_Willius if you create your own menu in that event then you can get rid of the services menu.

Sub willShowContextualMenu(menu as NSMenuMBS, NSEvent as NSEventMBS) Handles willShowContextualMenu
  dim base as new MenuItem
  
  base.AddMenu(New MenuItem("Import"))
  base.AddMenu(New MenuItem("Export"))
  base.AddMenu(New MenuItem(MenuItem.TextSeparator))
  
  base.AddMenu(New MenuItem("Cut"))
  base.AddMenu(New MenuItem("Copy"))
  base.AddMenu(New MenuItem("Paste"))
  
  dim hitItem as MenuItem = base.PopUp
End Sub

The services menu shows up if I remove all entries but make no new entries.

@Christian_Schmitz example with no Services menu:

List.AddRow CurrentMethodName

menu.removeAllItems

menu.allowsContextMenuPlugIns = false

My example with Services menu:

menu.allowsContextMenuPlugIns = false
menu.removeAllItems