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

Features exposed by both a browser's UI and the WebExtensions API should behave the same #26

Closed
ariasuni opened this issue Jun 29, 2021 · 3 comments
Labels
inconsistency Inconsistent behavior across browsers spec clarification Needs clarification when specified

Comments

@ariasuni
Copy link
Contributor

ariasuni commented Jun 29, 2021

I would like the specification to recommend the implementors to make the features available both through the WebExtensions API and the browser interface to follow the same defaults.

Examples:

Calling browser.tabs.create() (without arguments) should do exactly the same as a user clicking on the general «New Tab» button/hitting the general «New Tab» of their browser.

Calling browser.tabs.create({ url: "https://example.net/" }) (without defining the index) should do exactly the same as the user opening a link from another application.

Calling browser.tabs.duplicate(tabId) should duplicate the tab at the same place than it would if the user had called the browser duplicate feature on the tab with tabId through e.g. a contextual menu.

@dotproto dotproto changed the title Features available both through the browser interface and the WebExtensions API should behave the same Features exposed by both a browser's UI and the WebExtensions API should behave the same Jul 7, 2021
@dotproto
Copy link
Member

dotproto commented Jul 7, 2021

Reworded the title because every time I read it I thought it meant that window.open() and browser.tabs.create() should behave the same.

@xeenon xeenon added inconsistency Inconsistent behavior across browsers spec clarification Needs clarification when specified labels Sep 2, 2021
@zombie
Copy link
Collaborator

zombie commented Mar 20, 2024

I'm not sure tying API behaviors with user-facing behavior is a universal win. Extensions might come to depend on a certain (current/default) behavior, but either the Firefox product team, or the user could change that in the future, at which point, changing the API behavior might disrupt extensions that assumed a specific thing.

@patrickkettner
Copy link
Contributor

Closing this after discussing in the WECG today. While we agree that we do not want to go out of our way to have differentiating behavior, there is situations where it may make sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inconsistency Inconsistent behavior across browsers spec clarification Needs clarification when specified
Projects
None yet
Development

No branches or pull requests

5 participants