What's New in Extensions
This page lists the API and manifest changes made in recent releases.
Google Chrome 33
New APIs
- declarativeContent: Use the
chrome.declarativeContent
API to take actions depending on the content of a page, without requiring permission to read the page's content.
Google Chrome 32
New APIs
- system.cpu: Use the
system.cpu
API to query CPU metadata. - system.memory: The
chrome.system.memory
API.
Google Chrome 31
New APIs
- tabCapture: Use the
chrome.tabCapture
API to interact with tab media streams. - downloads: Use the
chrome.downloads
API to programmatically initiate, monitor, manipulate, and search for downloads.
Google Chrome 30
New APIs
- system.storage: Use the
chrome.system.storage
API to query storage device information and be notified when a removable storage device is attached and detached.
Google Chrome 29
New APIs
- identity: Use the
chrome.identity
API to get OAuth2 access tokens.
Google Chrome 28
New APIs
- notifications: Use the
chrome.notifications
API to create rich notifications using templates and show these notifications to users in the system tray.
Google Chrome 27
New APIs
- power: Use the
chrome.power
API to override the system's power management features.
Google Chrome 24
New APIs
- pushMessaging: Use
chrome.pushMessaging
to enable apps and extensions to receive message data sent through Google Cloud Messaging.
Google Chrome 22
New APIs
- fontSettings: Use the
chrome.fontSettings
API to manage Chrome's font settings. - runtime: Use the
chrome.runtime
API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs. - alarms: Use the
chrome.alarms
API to schedule code to run periodically or at a specified time in the future.
Additions to existing APIs
- Background pages can optionally be non-persistent, using a feature we call
event pages
. Event pages run only while they're being used, and will unload when idle to save resources.
Google Chrome 21
New APIs
- input.ime: Use the
chrome.input.ime
API to implement a custom IME for Chrome OS. This allows your extension to handle keystrokes, set the composition, and manage the candidate window. - events: The
chrome.events
namespace contains common types used by APIs dispatching events to notify you when something interesting happens.
Additions to existing APIs
- The types.ChromeSetting.set method now has a
regular_only
scope. - The browsingData.RemovalOptions now has an
originTypes
property. - The management.uninstall method now has a
showConfirmDialog
parameter. - The contextMenus.create method now allows you to specify unique IDs for each item. This is intended to be used with the new
contextMenus.onClicked
event, to distinguish the clicked item. - The browserAction.setIcon and pageAction.setIcon methods now accept optional callbacks.
- The privacy.websites namespace now has a
protectedContentEnabled
property. - The
index
parameter to the tabs.move method now accepts -1 to indicate that the tab should be placed at the end. - The
windowId
parameter to the tabs.highlight method is now optional.
Google Chrome 20
New APIs
- storage: Use the
chrome.storage
API to store, retrieve, and track changes to user data.
Additions to existing APIs
- The chrome.contextMenus contextMenus.create and contextMenus.update methods now have an
enabled
parameter. - The privacy API's privacy.services object now has a
spellingServiceEnabled
setting. - The chrome.tabs tabs.executeScript and tabs.insertCSS now accept a runAt parameter.
- The
sendRequest()
method has been deprecated in favor of thesendMessage()
method for both the runtime.sendMessage and tabs.sendMessage.
Manifest changes
- Manifest version 1 was deprecated in Chrome 18 and will be phased out according to the Manifest version 1 support
Google Chrome 19
New APIs
- topSites: Use the
chrome.topSites
API to access the top sites that are displayed on the new tab page. - browsingData: Use the
chrome.browsingData
API to remove browsing data from a user's local profile.
Additions to existing APIs
- The window API's windows.Window object now has an
alwaysOnTop
property and supports the fullscreen state. - The
chrome.tabs
tabs.query method now has thecurrentWindow
andlastFocusedWindow
parameters. - The browser action API has the following new getter functions: browserAction.getTitle, browserAction.getBadgeText, browserAction.getBadgeBackgroundColor, and browserAction.getPopup.
- The page action API has the following new getter functions: pageAction.getTitle and pageAction.getPopup.
Google Chrome 18
New APIs
- devtools.panels: Use the
chrome.devtools.panels
API to integrate your extension into Developer Tools window UI: create your own panels, access existing panels, and add sidebars. - devtools.inspectedWindow: Use the
chrome.devtools.inspectedWindow
API to interact with the inspected window: obtain the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page. - devtools.network: Use the
chrome.devtools.network
API to retrieve the information about network requests displayed by the Developer Tools in the Network panel. - pageCapture: Use the
chrome.pageCapture
API to save a tab as MHTML. - debugger: The
chrome.debugger
API serves as an alternate transport for Chrome's remote debugging protocol. Usechrome.debugger
to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the DebuggeetabId
to target tabs with sendCommand and route events bytabId
from onEvent callbacks. - privacy: Use the
chrome.privacy
API to control usage of the features in Chrome that can affect a user's privacy. This API relies on the ChromeSetting prototype of the type API for getting and setting Chrome's configuration.
Additions to existing APIs
- The chrome.tabs tabs.create and tabs.update methods now have an
openerTabId
parameter
Manifest changes
- The new manifest version field specifies the version of the manifest that your package requires. As of Chrome 18, you should use manifest version 2.
- The new Content Security Policy (CSP) field is used to define an extension's policies towards the types of content that can be loaded and executed by the extension.
- Most background pages only include a list of script files. For these background pages, you can use the new background.scripts property and Chrome will generate a background page for you.
- The new web_accessible_resources field specifies the paths of packaged resources that are expected to be usable in the context of a web page.
Google Chrome 17
New APIs
- webRequest: Use the
chrome.webRequest
API to observe and analyze traffic and to intercept, block, or modify requests in-flight.
Additions to existing APIs
- The management API's management.ExtensionInfo object now has a
disabledReason
property. - The omnibox API now works in split incognito mode.
Manifest changes
- Permissions can be optional for the content setting API, the web navigation API, and the new web request API.
Google Chrome 16
New APIs
- permissions: Use the
chrome.permissions
API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary. - contentSettings: Use the
chrome.contentSettings
API to change settings that control whether websites can use features such as cookies, JavaScript, and plug-ins. More generally speaking, content settings allow you to customize Chrome's behavior on a per-site basis instead of globally.
Additions to existing APIs
- The new tabs.query method gets all tabs that have the specified properties or all tabs if no properties are specified.
- The new tabs.reload method reloads a tab and includes the option to preserve the local cache of the reloaded tab.
- The management API's management.ExtensionInfo object now has an
updateURL
property. - You can now limit the supported locales for an external extension by adding the
supported_locales
attribute to theexternal_extensions.json
. - The methods
getAllInWindow()
andgetSelected()
have been deprecated. To get details about all tabs in the specified window, use tabs.query with the argument {'windowId': windowId}. To get the tab that is selected in the specified window, usechrome.tabs.query()
with the argument{'active': true}
. - You are no longer required to specify the
tabId
for the tabs.update method. When not provided, the tabId defaults to the selected tab of the current window. - External extension files on Mac OS can now be owned by users within a wheel group (or an admin group).
- The experimental permission is no longer required for the panel type. By default, the panel type creates a popup unless the
--enable-panels
flag is set.
Manifest changes
- The new requirements field allows you to declare extension requirements up front. For example, you can use this field to specify that your app requires 3D graphics support in order to use features such as CSS 3D Tranforms or WebGL.
Google Chrome 15
New APIs
- webstore: Use the
chrome.webstore
API to initiate app and extension installations "inline" from your site.
Additions to existing APIs
- You can retrieve permission warnings using the new management API methods management.getPermissionWarningsById and management.getPermissionWarningsByManifest.
- The management API’s management.ExtensionInfo object has a new field, offlineEnabled.
- You can now internationalize content script CSS files by using __MSG_messagename__ placeholders.
- The callback for the tabs.update method is passed null instead of the tab details if the extension does not have the tabs permission.
Manifest changes
- The new offline_enabled field lets you specify that your app works well even without an internet connection.
Google Chrome 14
New APIs
- tts: Use the
chrome.tts
API to play synthesized text-to-speech (TTS). See also the related ttsEngine API, which allows an extension to implement a speech engine. - ttsEngine: Use the
chrome.ttsEngine
API to implement a text-to-speech(TTS) engine using an extension. If your extension registers using this API, it will receive events containing an utterance to be spoken and other parameters when any extension or Chrome App uses the tts API to generate speech. Your extension can then use any available web technology to synthesize and output the speech, and send events back to the calling function to report the status.
Additions to existing APIs
- An optional drawAttention field in windows.update's updateInfo object lets you specify that the window should entice the user to change focus to it.
- The new bookmarks.getSubTree function lets you retrieve just part of the Bookmarks hierarchy
- The tabs permission is no longer required for tabs.remove and tabs.onRemoved.
Manifest changes
- The new content_security_policy field can help prevent cross-site scripting vulnerabilities in your extension.
- The new nacl_modules field lets you register Native Client modules as content handlers for MIME types.
Google Chrome 13
New APIs
- types: The
chrome.types
API contains type declarations for Chrome. - proxy: Use the
chrome.proxy
API to manage Chrome's proxy settings. This API relies on the ChromeSetting prototype of the type API for getting and setting the proxy configuration.
Additions to existing APIs
- Content scripts can now make cross-origin XMLHttpRequests to the same sites that their parent extension can, eliminating the need to relay these requests through a background page.
- You can now use
@run-at
in an imported Greasemonkey script to control when the script is injected. It works the same way asrun_at
in content scripts.
Manifest changes
- A new
exclude_matches
item in the content_scripts field lets you target your content script more precisely. For details, see Match patterns and globs. - New clipboardRead and clipboardWrite permissions specify capabilities for
document.execCommand()
.
Google Chrome 12
New APIs
- fileBrowserHandler: Use the
chrome.fileBrowserHandler
API to extend the Chrome OS file browser. For example, you can use this API to enable users to upload files to your website.
Additions to existing APIs
- Two new
chrome.extension
methods—extension.isAllowedFileSchemeAccess and extension.isAllowedIncognitoAccess—let you determine whether your extension has increased access, which the user specifies using the extensions management page (chrome://extensions). - The windows.create method can now take a
focused
value. Previously, all new windows had the keyboard focus; now you can create windows without interrupting the user's typing. - If the manifest specifies experimental permission, your extension can specify panel as the value of the
type
field in the windows.create method or the windows.Window type. - The
chrome.contextMenus
contextMenus.create and contextMenus.update methods now let you specify a context value of frame
Google Chrome 11
Additions to existing APIs
- For security reasons, you can no longer call tabs.captureVisibleTab on just any tab. Instead, you now must have host permission for the URL displayed by that tab. To get the previous behavior, specify
for the host permission. - The management API's management.ExtensionInfo object now has a
homepageUrl
property. - The management API now lets you get the icons of disabled apps and extensions. Also, you can now modify the regular icon's URL to get its disabled equivalent. See management.IconInfo for details.
Google Chrome 10
Additions to existing APIs
- The windows.create method now has a
tabId
field. You can use it to move a tab or panel into a new window.
Manifest changes
- The new background permission extends the life of Chrome, allowing your extension or app to run even when Chrome has no windows open.
Google Chrome 9
New APIs
- omnibox: The omnibox API allows you to register a keyword with Google Chrome's address bar, which is also known as the omnibox.
Additions to existing APIs
- The tabs.Tab object now has a
pinned
property that's reflected in variouschrome.tabs
methods. For example, you can tabs.create a pinned tab. - The windows.create method can now take a list of URLs, letting you create multiple tabs in the new window.
- The new management.get method lets you get information about the specified extension or app.
Manifest changes
- The homepage_url field lets you specify the extension or app's homepage.
Google Chrome 8
New APIs
- management: The
chrome.management
API provides ways to manage the list of extensions/apps that are installed and running. It is particularly useful for extensions that override the built-in New Tab page.
Google Chrome 7
Manifest changes
- Introduced split incognito mode as the default for installable web apps (also available to extensions).
- The tabs API
create()
andupdate()
methods no longer require the tabs permission, removing one common cause of scary dialogs.
Google Chrome 6
New APIs
- idle: Use the
chrome.idle
API to detect when the machine's idle state changes. - contextMenus: Use the
chrome.contextMenus
API to add items to Google Chrome's context menu. You can choose what types of objects your context menu additions apply to, such as images, hyperlinks, and pages.
Additions to existing APIs
- The extension.getViews method can now return popup views.
- A new windows.WINDOW_ID_NONE constant identifies when focus shifts away from the browser.
- The new tabs.getCurrent method returns the tab associated with the currently executing script.
Manifest changes
- The geolocation permission gives an extension access to the user's physical location.
- Match patterns can now select all schemes or all URLs.
- Access to file:/// URLs no longer triggers the access to your machine security warning, but now requires user opt-in from the extensions management page.
Google Chrome 5
New APIs
- extension: The
chrome.extension
API has utilities that can be used by any extension page. It includes support for exchanging messages between an extension and its content scripts or between extensions, as described in detail in Message Passing. - browserAction: Use browser actions to put icons in the main Google Chrome toolbar, to the right of the address bar. In addition to its icon, a browser action can also have a tooltip, a badge, and a popup.
- bookmarks: Use the
chrome.bookmarks
API to create, organize, and otherwise manipulate bookmarks. Also see Override Pages, which you can use to create a custom Bookmark Manager page. - i18n: Use the
chrome.i18n
infrastructure to implement internationalization across your whole app or extension. - history: Use the
chrome.history
API to interact with the browser's record of visited pages. You can add, remove, and query for URLs in the browser's history. To override the history page with your own version, see Override Pages. - tabs: Use the
chrome.tabs
API to interact with the browser's tab system. You can use this API to create, modify, and rearrange tabs in the browser. - pageAction: Use the
chrome.pageAction
API to put icons inside the address bar. Page actions represent actions that can be taken on the current page, but that aren't applicable to all pages. - windows: Use the
chrome.windows
API to interact with browser windows. You can use this API to create, modify, and rearrange windows in the browser.