New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 798169 link

Starred by 14 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature



Sign in to add a comment

Extension APIs should be also exposed under `browser.*` to match the WebExtensions spec

Reported by impinb...@gmail.com, Dec 31 2017

Issue description

The WebExtensions spec [1] specifies that all its methods are available under the `browser` global namespace. Could all the Chrome APIs with equivalents in the spec be ported over to the `browser` global namespace?

One key difference to note while adding this is that the WebExtensions spec is largely promise-based, while the `chrome.*` APIs are callback-based. Oh, and as a stop-gap solution, Mozilla has had a polyfill [2] out for a while to help people use the same extension code in Chrome and Firefox (and Edge) both.

[1]: https://browserext.github.io/browserext/
[2]: https://github.com/mozilla/webextension-polyfill
 

Comment 1 by impinb...@gmail.com, Dec 31 2017

Note: porting APIs *not* in the spec are out of scope of this bug, although I'm not against the idea (as long as it's like a proposal or something, so it's not nearly as breaking if another engine decides to do similar).

Comment 2 by woxxom@gmail.com, Dec 31 2017

TE@, this is a feature request for "Platform>Extensions>API" component.
Components: Platform>Extensions>API
Labels: -Type-Bug Type-Feature
Cc: vamshi.k...@techmahindra.com
Labels: -Pri-3 Needs-Milestone Triaged-ET M-65 Pri-2
Status: Untriaged (was: Unconfirmed)
Thanks for filing the issue!

As per the comment#2 and #3 considering it as Feature request and marking it as Untriaged.
As a side note, could the bug wizards (the "New Issue" button as well as
crbug.com/new) include an option for web devs to file feature requests?
Those are topical here, and guides typically point technical feature
requests here rather than the chromium-discuss forums (where most general
user requests go).

-----

Isiah Meadows
me@isiahmeadows.com

Looking for web consulting? Or a new website?
Send me an email and we can get started.
www.isiahmeadows.com
Owner: rdevlin....@chromium.org
Status: Assigned (was: Untriaged)
Assigning to Devlin to respond.
This is probably a duplicate of:
https://bugs.chromium.org/p/chromium/issues/detail?id=328932
Not really - it's kind of the other half of the same token. This is about exposing the APIs under the spec's namespace, while that is about exposing promise APIs in addition to callback APIs.

Sign in to add a comment