devtools icon indicating copy to clipboard operation
devtools copied to clipboard

feat: Safari Web Extension

Open vad1ym opened this issue 3 years ago • 1 comments

Description

I don't have enough experience in contributing and pull-requests, so I would be thankful for help.

It adds possibility to build Safari Web Extension that works similar to Chrome extension #1139 Tested with Safari Technology Preview (Safari 16.0) on Mac OS 12.4. Builded with Xcode 14 beta 3

Safari 16 and Xcode 14 allow us to write extension with a Web Inspector tab feature. Added shell-safari folder based on shell-chrome folder, just replaced chrome.* with browser.* in some code lines. Added shell-safari/app folder with Xcode Safari Web Extension Folder. Added some scripts to package.json for building the extension app

How to build extension

  1. yarn build
  2. cd packages/shell-safari
  3. yarn safari Builded extension app: packages/shell-safari/app/extension/VueDevTools.app

P.S. To see extension from Safari preferences you should activate Develop/Allow Unsigned Extensions. To avoid this, the extension must be signed with Apple Developer Account.

Additional context

I guess, it should use same code base for Chrome and Safari (with chrome.* and browser.* difference), but I think it should be done by main developers of this repository.


What is the purpose of this pull request?

  • [ ] Bug fix
  • [X] New Feature
  • [ ] Documentation update
  • [ ] Other

Before submitting the PR, please make sure you do the following

  • [X] Read the Contributing Guidelines.
  • [X] Read the Pull Request Guidelines and follow the Commit Convention.
  • [X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • [X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).

vad1ym avatar Jul 07 '22 16:07 vad1ym

We should try to reuse the chrome folder instead of duplicating code I guess

Akryum avatar Jul 26 '22 12:07 Akryum

Are there any news?

50rayn avatar Dec 28 '22 06:12 50rayn