
Additionally, however, the manifest does require a value ( default_locale) that is necessary and cannot be specified by the extension author in script code. Use of this API does not require a manifest permission declaration. In this example, the i18n API should be made available to both browser host scripts (background, event, popup, options, etc.) and content scripts. To express the aforementioned conditional situations in which certain APIs are made available due to expressed manifest keys or permissions, the new WebIDL extended attribute " CheckAnyPermissions" is used. ContentScript - Applies to content script context.This applies to background, event, popup, options and custom contexts Window - The primary context for most browser extension APIs.

To express the aforementioned conditional situations in which certain APIs are made available due to context, the following contexts are used: This specification uses WebIDL ] to describe the Browser Extensions API. However, the manifest does require a value ( default_locale) that is necessary and cannot be specified by the extension author in script code. If manifest keys that are not defined in this specification are specified, other browsers MAY elect to ignore those additional keys.īackground page,Event page,Popup page,Options page,Custom pageĤ Use of the browser.i18n object does not require a manifest permission declaration. These requirements are summarized in the table below. If the key or permission are not declared or not granted, the object will not be available for scripting. Some browser extension API require a specific manifest key or specific permission.


#Content browser definition code
This Community Group's goal is to make browser extension code much more interoperable across browsers by specifying common extension interfaces and well-defined browser behavior. People interested in this topic are encouraged to join that group.īecause browsers supported different add-on models, extension authors wound up creating divergent codebases and delivering different browser-specific add-ons. With similar objectives but much more active participation, In the meanwhile, a new “WebExtensions Community Group”, The specifications have therefore not been maintained in a while, and are out of date.

The level of participation has dropped below the level at which productive discussion is possible,Īnd activity in this group has stopped as a result. Implementation of the technologies discussed and tentatively specified in this Community Group is ongoingĪnd none of the original contributors have expressed opposition to this work.
