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 Port from App Extension #1491

Merged
merged 14 commits into from
Jan 13, 2021
Merged

Safari Web Extension Port from App Extension #1491

merged 14 commits into from
Jan 13, 2021

Conversation

Hinton
Copy link
Member

@Hinton Hinton commented Dec 11, 2020

Ports the existing Safari App Extension to the new Web Extension. Which eliminates most of the custom code required to support Safari. It also bumps the required safari version to 14.

The old xcode project was removed and a new was generated using the web extension converter.

Three features still depends on custom handlers in the Extension, but it's a fair improvement compared to before.

  • Read clipboard
  • Download file
  • Open Popup (Only supported in safari, so we can perhaps remove this?)

I also had to add a workaround:

  • StorageArea.set do not support setting a key to null in safari. Added a check which calls remove instead when value is null.

kspearrin
kspearrin previously approved these changes Dec 11, 2020
@cscharf cscharf linked an issue Jan 6, 2021 that may be closed by this pull request
…fari-webext

# Conflicts:
#	src/browser/safariApp.ts
#	src/safari/safari/SafariExtensionViewController.swift
#	src/services/browserPlatformUtils.service.ts
@Hinton Hinton marked this pull request as ready for review January 13, 2021 14:16
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

Successfully merging this pull request may close these issues.

Safari extension does not stay unlocked
3 participants