-
Notifications
You must be signed in to change notification settings - Fork 975
Fix extension icons appearing in about: pages and context menu #12412
Conversation
fix #12409 Test Plan: 1. go to about:preferences#extensions, all icons should appear. 2. enable pocket. the browserAction icon should appear in the top right of the browser. 3. go to about:extensions. all icons should appear. 4. go to any page and right-click. the pocket icon should appear in the context menu.
@@ -408,7 +408,7 @@ module.exports.init = () => { | |||
extensionInfo.setInstallInfo(installInfo.id, installInfo) | |||
installInfo.filePath = installInfo.base_path | |||
|
|||
installInfo.base_path = chromeUrl(installInfo.base_path) | |||
installInfo.base_path = fileUrl(installInfo.base_path) |
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.
@kevinlawler i un-did this change from a51b7ea because chrome://brave URLs are not loadable in about: pages and also the code that generated context menu icons assumed a file:// URL. if i'm not mistaken, chrome://brave
is only needed for the browser action.
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.
@diracdeltas with @kevinlawler 's PR before fixed the icons being broken in the top right (part of the UI Chrome). I wonder if we need to store both the Chrome URL + file URL?
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.
I just verified that with this change, the icons still show up as expected 😄 I now see the change you did by wrapping browserAction! 👍
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.
Works great 😄 👍
Fix extension icons appearing in about: pages and context menu
Fix extension icons appearing in about: pages and context menu
fix #12409
Test Plan:
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests