-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Get Opera Ready for MV3 #13190
Merged
Merged
Get Opera Ready for MV3 #13190
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
87845d5
Add Opera Sidebar Related Manifest Keys
justindbaur f8d6728
Be stricter about where sidebar API's come from
justindbaur f5c3b5d
Skip Sidebar Icon Changes in MV3
justindbaur 09bbb90
Merge branch 'main' into ps/pm-17198/opera-mv3
justindbaur 0ac4c40
Fix typo in comment
justindbaur 76e3ef0
Merge branch 'ps/pm-17198/opera-mv3' of https://github.com/bitwarden/โฆ
justindbaur 6fd927e
Merge remote-tracking branch 'origin/main' into ps/pm-17198/opera-mv3
justindbaur e1689da
Add `open_at_install`
justindbaur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -128,6 +128,13 @@ | |||||||||||||||
}, | ||||||||||||||||
"description": "__MSG_commandOpenSidebar__" | ||||||||||||||||
}, | ||||||||||||||||
"__opera___execute_sidebar_action": { | ||||||||||||||||
"suggested_key": { | ||||||||||||||||
"default": "Alt+Shift+Y", | ||||||||||||||||
"linux": "Alt+Shift+U" | ||||||||||||||||
}, | ||||||||||||||||
"description": "__MSG_commandOpenSidebar__" | ||||||||||||||||
}, | ||||||||||||||||
"autofill_login": { | ||||||||||||||||
"suggested_key": { | ||||||||||||||||
"default": "Ctrl+Shift+L" | ||||||||||||||||
|
@@ -182,5 +189,12 @@ | |||||||||||||||
"storage": { | ||||||||||||||||
"managed_schema": "managed_schema.json" | ||||||||||||||||
}, | ||||||||||||||||
"__firefox__storage": null | ||||||||||||||||
"__firefox__storage": null, | ||||||||||||||||
"__opera__sidebar_action": { | ||||||||||||||||
"default_title": "Bitwarden", | ||||||||||||||||
"default_panel": "popup/index.html?uilocation=sidebar", | ||||||||||||||||
"default_icon": "images/icon19.png", | ||||||||||||||||
"open_at_install": false, | ||||||||||||||||
"browser_style": false | ||||||||||||||||
} | ||||||||||||||||
Comment on lines
+193
to
+199
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy from MV2 manifest: clients/apps/browser/src/manifest.json Lines 160 to 166 in 65024a1
|
||||||||||||||||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,13 @@ | |
return; | ||
} | ||
|
||
if ("opr" in this.win && BrowserApi.isManifestVersion(3)) { | ||
// setIcon API is currenly broken for Opera MV3 extensions | ||
// https://forums.opera.com/topic/75680/opr-sidebaraction-seticon-api-is-broken-access-to-extension-api-denied?_=1738349261570 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
// The API currently crashes on MacOS | ||
return; | ||
} | ||
|
||
if (this.isOperaSidebar(this.sidebarAction)) { | ||
await new Promise<void>((resolve) => | ||
(this.sidebarAction as OperaSidebarAction).setIcon(options, () => resolve()), | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Copy from MV2 manifest:
clients/apps/browser/src/manifest.json
Lines 106 to 112 in 65024a1