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

Migrate to MV3 (Chrome, Firefox, Edge) #1009

Merged
merged 42 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
5a79d41
Migrate to MV3
Sneezry Jan 31, 2023
b779d64
fix entry type
Sneezry Feb 2, 2023
6fc6164
fix default storage area
Sneezry Feb 2, 2023
88053dc
fix mv3 migration errors
mymindstorm Apr 2, 2023
35bddef
further CI fixes
mymindstorm Apr 2, 2023
eed5431
Fix disable backup policy not working issue (#1050)
Sneezry May 10, 2023
c5976b6
6.3.5
Sneezry May 10, 2023
a79b14f
typo
spaette Dec 20, 2023
d1bae1d
Merge pull request #1138 from vaerksted/dev
mymindstorm Dec 20, 2023
a9d771d
Fix bad practice with argon2-browser
mymindstorm Jan 2, 2024
a313365
Remove 'offline_enabled' from manifest
mymindstorm Jan 2, 2024
250c305
update test runner and coverage for mv3
mymindstorm Jan 2, 2024
bb7cc05
don't use dev config by default
mymindstorm Jan 2, 2024
60ea813
fix typo (#1144)
vuittont60 Jan 16, 2024
b684ed6
add import QR images/OTP URLs buttons to add account page
Sneezry Feb 28, 2024
160110d
Migrate to MV3
Sneezry Jan 31, 2023
fc55373
fix entry type
Sneezry Feb 2, 2023
af3f6e0
fix default storage area
Sneezry Feb 2, 2023
df2df65
fix mv3 migration errors
mymindstorm Apr 2, 2023
a143446
further CI fixes
mymindstorm Apr 2, 2023
d1712b3
Fix bad practice with argon2-browser
mymindstorm Jan 2, 2024
189fe8e
Remove 'offline_enabled' from manifest
mymindstorm Jan 2, 2024
5857a9c
update test runner and coverage for mv3
mymindstorm Jan 2, 2024
8c857bd
don't use dev config by default
mymindstorm Jan 2, 2024
0847d8b
Merge branch 'mv3' of github.com:Authenticator-Extension/Authenticato…
Sneezry Feb 28, 2024
881c7b1
dump version
Sneezry Feb 28, 2024
2240140
update manifest
Sneezry Feb 29, 2024
6268407
fix ff csp
Sneezry Feb 29, 2024
9db043b
remove artifact
mymindstorm Mar 15, 2024
22e9c21
rename test files
mymindstorm Mar 15, 2024
7f1368c
move syncTimeWithGoogle out of popup.ts
mymindstorm Mar 15, 2024
013904a
fix the tests, remove code coverage
mymindstorm Mar 15, 2024
053d5c4
remove testing code
mymindstorm Mar 18, 2024
e8083ae
refactor user settings (#1191)
Sneezry May 13, 2024
78d45bb
remove out-of-date eslint comments
Sneezry May 13, 2024
c2738b8
fix user settings migration issue
Sneezry May 15, 2024
7c845be
fix user setting migration issue
Sneezry May 15, 2024
adeaf82
fix edge errors
Sneezry May 20, 2024
6efa4ec
fix edge issues
Sneezry May 23, 2024
4932212
update firefox permissions
Sneezry May 23, 2024
78d7129
remove all_urls permission since Firefox has supported activeTab
Sneezry May 23, 2024
a5ef095
fix firefox crash due to functions getting added to usersettings object
mymindstorm May 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ jobs:
- name: Install dependencies
run: |
npm i prettier
sudo npm i -g lintspaces-cli

- name: Prettier
run: ./node_modules/prettier/bin-prettier.js --check ./src/* ./src/**/* ./src/**/**/* ./sass/*.scss

- name: lintspaces
run: |
lintspaces -nt -d 'spaces' -i 'js-comments' src/*/* src/*.ts view/* manifest-*.json css/popup.css css/import.css
build:
runs-on: ubuntu-latest
name: Build ${{ matrix.platform }}
Expand Down
6 changes: 6 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@
"permission_identity": {
"message": "Allows sign in to 3rd party storage services."
},
"permission_alarms": {
"message": "Allows auto-lock to work."
},
"permission_scripting": {
"message": "Inject scripts into he current tab to scan QR codes and allow auto-fill to work."
},
"permission_clipboard_write": {
"message": "Grants write-only access to the clipboard to copy codes to clipboard when you click on the account."
},
Expand Down
2 changes: 1 addition & 1 deletion manifests/manifest-chrome-testing.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"default_popup": "view/popup.html"
},
"commands": {
"_execute_browser_action": {},
"_execute_action": {},
"scan-qr": {
"description": "Scan a QR code"
}
Expand Down
44 changes: 24 additions & 20 deletions manifests/manifest-chrome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "__MSG_extName__",
"short_name": "__MSG_extShortName__",
"version": "6.3.4",
Expand All @@ -10,7 +10,7 @@
"48": "images/icon48.png",
"128": "images/icon128.png"
},
"browser_action": {
"action": {
"default_icon": {
"19": "images/icon19.png",
"38": "images/icon38.png"
Expand All @@ -19,7 +19,7 @@
"default_popup": "view/popup.html"
},
"commands": {
"_execute_browser_action": {},
"_execute_action": {},
"scan-qr": {
"description": "Scan a QR code"
},
Expand All @@ -29,7 +29,7 @@
},
"options_ui": {
"page": "view/options.html",
"chrome_style": true
"open_in_tab": false
},
"storage": {
"managed_schema": "schema.json"
Expand All @@ -41,32 +41,36 @@
]
},
"background": {
"scripts": [
"dist/background.js"
],
"persistent": true
"service_worker": "dist/background.js"
},
"sandbox": {
"pages": [
"view/argon.html"
],
"content_security_policy": "sandbox allow-scripts; script-src 'self' 'unsafe-eval';"
]
},
"permissions": [
"activeTab",
"storage",
"identity"
"identity",
"alarms",
"scripting"
],
"optional_permissions": [
"clipboardWrite",
"contextMenus",
"https://www.google.com/",
"https://*.dropboxapi.com/*",
"https://www.googleapis.com/*",
"https://accounts.google.com/o/oauth2/revoke",
"https://graph.microsoft.com/me/*",
"https://login.microsoftonline.com/common/oauth2/v2.0/token"
"contextMenus"
],
"optional_host_permissions": [
"https://www.google.com/",
"https://*.dropboxapi.com/*",
"https://www.googleapis.com/*",
"https://accounts.google.com/o/oauth2/revoke",
"https://graph.microsoft.com/me/*",
"https://login.microsoftonline.com/common/oauth2/v2.0/token"
],
"offline_enabled": true,
mymindstorm marked this conversation as resolved.
Show resolved Hide resolved
"content_security_policy": "script-src 'self'; font-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; connect-src https://www.google.com/ https://*.dropboxapi.com https://www.googleapis.com/ https://accounts.google.com/o/oauth2/revoke https://login.microsoftonline.com/common/oauth2/v2.0/token https://graph.microsoft.com/; default-src 'none'"
}
"content_security_policy": {
"extension_pages": "script-src 'self'; font-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; connect-src https://www.google.com/ https://*.dropboxapi.com https://www.googleapis.com/ https://accounts.google.com/o/oauth2/revoke https://login.microsoftonline.com/common/oauth2/v2.0/token https://graph.microsoft.com/; default-src 'none'",
"sandbox": "sandbox allow-scripts; script-src 'self' 'unsafe-eval';"
}
}

2 changes: 1 addition & 1 deletion manifests/manifest-edge.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"default_popup": "view/popup.html"
},
"commands": {
"_execute_browser_action": {},
"_execute_action": {},
"scan-qr": {
"description": "Scan a QR code"
},
Expand Down
Loading