Consider importing the toolbar pinned state of imported extensions
Categories
(WebExtensions :: General, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: mconley, Unassigned)
References
Details
Chrome is far less permissive when it comes to how toolbar buttons from WebExtensions can be placed in the toolbar. It looks like there's a single region that browser actions can exist in, and it's to the left of the addons button icon in the toolbar.
Thankfully, this means for us that Chrome's mechanism for storing the pinning state is extremely simple. From what I can tell, there's a Preferences
file inside of the Chrome profile directory. That's a JSON file, and if you parse it, there's an extensions
top-level property with a pinned_extensions
sub-property. pinned_extensions
is an array of Chrome extension IDs in the start-to-end order that they appear in the toolbar.
It should be fairly trivial to pull that ordering data out when reading Chrome's extension state. At the risk of adding scope, is it worth considering pinning the browser actions in Firefox if they're pinned in Chrome?
Updated•2 years ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•