-
Notifications
You must be signed in to change notification settings - Fork 1k
Safari support #923
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 support #923
Conversation
src/components/Popup/BackupPage.vue
Outdated
| download="authenticator.txt" | ||
| :href="exportOneLineOtpAuthFile" | ||
| v-if="!unsupportedAccounts" | ||
| v-if="!unsupportedAccounts & isDataLinkSupported" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use blobl URLs (https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL) so that we can also enable backup feature on Safari?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately we don't have blob url support either on Safari, IIRC blob urls can't be opened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only available on Safari for now is file download. I didn't figure out an approach for working around for other backup solutions yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developer.apple.com/forums/thread/657490 seems a bug for Safari
|
I don't see the change for build script, do we need a new entry in build script for Safari web extension? |
@Sneezry We can reuse the chrome one since there aren't differences between compiling the extension for chromium and safari (exactly what Safari team aims for). The extension will behave differently at runtime. |
Then how can we build the extension for Safari, does |
@Sneezry Yes. Sorry that I didn't document how to test Safari. The steps would be
It's a pity that there is no hot reload. Let me know where is the best place for above steps, they can be documented in https://github.com/rebornix/Authen but it makes sense to me to have it in this project too. |
Sneezry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@mymindstorm I would really appreciate your help if you can also take a look at this PR, thanks in advance! |
|
Sorry about the delay, I'll get this reviewed by the end of today. |
Since this is the official safari port, how about we move rebornix/Authen into the Authenticator-Extension organization account, add the Safari build steps to @rebornix 's repository, and link to that from this repository? |
|
If @Sneezry has no objection I can start moving my repo to this organization and then update the steps and links in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mymindstorm @Sneezry I have already moved the Safari wrapper repository into this org and updated the readme with links to its contribution/development steps. Please help take a look ;)
Cool! The sub-module reference may need to update |
|
@Sneezry good catch! Updated the git-submodule link and will update the commit once we merge this PR. Let me know if the PR is good for merge, thanks! |
Fix #651
This PR adds changes we need to allow the plugin to be runnable on macOS safari, which includes:
browserutility to check browser type (isChrome, isFirefox, isSafari)chrome.storage.managedin Safari