| OLD | NEW |
| 1 <h1>What's New in Extensions?</h1> | 1 <h1>What's New in Extensions?</h1> |
| 2 <!-- --> | 2 <!-- --> |
| 3 | 3 |
| 4 <p> | 4 <p> |
| 5 This page lists the API and manifest changes | 5 This page lists the API and manifest changes |
| 6 made in recent releases. | 6 made in recent releases. |
| 7 </p> | 7 </p> |
| 8 | 8 |
| 9 <h2 id="22"> Google Chrome 22 </h2> | 9 <h2 id="22"> Google Chrome 22 </h2> |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 <h2 id="18"> Google Chrome 18 </h2> | 155 <h2 id="18"> Google Chrome 18 </h2> |
| 156 | 156 |
| 157 <h4> New APIs </h4> | 157 <h4> New APIs </h4> |
| 158 <ul> | 158 <ul> |
| 159 <li>The <a href="debugger.html">debugger API</a> | 159 <li>The <a href="debugger.html">debugger API</a> |
| 160 lets you use the Chrome Developer Tools | 160 lets you use the Chrome Developer Tools |
| 161 on one or more tabs remotely. | 161 on one or more tabs remotely. |
| 162 <li>The <a href="devtools.html">developer tools APIs</a> | 162 <li>The <a href="devtools.html">developer tools APIs</a> |
| 163 provide support for extending Chrome Developer Tools. | 163 provide support for extending Chrome Developer Tools. |
| 164 The inspected window API lets you interact with the inspected window. | 164 The inspected window API lets you interact with the inspected window. |
| 165 The network API lets you retrive information about network requests. | 165 The network API lets you retrieve information about network requests. |
| 166 The panels API lets you add panels and sidebars. | 166 The panels API lets you add panels and sidebars. |
| 167 <li>The <a href="pageCapture.html">page capture API</a> | 167 <li>The <a href="pageCapture.html">page capture API</a> |
| 168 lets you save a tab as MHTML. | 168 lets you save a tab as MHTML. |
| 169 <li> The <a href="privacy.html">privacy API</a> | 169 <li> The <a href="privacy.html">privacy API</a> |
| 170 lets you control usage of the features | 170 lets you control usage of the features |
| 171 in Chrome that can affect a user's privacy policy. | 171 in Chrome that can affect a user's privacy policy. |
| 172 </ul> | 172 </ul> |
| 173 | 173 |
| 174 <h4> Manifest changes </h4> | 174 <h4> Manifest changes </h4> |
| 175 <ul> | 175 <ul> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 189 <a href="background_pages.html">background.scripts</a> property | 189 <a href="background_pages.html">background.scripts</a> property |
| 190 and Chrome will generate a background page for you. | 190 and Chrome will generate a background page for you. |
| 191 <li>The new | 191 <li>The new |
| 192 <a href="manifest.html#web_accessible_resources">web_accessible_resources<
/a> | 192 <a href="manifest.html#web_accessible_resources">web_accessible_resources<
/a> |
| 193 field specifies the paths of packaged resources | 193 field specifies the paths of packaged resources |
| 194 that are expected to be usable in the context of a web page. | 194 that are expected to be usable in the context of a web page. |
| 195 </ul> | 195 </ul> |
| 196 | 196 |
| 197 <h4> Additions to existing APIs </h4> | 197 <h4> Additions to existing APIs </h4> |
| 198 <ul> | 198 <ul> |
| 199 <li>The $ref:windows.WINDOW_ID_CURRENT | |
| 200 now has a <code>WINDOW_ID_CURRENT</code> property. | |
| 201 <li>The <code>chrome.tabs</code> | 199 <li>The <code>chrome.tabs</code> |
| 202 $ref:tabs.create and | 200 $ref:tabs.create and |
| 203 $ref:tabs.update methods | 201 $ref:tabs.update methods |
| 204 now have an <code>openerTabId</code> parameter. | 202 now have an <code>openerTabId</code> parameter. |
| 205 </ul> | 203 </ul> |
| 206 | 204 |
| 207 <h2 id="17"> Google Chrome 17 </h2> | 205 <h2 id="17"> Google Chrome 17 </h2> |
| 208 | 206 |
| 209 <h4> New APIs </h4> | 207 <h4> New APIs </h4> |
| 210 <ul> | 208 <ul> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 To get details about all tabs in the specified window, use | 292 To get details about all tabs in the specified window, use |
| 295 $ref:tabs.query | 293 $ref:tabs.query |
| 296 with the argument <code>{'windowId': windowID}</code>. | 294 with the argument <code>{'windowId': windowID}</code>. |
| 297 To get the tab that is selected in the specified window, use | 295 To get the tab that is selected in the specified window, use |
| 298 <code>chrome.tabs.query()</code> | 296 <code>chrome.tabs.query()</code> |
| 299 with the argument <code>{'active': true}</code>. | 297 with the argument <code>{'active': true}</code>. |
| 300 <li>You are no longer required | 298 <li>You are no longer required |
| 301 to specify the <code>tabID</code> for the | 299 to specify the <code>tabID</code> for the |
| 302 $ref:tabs.update method. | 300 $ref:tabs.update method. |
| 303 When not provided, | 301 When not provided, |
| 304 the <code>tabID</code> defaults | 302 the <code>tabId</code> defaults |
| 305 to the selected tab of the current window. | 303 to the selected tab of the current window. |
| 306 <li>External extension files on Mac OS can now be owned by users | 304 <li>External extension files on Mac OS can now be owned by users |
| 307 within a wheel group (or an admin group). | 305 within a wheel group (or an admin group). |
| 308 <li>The "experimental" permission is no longer required | 306 <li>The "experimental" permission is no longer required |
| 309 for the | 307 for the |
| 310 $ref:windows.Window type. | 308 $ref:[windows.Window "panel"] type. |
| 311 By default, the "panel" type creates a popup | 309 By default, the "panel" type creates a popup |
| 312 unless the <code>--enable-panels</code> flag is set. | 310 unless the <code>--enable-panels</code> flag is set. |
| 313 </ul> | 311 </ul> |
| 314 | 312 |
| 315 <h2 id="15"> Google Chrome 15 </h2> | 313 <h2 id="15"> Google Chrome 15 </h2> |
| 316 | 314 |
| 317 <h4> New APIs </h4> | 315 <h4> New APIs </h4> |
| 318 | 316 |
| 319 <ul> | 317 <ul> |
| 320 <li>The <a href="webstore.html">webstore API</a> | 318 <li>The <a href="webstore.html">webstore API</a> |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 </ul> | 417 </ul> |
| 420 | 418 |
| 421 <h4> Manifest changes </h4> | 419 <h4> Manifest changes </h4> |
| 422 <ul> | 420 <ul> |
| 423 <li>A new <code>exclude_matches</code> item | 421 <li>A new <code>exclude_matches</code> item |
| 424 in the "content_scripts" field | 422 in the "content_scripts" field |
| 425 lets you target your content script more precisely. | 423 lets you target your content script more precisely. |
| 426 For details, see | 424 For details, see |
| 427 <a href="content_scripts.html#match-patterns-globs">Match patterns and glo
bs</a>. | 425 <a href="content_scripts.html#match-patterns-globs">Match patterns and glo
bs</a>. |
| 428 <li>New "clipboardRead" and "clipboardWrite" | 426 <li>New "clipboardRead" and "clipboardWrite" |
| 429 <a href="manifest.html#permissions">permissions</a> | 427 <a href="declare_permissions.html">permissions</a> |
| 430 specify capabilities for <code>document.execCommand()</code>. | 428 specify capabilities for <code>document.execCommand()</code>. |
| 431 </ul> | 429 </ul> |
| 432 | 430 |
| 433 <h4> Additions to existing APIs </h4> | 431 <h4> Additions to existing APIs </h4> |
| 434 <ul> | 432 <ul> |
| 435 <li>Content scripts can now make | 433 <li>Content scripts can now make |
| 436 <a href="xhr.html">cross-origin XMLHttpRequests</a> | 434 <a href="xhr.html">cross-origin XMLHttpRequests</a> |
| 437 to the same sites that their parent extension can, | 435 to the same sites that their parent extension can, |
| 438 eliminating the need to relay these requests | 436 eliminating the need to relay these requests |
| 439 through a background page. | 437 through a background page. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 </ul> | 473 </ul> |
| 476 | 474 |
| 477 <h2 id="11"> Google Chrome 11 </h2> | 475 <h2 id="11"> Google Chrome 11 </h2> |
| 478 | 476 |
| 479 <h4> Changes to existing APIs </h4> | 477 <h4> Changes to existing APIs </h4> |
| 480 <ul> | 478 <ul> |
| 481 <li>For security reasons, you can no longer call | 479 <li>For security reasons, you can no longer call |
| 482 $ref:tabs.captureVisibleTab | 480 $ref:tabs.captureVisibleTab |
| 483 on just any tab. | 481 on just any tab. |
| 484 Instead, you now must have | 482 Instead, you now must have |
| 485 <a href="manifest.html#permissions">host permission</a> | 483 <a href="declare_permissions.html">host permission</a> |
| 486 for the URL displayed by that tab. | 484 for the URL displayed by that tab. |
| 487 To get the previous behavior, | 485 To get the previous behavior, |
| 488 specify <code><all_urls></code> for the host permission. | 486 specify <code><all_urls></code> for the host permission. |
| 489 </ul> | 487 </ul> |
| 490 | 488 |
| 491 <h4> Additions to existing APIs </h4> | 489 <h4> Additions to existing APIs </h4> |
| 492 <ul> | 490 <ul> |
| 493 <li>The management API's | 491 <li>The management API's |
| 494 $ref:management.ExtensionInfo object | 492 $ref:management.ExtensionInfo object |
| 495 now has a <code>homepageUrl</code> property. | 493 now has a <code>homepageUrl</code> property. |
| 496 <li>The management API now lets you get the icons of | 494 <li>The management API now lets you get the icons of |
| 497 disabled apps and extensions. | 495 disabled apps and extensions. |
| 498 Also, you can now modify the regular icon's URL | 496 Also, you can now modify the regular icon's URL |
| 499 to get its disabled equivalent. | 497 to get its disabled equivalent. |
| 500 See $ref:management.IconInfo for details. | 498 See $ref:management.IconInfo for details. |
| 501 <li>The cookies API | 499 <li>The cookies API |
| 502 $ref:cookies.set | 500 $ref:cookies.set |
| 503 and $ref:cookies.remove methods | 501 and $ref:cookies.remove methods |
| 504 can now take callbacks. | 502 can now take callbacks. |
| 505 </ul> | 503 </ul> |
| 506 | 504 |
| 507 <h2 id="10"> Google Chrome 10 </h2> | 505 <h2 id="10"> Google Chrome 10 </h2> |
| 508 | 506 |
| 509 <h4> Manifest changes </h4> | 507 <h4> Manifest changes </h4> |
| 510 <ul> | 508 <ul> |
| 511 <li>The new <a href="manifest.html#bg">background</a> permission | 509 <li>The new <a href="declare_permissions.html#bg">background</a> permission |
| 512 extends the life of Chrome, | 510 extends the life of Chrome, |
| 513 allowing your extension or app | 511 allowing your extension or app |
| 514 to run even when Chrome has no windows open. | 512 to run even when Chrome has no windows open. |
| 515 </ul> | 513 </ul> |
| 516 | 514 |
| 517 <h4> Additions to existing APIs </h4> | 515 <h4> Additions to existing APIs </h4> |
| 518 <ul> | 516 <ul> |
| 519 <li>The $ref:windows.create | 517 <li>The $ref:windows.create |
| 520 method now has a <code>tabId</code> field. | 518 method now has a <code>tabId</code> field. |
| 521 You can use it to move a tab or panel into a new window. | 519 You can use it to move a tab or panel into a new window. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 <h4> Manifest changes </h4> | 613 <h4> Manifest changes </h4> |
| 616 <ul> | 614 <ul> |
| 617 <li>The <a href="manifest.html#geolocation">geolocation</a> permission | 615 <li>The <a href="manifest.html#geolocation">geolocation</a> permission |
| 618 gives an extension access to the user's physical location. | 616 gives an extension access to the user's physical location. |
| 619 <li><a href="match_patterns.html">Match patterns</a> can now select all | 617 <li><a href="match_patterns.html">Match patterns</a> can now select all |
| 620 schemes or all URLs. | 618 schemes or all URLs. |
| 621 <li>Access to file:/// URLs no longer triggers the "access to your machine" | 619 <li>Access to file:/// URLs no longer triggers the "access to your machine" |
| 622 security warning, but now requires user opt-in from the extensions | 620 security warning, but now requires user opt-in from the extensions |
| 623 management page. | 621 management page. |
| 624 </ul> | 622 </ul> |
| OLD | NEW |