Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari Web Extension #108

Open
vwkd opened this issue Oct 9, 2021 · 3 comments
Open

Safari Web Extension #108

vwkd opened this issue Oct 9, 2021 · 3 comments

Comments

@vwkd
Copy link

vwkd commented Oct 9, 2021

Continuing #31 since Safari now supports Web Extensions.

Anyone wants to take this up?

@plibither8
Copy link
Owner

Thanks for opening this issue, @vwkd! Unfortunately, I still don't have an Apple device with me to develop and test this. I would love it if anyone can take this up - so pinning this issue! <3

@plibither8 plibither8 pinned this issue Oct 20, 2021
@robbiet480
Copy link

robbiet480 commented Nov 8, 2021

Took a quick run at this:

# xcrun safari-web-extension-converter --app-name "Refined Hacker News" --bundle-identifier io.robbie.refinedhn --swift dist/
objc[29794]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1e23b3130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047902c8). One of the two will be used. Which one is undefined.
objc[29794]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1e23b3180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x104790318). One of the two will be used. Which one is undefined.
Xcode Project Location: /Users/robbiet480/Repos/refined-hacker-news
App Name: Refined Hacker News
App Bundle Identifier: io.robbie.refinedhn
Platform: All
Language: Swift
Warning: The following keys in your manifest.json are not supported by your current version of Safari. If these are critical to your extension, you should review your code to see if you need to make changes to support Safari:
	history
	applications
Warning: Persistent background pages are not supported on iOS and iPadOS. You will need to make changes to support a non-persistent background page.

How critical are the history and applications permissions? Can the background page be non-persistent (it must be if you want to run on iOS).

So far, it seems to be running fine!

@robbiet480
Copy link

Taking a look at this again... the history permission just isn't available period on macOS or iOS Safari, so hide-read-stories is gonna need to be disabled at build time, that's fine.

What's the reasoning for requiring a persistent background page? That is being removed in manifest v3 anyway, looks like it was originally added to support Firefox at aca0a70 but I don't think its needed any longer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants