-
Notifications
You must be signed in to change notification settings - Fork 56
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
Inconsistency: Permissions Inconsistency with New "SidePanel" #387
Comments
Firs of all, Sidebar Action API (Chromium-exclusive) and Side Panel API (Firefox-/Opera-/Naver-exclusive) are two different APIs which on surface aim to support similar use cases, but are actually completely different. It would be nice if all browsers could agree on a single API to begin with. As of now, the two APIs don't even match in their capabilities let alone the API names and permission name. Closer to the subject, I agree that permission consistency is very important (for both users and developers), while also I think explicit granular permissions are better (for users). I hope Chromium retains the permission and Firefox/Opera/Naver add their own permissions too. |
Another related issue is messaging initiated from background context to the sidebar. Currently, messages are routed based on |
That's the issue. I'm not sure why Chrome decided to implement a brand new API without following Mozilla’s, which has existed for a long time.
You can use |
Chrome had published a design document called "Extension API Proposal: Side Panel" document, which includes Google's motivation for diverging from the existing APIs. The relevant section is at https://docs.google.com/document/d/1bWM4oMj-3Bzp_ixtG5qkPWESCOfwAWJRUMXavxVswIM/edit#heading=h.7p4gqdn4ksj6 and its content is quoted below:
|
@Rob--W asked if we could investigate the possibility of implementing the |
Update add Microsoft Edge extension sidebar, which is using "sidePanel" permission: |
Realistically, I don't think this is something Chrome will do. We deliberately diverged in namespace from the Firefox API because the APIs were sufficiently different from one another, and are unlikely to converge in the near future.** Because there are enough differences between the APIs, we don't want to conflict or imply that they are (or should be) equivalent. Realistically, extensions will likely need to have differences between browsers (e.g. implemented as a step in an automated packing flow, etc). Given this and the fact that these aren't the same API, Chrome's not likely to "alias" sidebar_action to sidePanel. (In terms of if other browsers wanted to add a permission for sidebar / sidePanel, I have no strong opinion.) ** This community group is still growing and evolving. At the time we designed the sidePanel API, we didn't have as much alignment or as clear of processes as we do today. It's unclear if we necessarily would have gone the same route if we designed the API today, but we aren't likely to change this API in the near future. |
From the Firefox side, we don't plan on adding a permission for this feature (in either form), as that would be a backward-incompatible change for existing Firefox extensions. |
At TPAC we discussed this issue and noted a couple of things:
Given these (and the above comments), closing this out for now. |
Google Chrome Canary v114 recently introduced the new "sidePanel" feature that allows users to view a sidebar alongside their web browsing experience. However, there seems to be an inconsistency in the permissions required for Chrome extensions to access this feature. While Firefox, Opera, and Naver Whale web browsers do not require any additional permissions for their extensions to access the sidebar, Chrome extensions need to request permission to use this new feature.
I recently created my first Note Sidebar browser extension, and I have noticed that there is an inconsistency in the permissions required by different web browsers for extensions to access the sidebar feature. This has led to confusion for browser extension developers who want to create a single codebase that can be used across different browsers. It is unclear why some web browsers, such as Firefox, Opera, and Naver Whale, do not require any additional permissions for extensions to access the sidebar, while Chrome does.
As a result, I wanted to raise awareness among web browser vendors and the extension community about this difference. It is important to bring back harmony in extension development by having a consistent approach to permissions required for accessing sidebar features. I hope that this post will help to facilitate a conversation around this issue and ultimately lead to a more unified approach to extension development across different web browsers.
Here is a list of names used by various web browsers for this feature:
https://github.com/stefanvd/Browser-Extensions/tree/master/Note-Sidebar
Resources:
UPDATE 22 July 2023, add Microsoft Edge sidePanel permission
The text was updated successfully, but these errors were encountered: