I'm currently porting my TrashMail.com Extension from Google Chrome again to Safari Extensions.
However I would like to use native UI Cocoa components instead of "cloning" UI elements in HTML.
I'm creating a extension to provide disposable email address. If someone clicks in the context menu "Paste disposable email address", then it should create a window, asking for some parameters and then paste it into the form field.
We created this for Google Chrome, this is how it looks:
Context menu:
And then it should create a window:
However: What is bad, the window and the content is pure HTML5 code with CSS styles, that it looks like a native operating system UI element.
So instead doing this in HTML5 I would like to do it with a normal XIB file and writing Swift native code that the user have the best user experience. There should be no HTML5 code for the addon. I want that it looks and feel perfectly as the operating system macOS.
Is this possible?
When I try to start a simple NSAlert dialog, I get already the following error message:
"no service marshals available for modal session"
I created a feedback ID for this: FB7348486
"Simple UI functionality broken or disabled in Safari Extension"
I know that Firefox had in the past a similar functionality with XUL, it was very great for the user experience, it displayed the native operating system widgets. Unfortunately they removed it.