diff --git a/src/browser/browserApi.ts b/src/browser/browserApi.ts index d8f156d91b..c4e4803a83 100644 --- a/src/browser/browserApi.ts +++ b/src/browser/browserApi.ts @@ -184,7 +184,7 @@ export class BrowserApi { chrome.tabs.create({ url: url }); return null; } else if (BrowserApi.isSafariApi) { - // TODO + SafariApp.sendMessageToApp('createNewTab', url, true); return; } else { return; diff --git a/src/safari/app/desktop/safari/SafariExtensionViewController.swift b/src/safari/app/desktop/safari/SafariExtensionViewController.swift index 96103bcbed..a72f45099f 100644 --- a/src/safari/app/desktop/safari/SafariExtensionViewController.swift +++ b/src/safari/app/desktop/safari/SafariExtensionViewController.swift @@ -151,6 +151,9 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe } else if command == "isPopoverOpen" { m!.responseData = popoverOpenCount > 0 ? "true" : "false"; replyMessage(message: m!) + } else if command == "createNewTab" { + // TODO + replyMessage(message: m!) } else if command == "reloadExtension" { webView?.reload() replyMessage(message: m!)