OLD | NEW |
| (Empty) |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | |
2 1) The <head> information in this page is significant, should be uniform | |
3 across api docs and should be edited only with knowledge of the | |
4 templating mechanism. | |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | |
6 browser, it will be re-generated from the template, json schema and | |
7 authored overview content. | |
8 4) The <body>.innerHTML is also generated by an offline step so that this | |
9 page may easily be indexed by search engines. | |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | |
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
12 <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css"> | |
13 <link href="css/print.css" rel="stylesheet" type="text/css" media="print"> | |
14 <script type="text/javascript" src="../../../third_party/jstemplate/jstempla
te_compiled.js"> | |
15 </script> | |
16 <script type="text/javascript" src="../../../../third_party/json_minify/mini
fy-sans-regexp.js"> | |
17 </script> | |
18 <script type="text/javascript" src="js/api_page_generator.js"></script> | |
19 <script type="text/javascript" src="js/bootstrap.js"></script> | |
20 <script type="text/javascript" src="js/sidebar.js"></script> | |
21 <title>What's New in Extensions? - Google Chrome Extensions - Google Code</tit
le></head> | |
22 <body> <div id="devModeWarning" class="displayModeWarning"> | |
23 You are viewing extension docs in chrome via the 'file:' scheme: are you exp
ecting to see local changes when you refresh? You'll need run chrome with --allo
w-file-access-from-files. | |
24 </div> | |
25 <div id="branchWarning" class="displayModeWarning"> | |
26 <span>WARNING: This is the <span id="branchName">BETA</span> documentation. | |
27 It may not work with the stable release of Chrome.</span> | |
28 <select id="branchChooser"> | |
29 <option>Choose a different version... | |
30 </option><option value="">Stable | |
31 </option><option value="beta">Beta | |
32 </option><option value="dev">Dev | |
33 </option><option value="trunk">Trunk | |
34 </option></select> | |
35 </div> | |
36 <div id="unofficialWarning" class="displayModeWarning"> | |
37 <span>WARNING: This is unofficial documentation. It may not work with the | |
38 current release of Chrome.</span> | |
39 <button id="goToOfficialDocs">Go to the official docs</button> | |
40 </div> | |
41 <div id="gc-container" class="labs"> | |
42 <!-- SUBTEMPLATES: DO NOT MOVE FROM THIS LOCATION --> | |
43 <!-- In particular, sub-templates that recurse, must be used by allowing | |
44 jstemplate to make a copy of the template in this section which | |
45 are not operated on by way of the jsskip="true" --> | |
46 <!-- /SUBTEMPLATES --> | |
47 <a id="top"></a> | |
48 <div id="skipto"> | |
49 <a href="#gc-pagecontent">Skip to page content</a> | |
50 <a href="#gc-toc">Skip to main navigation</a> | |
51 </div> | |
52 <!-- API HEADER --> | |
53 <table id="header" width="100%" cellspacing="0" border="0"> | |
54 <tbody><tr> | |
55 <td valign="middle"><a href="http://code.google.com/"><img src="images/c
ode_labs_logo.gif" height="43" width="161" alt="Google Code Labs" style="border:
0; margin:0;"></a></td> | |
56 <td valign="middle" width="100%" style="padding-left:0.6em;"> | |
57 <form action="http://www.google.com/cse" id="cse" style="margin-top:0.
5em"> | |
58 <div id="gsc-search-box"> | |
59 <input type="hidden" name="cx" value="002967670403910741006:61_cvz
fqtno"> | |
60 <input type="hidden" name="ie" value="UTF-8"> | |
61 <input type="text" name="q" value="" size="55"> | |
62 <input class="gsc-search-button" type="submit" name="sa" value="Se
arch"> | |
63 <br> | |
64 <span class="greytext">e.g. "page action" or "tabs"</span> | |
65 </div> | |
66 </form> | |
67 <script type="text/javascript" src="https://www.google.com/jsapi"></sc
ript> | |
68 <script type="text/javascript">google.load("elements", "1", {packages:
"transliteration"});</script> | |
69 <script type="text/javascript" src="https://www.google.com/coop/cse/t1
3n?form=cse&t13n_langs=en"></script> | |
70 <script type="text/javascript" src="https://www.google.com/coop/cse/br
and?form=cse&lang=en"></script> | |
71 </td> | |
72 </tr> | |
73 </tbody></table> | |
74 <div id="codesiteContent" class=""> | |
75 <a id="gc-topnav-anchor"></a> | |
76 <div id="gc-topnav"> | |
77 <h1>Google Chrome Extensions (<a href="http://code.google.com/labs/">Lab
s</a>)</h1> | |
78 <ul id="home" class="gc-topnav-tabs"> | |
79 <li id="home_link"> | |
80 <a href="index.html" title="Google Chrome Extensions home page">Home
</a> | |
81 </li> | |
82 <li id="docs_link"> | |
83 <a href="docs.html" title="Official Google Chrome Extensions documen
tation">Docs</a> | |
84 </li> | |
85 <li id="faq_link"> | |
86 <a href="faq.html" title="Answers to frequently asked questions abou
t Google Chrome Extensions">FAQ</a> | |
87 </li> | |
88 <li id="samples_link"> | |
89 <a href="samples.html" title="Sample extensions (with source code)">
Samples</a> | |
90 </li> | |
91 <li id="group_link"> | |
92 <a href="http://groups.google.com/a/chromium.org/group/chromium-exte
nsions" title="Google Chrome Extensions developer forum">Group</a> | |
93 </li> | |
94 <li id="so_link"> | |
95 <a href="http://stackoverflow.com/questions/tagged/google-chrome-ext
ension" title="[google-chrome-extension] tag on Stack Overflow">Questions?</a> | |
96 </li> | |
97 </ul> | |
98 </div> <!-- end gc-topnav --> | |
99 <div class="g-section g-tpl-170"> | |
100 <!-- SIDENAV --> | |
101 <div class="g-unit g-first" id="gc-toc"> | |
102 <ul> | |
103 <li><a href="getstarted.html">Getting Started</a></li> | |
104 <li><a href="overview.html">Overview</a></li> | |
105 <li class="leftNavSelected">What's New?</li> | |
106 <li><h2><a href="devguide.html">Developer's Guide</a></h2> | |
107 <ul> | |
108 <li>Browser UI | |
109 <ul> | |
110 <li><a href="browserAction.html">Browser Actions</a></li> | |
111 <li><a href="contextMenus.html">Context Menus</a></li> | |
112 <li><a href="notifications.html">Desktop Notifications</a></li
> | |
113 <li><a href="omnibox.html">Omnibox</a></li> | |
114 <li><a href="options.html">Options Pages</a></li> | |
115 <li><a href="override.html">Override Pages</a></li> | |
116 <li><a href="pageAction.html">Page Actions</a></li> | |
117 </ul> | |
118 </li> | |
119 <li>Browser Interaction | |
120 <ul> | |
121 <li><a href="bookmarks.html">Bookmarks</a></li> | |
122 <li><a href="cookies.html">Cookies</a></li> | |
123 <li><a href="devtools.html">Developer Tools</a></li> | |
124 <li><a href="events.html">Events</a></li> | |
125 <li><a href="history.html">History</a></li> | |
126 <li><a href="management.html">Management</a></li> | |
127 <li><a href="tabs.html">Tabs</a></li> | |
128 <li><a href="windows.html">Windows</a></li> | |
129 </ul> | |
130 </li> | |
131 <li>Implementation | |
132 <ul> | |
133 <li><a href="a11y.html">Accessibility</a></li> | |
134 <li><a href="background_pages.html">Background Pages</a></li> | |
135 <li><a href="content_scripts.html">Content Scripts</a></li> | |
136 <li><a href="xhr.html">Cross-Origin XHR</a></li> | |
137 <li><a href="i18n.html">Internationalization</a></li> | |
138 <li><a href="messaging.html">Message Passing</a></li> | |
139 <li><a href="permissions.html">Optional Permissions</a></li> | |
140 <li><a href="npapi.html">NPAPI Plugins</a></li> | |
141 </ul> | |
142 </li> | |
143 <li>Finishing | |
144 <ul> | |
145 <li><a href="hosting.html">Hosting</a></li> | |
146 <li><a href="external_extensions.html">Other Deployment Option
s</a></li> | |
147 </ul> | |
148 </li> | |
149 </ul> | |
150 </li> | |
151 <li><h2><a href="apps.html">Packaged Apps</a></h2></li> | |
152 <li><h2><a href="tutorials.html">Tutorials</a></h2> | |
153 <ul> | |
154 <li><a href="tut_debugging.html">Debugging</a></li> | |
155 <li><a href="tut_analytics.html">Google Analytics</a></li> | |
156 <li><a href="tut_oauth.html">OAuth</a></li> | |
157 </ul> | |
158 </li> | |
159 <li><h2>Reference</h2> | |
160 <ul> | |
161 <li>Formats | |
162 <ul> | |
163 <li><a href="manifest.html">Manifest Files</a></li> | |
164 <li><a href="match_patterns.html">Match Patterns</a></li> | |
165 </ul> | |
166 </li> | |
167 <li><a href="permission_warnings.html">Permission Warnings</a></li
> | |
168 <li><a href="api_index.html">chrome.* APIs</a></li> | |
169 <li><a href="api_other.html">Other APIs</a></li> | |
170 </ul> | |
171 </li> | |
172 <li><h2><a href="samples.html">Samples</a></h2></li> | |
173 <div class="line"> </div> | |
174 <li><h2>More</h2> | |
175 <ul> | |
176 <li><a href="http://code.google.com/chrome/webstore/docs/index.htm
l">Chrome Web Store</a></li> | |
177 <li><a href="http://code.google.com/chrome/apps/docs/developers_gu
ide.html">Hosted Apps</a></li> | |
178 <li><a href="themes.html">Themes</a></li> | |
179 </ul> | |
180 </li> | |
181 </ul> | |
182 </div> | |
183 <script> | |
184 initToggles(); | |
185 </script> | |
186 <div class="g-unit" id="gc-pagecontent"> | |
187 <div id="pageTitle"> | |
188 <h1 class="page_title">What's New in Extensions?</h1> | |
189 </div> | |
190 <!-- TABLE OF CONTENTS --> | |
191 <!-- /TABLE OF CONTENTS --> | |
192 <!-- Standard content lead-in for experimental API pages --> | |
193 <!-- STATIC CONTENT PLACEHOLDER --> | |
194 <div id="static"><div id="pageData-name" class="pageData">What's New in
Extensions?</div> | |
195 <!-- <div id="pageData-showTOC" class="pageData">true</div> --> | |
196 <p> | |
197 This page lists the API and manifest changes | |
198 made in recent releases. | |
199 </p> | |
200 <ul> | |
201 <li> <a href="#19">Google Chrome 19</a> </li> | |
202 <li> <a href="#18">Google Chrome 18</a> </li> | |
203 <li> <a href="#17">Google Chrome 17</a> </li> | |
204 <li> <a href="#16">Google Chrome 16</a> </li> | |
205 <li> <a href="#15">Google Chrome 15</a> </li> | |
206 <li> <a href="#14">Google Chrome 14</a> </li> | |
207 <li> <a href="#13">Google Chrome 13</a> </li> | |
208 <li> <a href="#12">Google Chrome 12</a> </li> | |
209 <li> <a href="#11">Google Chrome 11</a> </li> | |
210 <li> <a href="#10">Google Chrome 10</a> </li> | |
211 <li> <a href="#9">Google Chrome 9</a> </li> | |
212 <li> <a href="#8">Google Chrome 8</a> </li> | |
213 <li> <a href="#7">Google Chrome 7</a> </li> | |
214 <li> <a href="#6">Google Chrome 6</a> </li> | |
215 </ul> | |
216 <p> | |
217 In addition to the changes listed below, | |
218 check out the | |
219 <a href="experimental.html">experimental APIs</a>. | |
220 </p> | |
221 <h2 id="19"> Google Chrome 19 </h2> | |
222 <h4> New APIs </h4> | |
223 <ul> | |
224 <li>The <a href="browsingData.html">browsing data API</a> | |
225 lets you remove browsing data from a user's local profile. | |
226 </li><li>The <a href="topSites.html">top sites API</a> | |
227 gives you access to the top sites | |
228 that are displayed on the new tab page. | |
229 </li></ul> | |
230 <h4> Manifest changes </h4> | |
231 <ul> | |
232 <li>The new <a href="manifest.html#intents">intents</a> | |
233 field specifies all intent handlers provided by the extension. | |
234 </li></ul> | |
235 <h4> Additions to existing APIs </h4> | |
236 <ul> | |
237 <li>The window API's <a href="windows.html#type-Window">Window</a> | |
238 object now has an <code>alwaysOnTop</code> property and | |
239 supports the "fullscreen" state. | |
240 </li><li>The <code>chrome.tabs</code> | |
241 <a href="tabs.html#method-query">query()</a> method | |
242 now has the <code>currentWindow</code> and | |
243 <code>lastFocusedWindow</code> parameters. | |
244 </li><li>The <a href="browserAction.html">browser action API</a> | |
245 has the following new getter functions: | |
246 <a href="browserAction.html#method-getTitle">getTitle</a>, | |
247 <a href="browserAction.html#method-getBadgeText">getBadgeText</a>, | |
248 <a href="browserAction.html#method-getBadgeBackgroundColor">getBadgeBackg
r | |
249 oundColor</a>, and | |
250 <a href="browserAction.html#method-getPopup">getPopup</a>. | |
251 </li><li>The <a href="pageAction.html">page action API</a> | |
252 has the following new getter functions: | |
253 <a href="pageAction.html#method-getTitle">getTitle</a> and | |
254 <a href="pageAction.html#method-getPopup">getPopup</a>. | |
255 </li></ul> | |
256 <h2 id="18"> Google Chrome 18 </h2> | |
257 <h4> New APIs </h4> | |
258 <ul> | |
259 <li>The <a href="debugger.html">debugger API</a> | |
260 lets you use the Chrome Developer Tools | |
261 on one or more tabs remotely. | |
262 </li><li>The <a href="devtools.html">developer tools APIs</a> | |
263 provide support for extending Chrome Developer Tools. | |
264 The inspected window API lets you interact with the inspected window. | |
265 The network API lets you retrive information about network requests. | |
266 The panels API lets you add panels and sidebars. | |
267 </li><li>The <a href="input.ime.html">input method editor API</a> | |
268 lets you add custom input methods | |
269 such as complex language characters | |
270 directly to the system's input device. | |
271 </li><li>The <a href="pageCapture.html">page capture API</a> | |
272 lets you save a tab as MHTML. | |
273 </li><li> The <a href="privacy.html">privacy API</a> | |
274 lets you control usage of the features | |
275 in Chrome that can affect a user's privacy policy. | |
276 </li></ul> | |
277 <h4> Manifest changes </h4> | |
278 <ul> | |
279 <li>The new | |
280 <a href="manifest.html#manifest_version">manifest version</a> | |
281 field specifies the version of the manifest that your package requires. | |
282 As of Chrome 18, you should use | |
283 <a href="manifestVersion.html">manifest version 2</a>. | |
284 </li><li>The new | |
285 <a href="contentSecurityPolicy.html">Content Security Policy (CSP)</a> | |
286 field is used to define an extension's policies | |
287 towards the types of content | |
288 that can be loaded and executed by the extension. | |
289 </li><li>Most background pages only include a list of script files. | |
290 For these background pages, | |
291 you can use the new | |
292 <a href="background_pages.html">background.scripts</a> property | |
293 and Chrome will generate a background page for you. | |
294 </li></ul> | |
295 <h4> Additions to existing APIs </h4> | |
296 <ul> | |
297 <li>The <a href="windows.html#property-WINDOW_ID_CURRENT">windows API</a> | |
298 now has a <code>WINDOW_ID_CURRENT</code> property. | |
299 </li><li>The <code>chrome.tabs</code> | |
300 <a href="tabs.html#method-create">create()</a> and | |
301 <a href="tabs.html#method-update">update()</a> methods | |
302 now have an <code>openerTabId</code> parameter. | |
303 </li></ul> | |
304 <h2 id="17"> Google Chrome 17 </h2> | |
305 <h4> New APIs </h4> | |
306 <ul> | |
307 <li>The | |
308 <a href="webRequest.html">web request API</a> | |
309 lets you intercept, block, or | |
310 modify requests in-flight and | |
311 to observe and analyze traffic. | |
312 </li></ul> | |
313 <h4> Manifest changes </h4> | |
314 <ul> | |
315 <li>Permissions can be | |
316 <a href="permissions.html">optional</a> | |
317 for the content setting API, the web navigation API, and | |
318 the new web request API. | |
319 </li></ul> | |
320 <h4> Additions to existing APIs </h4> | |
321 <ul> | |
322 <li>The management API's | |
323 <a href="management.html#type-ExtensionInfo">ExtensionInfo</a> object | |
324 now has a <code>disabledReason</code> property. | |
325 </li></ul> | |
326 <h4> Changes to existing APIs </h4> | |
327 <ul> | |
328 <li>The <a href="omnibox.html">omnibox API</a> | |
329 now works in | |
330 <a href="manifest.html#incognito">split incognito mode</a>. | |
331 </li></ul> | |
332 <h2 id="16"> Google Chrome 16 </h2> | |
333 <h4> New APIs </h4> | |
334 <ul> | |
335 <li>The | |
336 <a href="webNavigation.html">web navigation API</a> | |
337 lets extensions receive notifications about the status | |
338 of navigation requests. | |
339 You can use this API to track navigation events. | |
340 </li><li>The | |
341 <a href="permissions.html">optional permissions API</a> | |
342 lets you control when users are presented with permission requests. | |
343 </li><li>The | |
344 <a href="contentSettings.html">content settings API</a> | |
345 lets extensions customize Chrome’s behavior | |
346 on a per-site basis instead of globally. | |
347 You can use this API to control whether websites can use features | |
348 such as cookies, JavaScript, and plug-ins. | |
349 </li></ul> | |
350 <h4> Manifest changes </h4> | |
351 <ul> | |
352 <li>The new | |
353 <a href="manifest.html#requirements">requirements</a> field | |
354 allows you to declare extension requirements up front. | |
355 For example, you can use this field | |
356 to specify that your app requires 3D graphics support | |
357 in order to use features such as CSS 3D Tranforms or WebGL. | |
358 </li></ul> | |
359 <h4> Additions to existing APIs </h4> | |
360 <ul> | |
361 <li>The new | |
362 <a href="tabs.html#method-query">chrome.tabs.query()</a> method | |
363 gets all tabs that have the specified properties or | |
364 all tabs if no properties are specified. | |
365 </li><li>The new | |
366 <a href="tabs.html#method-reload">chrome.tabs.reload()</a> method | |
367 reloads a tab and includes the option | |
368 to preserve the local cache of the reloaded tab. | |
369 </li><li>The management API's | |
370 <a href="management.html#type-ExtensionInfo">ExtensionInfo</a> object | |
371 now has an <code>updateURL</code> property. | |
372 </li><li>You can now limit the supported locales for an | |
373 <a href="external_extensions.html">external extension</a> | |
374 by adding the <code>supported_locales</code> attribute | |
375 to the <code>external_extensions.json</code>. | |
376 </li></ul> | |
377 <h4> Changes to existing APIs </h4> | |
378 <ul> | |
379 <li>The methods <code>getAllInWindow()</code> and | |
380 <code>getSelected()</code> have been deprecated. | |
381 To get details about all tabs in the specified window, use | |
382 <a href="tabs.html#method-query">chrome.tabs.query()</a> | |
383 with the argument <code>{'windowId': windowID}</code>. | |
384 To get the tab that is selected in the specified window, use | |
385 <code>chrome.tabs.query()</code> | |
386 with the argument <code>{'active': true}</code>. | |
387 </li><li>You are no longer required | |
388 to specify the <code>tabID</code> for the | |
389 <a href="tabs.html#method-update">chrome.tabs.update()</a> method. | |
390 When not provided, | |
391 the <code>tabID</code> defaults | |
392 to the selected tab of the current window. | |
393 </li><li>External extension files on Mac OS can now be owned by users | |
394 within a wheel group (or an admin group). | |
395 </li><li>The "experimental" permission is no longer required | |
396 for the | |
397 <a href="windows.html#type-Window">window "panel"</a> type. | |
398 By default, the "panel" type creates a popup | |
399 unless the <code>--enable-panels</code> flag is set. | |
400 </li></ul> | |
401 <h2 id="15"> Google Chrome 15 </h2> | |
402 <h4> New APIs </h4> | |
403 <ul> | |
404 <li>The <a href="webstore.html">webstore API</a> | |
405 lets you initiate app and extensions installations | |
406 <a href="http://code.google.com/chrome/webstore/docs/inline_installation.html">
"inline"</a> | |
407 from your site. | |
408 </li></ul> | |
409 <h4> Manifest changes </h4> | |
410 <ul> | |
411 <li>The new | |
412 <a href="manifest.html#offline_enabled">offline_enabled</a> field | |
413 lets you specify that your app works well even without an internet | |
414 connection. | |
415 </li></ul> | |
416 <h4> Additions to existing APIs </h4> | |
417 <ul> | |
418 <li>You can retrieve permission warnings using the new management API method
s | |
419 <a href="management.html#method-getPermissionWarningsById">getPermissionWa
rningsById()</a> | |
420 and | |
421 <a href="management.html#method-getPermissionWarningsByManifest">getPermis
sionWarningsByManifest()</a>. | |
422 </li><li>The management API’s | |
423 <a href="management.html#type-ExtensionInfo">ExtensionInfo</a> object has | |
424 a new field, <code>offlineEnabled</code>. | |
425 </li><li>You can now <a href="i18n.html">internationalize</a> content script
CSS | |
426 files by using <code>__MSG_messagename__</code> placeholders. | |
427 </li></ul> | |
428 <h4> Changes to existing APIs </h4> | |
429 <ul> | |
430 <li>The callback for the <a href="tabs.html#method-update">tabs.update</a> | |
431 method is passed <code>null</code> instead of the tab details if the | |
432 extension does not have the "tabs" permission. | |
433 </li></ul> | |
434 <h2 id="14"> Google Chrome 14 </h2> | |
435 <h4> New APIs </h4> | |
436 <ul> | |
437 <li>The <a href="tts.html">tts API</a> | |
438 lets extensions generate speech from text. | |
439 </li><li>The <a href="ttsEngine.html">ttsEngine API</a> | |
440 lets extensions implement text-to-speech (TTS) engines. | |
441 </li><li>Extensions that are distributed through the Chrome Web Store | |
442 can now include Native Client modules. | |
443 No special manifest entry is necessary, as you can see from the | |
444 <a href="http://code.google.com/p/naclports/source/browse#svn%2Ftrunk%2Fsr
c%2Fpackages%2Flibraries%2Fnethack-3.4.3">NetHack example</a>. | |
445 For more information, see the | |
446 <a href="http://blog.chromium.org/2011/08/native-client-brings-sandboxed-n
ative.html">announcement</a> and the | |
447 <a href="http://code.google.com/chrome/nativeclient/">Native Client docume
ntation</a>. | |
448 </li></ul> | |
449 <h4> Manifest changes </h4> | |
450 <ul> | |
451 <li>The new | |
452 <a href="manifest.html#content_security_policy">content_security_policy</a
> field | |
453 can help prevent | |
454 <a href="http://blog.chromium.org/2011/07/writing-extensions-more-securely
.html">cross-site scripting vulnerabilities</a> | |
455 in your extension. | |
456 </li><li>The new <a href="manifest.html#nacl_modules">nacl_modules</a> field | |
457 lets you register Native Client modules | |
458 as content handlers for MIME types. | |
459 </li></ul> | |
460 <h4> Additions to existing APIs </h4> | |
461 <ul> | |
462 <li><a href="contextMenus.html">Context menu</a> items | |
463 can now appear even in documents | |
464 that have file:// or chrome:// URLs. | |
465 Previously, they were restricted to documents with | |
466 http:// or https:// URLs. | |
467 </li><li>An optional <code>drawAttention</code> field in | |
468 <a href="windows.html#method-update">chrome.windows.update()</a>'s | |
469 <code>updateInfo</code> object lets you specify that the window | |
470 should entice the user to change focus to it. | |
471 </li><li>The new | |
472 <a href="bookmarks.html#method-getSubTree">bookmarks.getSubTree()</a> | |
473 function lets you retrieve just part of the Bookmarks hierarchy. | |
474 </li></ul> | |
475 <h4> Changes to existing APIs </h4> | |
476 <ul> | |
477 <li>The "tabs" permission is no longer required for | |
478 <a href="tabs.html#method-remove">tabs.remove</a> and | |
479 <a href="tabs.html#event-onRemoved">tabs.onRemoved</a>. | |
480 </li></ul> | |
481 <h2 id="13"> Google Chrome 13 </h2> | |
482 <h4> New APIs </h4> | |
483 <ul> | |
484 <li>The <a href="proxy.html">proxy API</a> | |
485 lets extensions manage Chrome's proxy settings. | |
486 </li><li>The | |
487 <a href="types.html#type-ChromeSetting">chrome.types.ChromeSetting</a> pro
totype | |
488 provides an interface to browser settings; | |
489 it's used by the proxy API. | |
490 </li><li> <em>Chrome OS only:</em> | |
491 The <a href="fileBrowserHandler.html">fileBrowserHandler API</a> | |
492 lets you extend the Chrome OS file browser. | |
493 </li></ul> | |
494 <h4> Manifest changes </h4> | |
495 <ul> | |
496 <li>A new <code>exclude_matches</code> item | |
497 in the "content_scripts" field | |
498 lets you target your content script more precisely. | |
499 For details, see | |
500 <a href="content_scripts.html#match-patterns-globs">Match patterns and glo
bs</a>. | |
501 </li><li>New "clipboardRead" and "clipboardWrite" | |
502 <a href="manifest.html#permissions">permissions</a> | |
503 specify capabilities for <code>document.execCommand()</code>. | |
504 </li></ul> | |
505 <h4> Additions to existing APIs </h4> | |
506 <ul> | |
507 <li>Content scripts can now make | |
508 <a href="xhr.html">cross-origin XMLHttpRequests</a> | |
509 to the same sites that their parent extension can, | |
510 eliminating the need to relay these requests | |
511 through a background page. | |
512 </li><li>You can now use <code>@run-at</code> | |
513 in an imported Greasemonkey script | |
514 to control when the script is injected. | |
515 It works the same way as | |
516 <a href="content_scripts.html#run_at"><code>run_at</code></a> | |
517 in content scripts. | |
518 </li></ul> | |
519 <h2 id="12"> Google Chrome 12 </h2> | |
520 <h4> Additions to existing APIs </h4> | |
521 <ul> | |
522 <li>Two new <code>chrome.extension</code> | |
523 methods—<a href="extension.html#method-isAllowedFileSchemeAccess">isAllowe
dFileSchemeAccess()</a> and | |
524 <a href="extension.html#method-isAllowedIncognitoAccess">isAllowedIncognit
oAccess()</a>—let you | |
525 determine whether your extension has increased access, | |
526 which the user specifies using the extensions management page | |
527 (<b>chrome://extensions</b>). | |
528 </li><li>The <a href="windows.html#method-create">chrome.windows.create()</a
> | |
529 method can now take a <code>focused</code> value. | |
530 Previously, all new windows had the keyboard focus; | |
531 now you can create windows without interrupting the user's typing. | |
532 </li><li>If the manifest specifies "experimental" permission, | |
533 your extension can specify "panel" as the value of | |
534 the <code>type</code> field in | |
535 the <a href="windows.html#method-create">chrome.windows.create()</a> | |
536 method | |
537 or the <a href="windows.html#type-Window">Window</a> type. | |
538 </li><li>The <a href="cookies.html#event-onChanged">onChanged</a> | |
539 event of <code>chrome.cookies</code> | |
540 now has a <code>cause</code> parameter. | |
541 </li><li>The <code>chrome.contextMenus</code> | |
542 <a href="contextMenus.html#method-create">create()</a> and | |
543 <a href="contextMenus.html#method-update">update()</a> | |
544 methods now let you specify a context value of "frame". | |
545 </li></ul> | |
546 <h2 id="11"> Google Chrome 11 </h2> | |
547 <h4> Changes to existing APIs </h4> | |
548 <ul> | |
549 <li>For security reasons, you can no longer call | |
550 <a href="tabs.html#method-captureVisibleTab">chrome.tab.captureVisibleTab(
)</a> | |
551 on just any tab. | |
552 Instead, you now must have | |
553 <a href="manifest.html#permissions">host permission</a> | |
554 for the URL displayed by that tab. | |
555 To get the previous behavior, | |
556 specify <code><all_urls></code> for the host permission. | |
557 </li></ul> | |
558 <h4> Additions to existing APIs </h4> | |
559 <ul> | |
560 <li>The management API's | |
561 <a href="management.html#type-ExtensionInfo">ExtensionInfo</a> object | |
562 now has a <code>homepageUrl</code> property. | |
563 </li><li>The management API now lets you get the icons of | |
564 disabled apps and extensions. | |
565 Also, you can now modify the regular icon's URL | |
566 to get its disabled equivalent. | |
567 See <a href="management.html#type-IconInfo">IconInfo</a> for details. | |
568 </li><li>The cookies API | |
569 <a href="cookies.html#method-set">set()</a> | |
570 and <a href="cookies.html#method-remove">remove()</a> methods | |
571 can now take callbacks. | |
572 </li></ul> | |
573 <h2 id="10"> Google Chrome 10 </h2> | |
574 <h4> Manifest changes </h4> | |
575 <ul> | |
576 <li>The new <a href="manifest.html#bg">background</a> permission | |
577 extends the life of Chrome, | |
578 allowing your extension or app | |
579 to run even when Chrome has no windows open. | |
580 </li></ul> | |
581 <h4> Additions to existing APIs </h4> | |
582 <ul> | |
583 <li>The <a href="windows.html#method-create">chrome.windows.create()</a> | |
584 method now has a <code>tabId</code> field. | |
585 You can use it to move a tab or panel into a new window. | |
586 <p class="note"> | |
587 <b>Note:</b> | |
588 This change was incorrectly attributed to Chrome 9 | |
589 in previous release notes. | |
590 </p></li></ul> | |
591 <h2 id="9"> Google Chrome 9 </h2> | |
592 <h4> New APIs </h4> | |
593 <ul> | |
594 <li>The <a href="omnibox.html">omnibox API</a> allows you to | |
595 register a keyword with Chrome's address bar. | |
596 </li></ul> | |
597 <h4> Manifest changes </h4> | |
598 <ul> | |
599 <li>The <a href="manifest.html#homepage_url">homepage_url</a> field | |
600 lets you specify the extension or app's homepage. | |
601 </li></ul> | |
602 <h4> Additions to existing APIs </h4> | |
603 <ul> | |
604 <li>The <a href="tabs.html#type-Tab">Tab</a> object | |
605 now has a <code>pinned</code> property | |
606 that's reflected in various <code>chrome.tabs</code> methods. | |
607 For example, | |
608 you can <a href="tabs.html#method-create">create</a> | |
609 a pinned tab. | |
610 </li><li>The <a href="windows.html#method-create">chrome.windows.create()</a
> | |
611 method can now take a list of URLs, | |
612 letting you create multiple tabs in the new window. | |
613 </li><li>The new | |
614 <a href="management.html#method-get">chrome.management.get()</a> method | |
615 lets you get information about the specified extension or app. | |
616 </li></ul> | |
617 <h2 id="8"> Google Chrome 8 </h2> | |
618 <p> | |
619 We took a break for Chrome 8. | |
620 No API or manifest changes worth noting. | |
621 </p> | |
622 <h2 id="7"> Google Chrome 7 </h2> | |
623 <h4> New APIs </h4> | |
624 <ul> | |
625 <li>All users can now install | |
626 <a href="http://code.google.com/chrome/apps/index.html">apps</a>; | |
627 packaged apps can use extension APIs. | |
628 </li><li>The <a href="management.html">management API</a> | |
629 lets you work with installed apps and extensions. | |
630 </li></ul> | |
631 <h4> Manifest changes </h4> | |
632 <ul> | |
633 <li>Introduced <a href="manifest.html#incognito">split incognito</a> | |
634 mode as the default for installable web apps | |
635 (also available to extensions). | |
636 </li><li>The <a href="tabs.html">tabs API</a> | |
637 <code>create()</code> and <code>update()</code> methods | |
638 no longer require the "tabs" permission, removing one common cause of | |
639 <a href="permission_warnings.html">scary dialogs</a>. | |
640 </li></ul> | |
641 <h2 id="6">Google Chrome 6</h2> | |
642 <h4> New APIs </h4> | |
643 <ul> | |
644 <li>The <a href="contextMenus.html">context menus API</a> allows you to | |
645 add context menus to pages or specific objects on a page. | |
646 </li><li>The <a href="cookies.html">cookies API</a> allows you to manage the | |
647 browser's cookie system. | |
648 </li><li>The <a href="idle.html">idle API</a> allows you to detect when the | |
649 machine's idle state changes. | |
650 </li></ul> | |
651 <h4> Additions to existing APIs </h4> | |
652 <ul> | |
653 <li>The <a href="extension.html#method-getViews">chrome.extension.getViews()
</a> | |
654 method can now return popup views. | |
655 </li><li>A new <a href="windows.html#property-WINDOW_ID_NONE">WINDOW_ID_NONE
</a> constant | |
656 identifies when focus shifts away from the browser. | |
657 </li><li>The new <a href="tabs.html#method-getCurrent">chrome.tabs.getCurren
t()</a> method | |
658 returns the tab associated with the currently executing script. | |
659 </li></ul> | |
660 <h4> Manifest changes </h4> | |
661 <ul> | |
662 <li>The <a href="manifest.html#geolocation">geolocation</a> permission | |
663 gives an extension access to the user's physical location. | |
664 </li><li><a href="match_patterns.html">Match patterns</a> can now select all | |
665 schemes or all URLs. | |
666 </li><li>Access to file:/// URLs no longer triggers the "access to your mach
ine" | |
667 security warning, but now requires user opt-in from the extensions | |
668 management page. | |
669 </li></ul> | |
670 </div> | |
671 <!-- API PAGE --> | |
672 <!-- /apiPage --> | |
673 </div> <!-- /gc-pagecontent --> | |
674 </div> <!-- /g-section --> | |
675 </div> <!-- /codesiteContent --> | |
676 <div id="gc-footer" --=""> | |
677 <div class="text"> | |
678 <p> | |
679 Except as otherwise <a href="http://code.google.com/policies.html#restrictions
">noted</a>, | |
680 the content of this page is licensed under the <a rel="license" href="http://c
reativecommons.org/licenses/by/3.0/">Creative Commons | |
681 Attribution 3.0 License</a>, and code samples are licensed under the | |
682 <a rel="license" href="http://code.google.com/google_bsd_license.html">BSD Lic
ense</a>. | |
683 </p> | |
684 <p> | |
685 ©2011 Google | |
686 </p> | |
687 <!-- begin analytics --> | |
688 <script src="https://www.google-analytics.com/urchin.js" type="text/javascript">
</script> | |
689 <script src="https://www.google-analytics.com/ga.js" type="text/javascript"></sc
ript> | |
690 <script type="text/javascript"> | |
691 // chrome doc tracking | |
692 try { | |
693 var engdocs = _gat._getTracker("YT-10763712-2"); | |
694 engdocs._trackPageview(); | |
695 } catch(err) {} | |
696 // code.google.com site-wide tracking | |
697 try { | |
698 _uacct="UA-18071-1"; | |
699 _uanchor=1; | |
700 _uff=0; | |
701 urchinTracker(); | |
702 } | |
703 catch(e) {/* urchinTracker not available. */} | |
704 </script> | |
705 <!-- end analytics --> | |
706 </div> | |
707 </div> <!-- /gc-footer --> | |
708 </div> <!-- /gc-container --> | |
709 </body></html> | |
OLD | NEW |