Explore Safari Web Extension improvements

RSS for tag

Discuss the WWDC21 session Explore Safari Web Extension improvements.

Posts under wwdc21-10027 tag

27 Posts

Post

Replies

Boosts

Views

Activity

Can apple gallery detect the safari version and choose the correct app to install
Hi everyone, I have a question for the apple store, for example we already have AppExtension as version 1.0.0 published on store, and we are going to migrate to WebExtension (following this doc) and publish as version 2.0.0. Could you help to confirm the following cases? If user is using Safari 14 and never installed 1.0.0, they will install WebExtension 2.0.0 if user is using Safari 14 and installed 1.0.0, after install 2.0.0, the AppExtension will update to WebExtension automatically if user is using Safari 13 and never installed 1.0.0, can they still install AppExtension 1.0.0? if user is using Safari 13 and installed 1.0.0, do they still get upgrade notification to upgrade to 2.0.0? And they can't upgrade successfully right? Thank you very much
0
0
867
Aug ’21
safari-technology-preview-125
How can I download safari-technology-preview-125? when I click on the link(https://webkit.org/blog/11680/release-notes-for-safari-technology-preview-125/), I can download latest version which need macOS 12. however I have macOS 11.4 and need to debug my app && need all tab available in safari inspector.
3
0
1.6k
Aug ’21
documentUrlPatterns in browser.contextMenus.create not functioning as expected
This also applies to browser.menus.create. Adding a url to documentUrlPatterns that has an explicit pathname, such as /some/page/ does not against document urls that should match. Example 01: browser.contextMenus.create({id: "12354", title: "Test01",documentUrlPatterns:["https://www.linkedin.com/feed/"]}); When using the above code, no context menu item is created for "https://www.linkedin.com/feed/". However, if I drop the trailing slash /, the menu item is created as expected. If the page has no formed pathname, it's simply /, the context menu is created as expected. The following code will work as expected, note the pathname. Example 02: browser.contextMenus.create({id: "12354", title: "Test01",documentUrlPatterns:["https://www.apple.com/"]}); Example 01 works as expected in Firefox, but as mentioned does not work in Safari. Is this purposeful or potentially a bug? Specs: Safari Version 14.1.1 (16611.2.7.1.4) macOS Version 11.4 (20F71)
0
0
1.2k
Jul ’21
CONVERTED SAFARI EXTENSION FROM EXISTING CHROME EXTENSION FAILS TO LOAD GIVING LAUNCH ERROR
I am working on Safari extension so converted already existing chrome extension to safari extension. To do this I followed below instructions: https://bartsolutions.github.io/2020/11/20/safari-extension/ when I try run extension from Xcode it fails to launch throwing below error: app<application.com.xxxx.xxx.10793168.10800118.BB8472F9-3051-4A37-8EF3-D5DF411B4D00> [36632] Jun 29 11:43:42 *********** com.apple.xpc.launchd[1] (application.com.yourCompany.XXXX-XXX-Endpoint-Chrome-Extension.11076141.11080033.6C91FDA5-2E3C-4ABC-BACB-C9A2C12F2304[93861]): Service could not initialize: 20F71: xpcproxy + 23576 [839][7C473509-E73F-3FD7-A067-1630A9922F16]: 0xd Jun 29 11:43:42 ***********F com.apple.xpc.launchd[1] (application.com.yourCompany.XXXX-XXX-Endpoint-Chrome-Extension.11076141.11080033.6C91FDA5-2E3C-4ABC-BACB-C9A2C12F2304[93861]): Service exited with abnormal code: 78 Jun 29 11:43:44 *********** com.apple.xpc.launchd[1]
0
0
549
Jul ’21
Safari Web Extension to open the remote server file in native application
I have created a sample safari extension where I need to open the remote file in native application. But when iam trying to access the file only the folder directory is opened. But my requirement is to open the file in native application. As the file is in remote server so, i use smb:// protocol to have a connection. if let url = URL(string: path) {     if NSWorkspace.shared.open(url) { print("Url is opened")     } } url: smb://192.168.150.46/cifsshare/AM_SM0656.tif  Do I need to update any permission or keys in the info.plist which will enable the file opening in default application (ex. Preview).
1
0
941
Jul ’21
Can apple gallery detect the safari version and choose the correct app to install
Hi everyone, I have a question for the apple store, for example we already have AppExtension as version 1.0.0 published on store, and we are going to migrate to WebExtension (following this doc) and publish as version 2.0.0. Could you help to confirm the following cases? If user is using Safari 14 and never installed 1.0.0, they will install WebExtension 2.0.0 if user is using Safari 14 and installed 1.0.0, after install 2.0.0, the AppExtension will update to WebExtension automatically if user is using Safari 13 and never installed 1.0.0, can they still install AppExtension 1.0.0? if user is using Safari 13 and installed 1.0.0, do they still get upgrade notification to upgrade to 2.0.0? And they can't upgrade successfully right? Thank you very much
Replies
0
Boosts
0
Views
867
Activity
Aug ’21
safari-technology-preview-125
How can I download safari-technology-preview-125? when I click on the link(https://webkit.org/blog/11680/release-notes-for-safari-technology-preview-125/), I can download latest version which need macOS 12. however I have macOS 11.4 and need to debug my app && need all tab available in safari inspector.
Replies
3
Boosts
0
Views
1.6k
Activity
Aug ’21
how to access web extension background pages on iOS?
We want to debug our web extension on iOS, by default, we can access web extension background page from Desktop Safari -> Top Menu -> Develop -> Web Extension Background Pages This works perfectly for extensions installed on macOS, but how to access the ones installed on iOS/iPadOS?
Replies
3
Boosts
0
Views
1.9k
Activity
Jul ’21
Safari Web Extension writing content to the group container
How do we access and write content to the group container? Also, apart from the SafariWebExtensionHandler's beginRequest(with:) function, is there some other native call back we can get?
Replies
1
Boosts
0
Views
1.1k
Activity
Jul ’21
documentUrlPatterns in browser.contextMenus.create not functioning as expected
This also applies to browser.menus.create. Adding a url to documentUrlPatterns that has an explicit pathname, such as /some/page/ does not against document urls that should match. Example 01: browser.contextMenus.create({id: "12354", title: "Test01",documentUrlPatterns:["https://www.linkedin.com/feed/"]}); When using the above code, no context menu item is created for "https://www.linkedin.com/feed/". However, if I drop the trailing slash /, the menu item is created as expected. If the page has no formed pathname, it's simply /, the context menu is created as expected. The following code will work as expected, note the pathname. Example 02: browser.contextMenus.create({id: "12354", title: "Test01",documentUrlPatterns:["https://www.apple.com/"]}); Example 01 works as expected in Firefox, but as mentioned does not work in Safari. Is this purposeful or potentially a bug? Specs: Safari Version 14.1.1 (16611.2.7.1.4) macOS Version 11.4 (20F71)
Replies
0
Boosts
0
Views
1.2k
Activity
Jul ’21
CONVERTED SAFARI EXTENSION FROM EXISTING CHROME EXTENSION FAILS TO LOAD GIVING LAUNCH ERROR
I am working on Safari extension so converted already existing chrome extension to safari extension. To do this I followed below instructions: https://bartsolutions.github.io/2020/11/20/safari-extension/ when I try run extension from Xcode it fails to launch throwing below error: app<application.com.xxxx.xxx.10793168.10800118.BB8472F9-3051-4A37-8EF3-D5DF411B4D00> [36632] Jun 29 11:43:42 *********** com.apple.xpc.launchd[1] (application.com.yourCompany.XXXX-XXX-Endpoint-Chrome-Extension.11076141.11080033.6C91FDA5-2E3C-4ABC-BACB-C9A2C12F2304[93861]): Service could not initialize: 20F71: xpcproxy + 23576 [839][7C473509-E73F-3FD7-A067-1630A9922F16]: 0xd Jun 29 11:43:42 ***********F com.apple.xpc.launchd[1] (application.com.yourCompany.XXXX-XXX-Endpoint-Chrome-Extension.11076141.11080033.6C91FDA5-2E3C-4ABC-BACB-C9A2C12F2304[93861]): Service exited with abnormal code: 78 Jun 29 11:43:44 *********** com.apple.xpc.launchd[1]
Replies
0
Boosts
0
Views
549
Activity
Jul ’21
Safari Web Extension to open the remote server file in native application
I have created a sample safari extension where I need to open the remote file in native application. But when iam trying to access the file only the folder directory is opened. But my requirement is to open the file in native application. As the file is in remote server so, i use smb:// protocol to have a connection. if let url = URL(string: path) {     if NSWorkspace.shared.open(url) { print("Url is opened")     } } url: smb://192.168.150.46/cifsshare/AM_SM0656.tif  Do I need to update any permission or keys in the info.plist which will enable the file opening in default application (ex. Preview).
Replies
1
Boosts
0
Views
941
Activity
Jul ’21