Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <div id="pageData-name" class="pageData">What's New in Extensions?</div> | 1 <div id="pageData-name" class="pageData">What's New in Extensions?</div> |
| 2 <!-- <div id="pageData-showTOC" class="pageData">true</div> --> | 2 <!-- <div id="pageData-showTOC" class="pageData">true</div> --> |
| 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 <ul> | 9 <ul> |
| 10 <li> <a href="#16">Google Chrome 16</a> </li> | |
| 10 <li> <a href="#15">Google Chrome 15</a> </li> | 11 <li> <a href="#15">Google Chrome 15</a> </li> |
| 11 <li> <a href="#14">Google Chrome 14</a> </li> | 12 <li> <a href="#14">Google Chrome 14</a> </li> |
| 12 <li> <a href="#13">Google Chrome 13</a> </li> | 13 <li> <a href="#13">Google Chrome 13</a> </li> |
| 13 <li> <a href="#12">Google Chrome 12</a> </li> | 14 <li> <a href="#12">Google Chrome 12</a> </li> |
| 14 <li> <a href="#11">Google Chrome 11</a> </li> | 15 <li> <a href="#11">Google Chrome 11</a> </li> |
| 15 <li> <a href="#10">Google Chrome 10</a> </li> | 16 <li> <a href="#10">Google Chrome 10</a> </li> |
| 16 <li> <a href="#9">Google Chrome 9</a> </li> | 17 <li> <a href="#9">Google Chrome 9</a> </li> |
| 17 <li> <a href="#8">Google Chrome 8</a> </li> | 18 <li> <a href="#8">Google Chrome 8</a> </li> |
| 18 <li> <a href="#7">Google Chrome 7</a> </li> | 19 <li> <a href="#7">Google Chrome 7</a> </li> |
| 19 <li> <a href="#6">Google Chrome 6</a> </li> | 20 <li> <a href="#6">Google Chrome 6</a> </li> |
| 20 </ul> | 21 </ul> |
| 21 | 22 |
| 22 <p> | 23 <p> |
| 23 In addition to the changes listed below, | 24 In addition to the changes listed below, |
| 24 check out the | 25 check out the |
| 25 <a href="experimental.html">experimental APIs</a>. | 26 <a href="experimental.html">experimental APIs</a>. |
| 26 </p> | 27 </p> |
| 27 | 28 |
| 29 <h2 id="16"> Google Chrome 16 </h2> | |
| 30 | |
| 31 <h4> New APIs </h4> | |
| 32 <ul> | |
| 33 <li> The new | |
| 34 <a href="webNavigation.html">webNavigation API</a> | |
|
kathyw
2011/11/30 21:46:15
I haven't been consistent about this, but I think
mkearney
2011/11/30 23:39:51
Done.
| |
| 35 lets extensions receive notifications about the status | |
| 36 of navigation requests. | |
| 37 This status can be tracked using navigation events. | |
| 38 For example, | |
| 39 the following navigation events are fired | |
| 40 at different stages in the completion of a web request: | |
| 41 <code>onBeforeNavigate</code>, | |
| 42 <code>onCommittedonDOMContentLoaded</code>, | |
| 43 and <code>onCompleted</code>. | |
| 44 | |
| 45 </li> | |
| 46 <li> The new | |
| 47 <a href="permissions.html">optional permissions API</a> | |
| 48 lets you control when users are presented with permission requests. | |
| 49 This ensures your users are not burdened with unnecessary permissions | |
| 50 and enables your users to understand the context of these permissions. | |
| 51 </li> | |
| 52 <li> The new | |
| 53 <a href="contentSettings.html">contentSettings API</a> | |
|
kathyw
2011/11/30 21:46:15
contentSettings -> content settings
mkearney
2011/11/30 23:39:51
Done.
| |
| 54 lets extensions customize Chrome’s behavior | |
| 55 on a per-site basis instead of globally. | |
| 56 You can use this API to control whether websites can use features | |
| 57 such as cookies, JavaScript, and plug-ins. | |
| 58 </li> | |
| 59 </ul> | |
| 60 | |
| 61 <h4> Manifest changes </h4> | |
| 62 <ul> | |
| 63 <li> The new | |
| 64 <a href="manifest.html">requirements</a> field | |
|
kathyw
2011/11/30 21:46:15
This item isn't very helpful. We should either del
mkearney
2011/11/30 23:39:51
I chose to keep this in for the short term until w
| |
| 65 allows you to declare extension requirements up front | |
| 66 so that your users can be informed of these requirements | |
| 67 before installing your extension. | |
| 68 </li> | |
| 69 </ul> | |
| 70 | |
| 71 <h4> Additions to existing APIs </h4> | |
| 72 <ul> | |
| 73 <li> The new | |
| 74 <a href="tabs.html#method-query">chrome.tabs.query()</a> method | |
| 75 gets all tabs that have the specified properties or | |
| 76 all tabs if no properties are specified. | |
| 77 This method has replaced the deprecated methods | |
|
kathyw
2011/11/30 21:46:15
I'd delete the second sentence, since the deprecat
mkearney
2011/11/30 23:39:51
Done.
| |
| 78 <code>chrome.tabs.getAllInWindow()</code> and | |
| 79 <code>chrome.tabs.getSelected</code>. | |
| 80 </li> | |
| 81 <li>The new | |
| 82 <a href="tabs.html#method-reload">chrome.tabs.reload()</a> method | |
| 83 reloads a tab and includes the option | |
| 84 to preserve the local cache of the reloaded tab. | |
| 85 </li> | |
| 86 <li>The management API's | |
| 87 <a href="management.html#type-ExtensionInfo">ExtensionInfo</a> object | |
| 88 now has an <code>updateURL</code> property. | |
| 89 </li> | |
| 90 <li> | |
| 91 You can now specify the supported locales for an external extension | |
|
kathyw
2011/11/30 21:46:15
specify -> limit?
(that way it's clear that this
mkearney
2011/11/30 23:39:51
Done.
| |
| 92 by adding the <code>supported_locales</code> attribute(s) | |
|
kathyw
2011/11/30 21:46:15
Remove "(s)". We try to avoid it, and I'm pretty s
mkearney
2011/11/30 23:39:51
I've implemented your changes. Also, I added to th
| |
| 93 to the <code>external_extensions.json</code>. | |
| 94 If your external extension supports all locales, | |
| 95 simply leave out this attribute. | |
|
kathyw
2011/11/30 21:46:15
I'd delete this sentence. Save it for the real doc
mkearney
2011/11/30 23:39:51
Done.
| |
| 96 </li> | |
| 97 </ul> | |
| 98 | |
| 99 <h4> Changes to existing APIs </h4> | |
| 100 <ul> | |
| 101 <li>The methods <code>getAllInWindow</code> and | |
|
kathyw
2011/11/30 21:46:15
getAllInWindow -> getAllInWindow()
(use () after
mkearney
2011/11/30 23:39:51
Done.
| |
| 102 <code>getSelected</code> have been deprecated. | |
|
kathyw
2011/11/30 21:46:15
getSelected -> getSelected()
mkearney
2011/11/30 23:39:51
Done.
| |
| 103 To get details about all tabs in the specified window, use | |
| 104 <a href="tabs.html#method-query">chrome.tabs.query {‘windowId’: windowID}</a >. | |
|
kathyw
2011/11/30 21:46:15
This isn't standard syntax. How about:
<a href="t
mkearney
2011/11/30 23:39:51
Done.
| |
| 105 To get the tab that is selected in the specified window, use | |
| 106 <a href="tabs.html#method-query">chrome.tabs.query {‘active’: true}</a>. | |
|
kathyw
2011/11/30 21:46:15
Same change as the previous one, perhaps without t
mkearney
2011/11/30 23:39:51
Done.
| |
| 107 </li> | |
| 108 <li> You are no longer required | |
| 109 to specify the <code>tabID</code> for the | |
| 110 <a href="tabs.html#method-update">chrome.tabs.update()</a> method. | |
| 111 When not provided, | |
| 112 the <code>tabID</code> defaults to the selected tab of the current window. | |
| 113 </li> | |
| 114 <li> | |
| 115 External extension files on Mac OS can now be owned by users | |
| 116 within a wheel group (or an admin group). | |
| 117 </li> | |
| 118 <li> | |
| 119 The “experimental” permission is no longer required | |
|
kathyw
2011/11/30 21:46:15
Change to straight quotes. We usually use straight
mkearney
2011/11/30 23:39:51
Done.
| |
| 120 for the | |
| 121 <a href="windows.html#type-Window">window “panel”</a> type. | |
|
kathyw
2011/11/30 21:46:15
Again, change to straight quotes.
mkearney
2011/11/30 23:39:51
Done.
| |
| 122 By default, the “panel’ type creates a popup | |
|
kathyw
2011/11/30 21:46:15
change to straight double-quotes.
(currently, the
mkearney
2011/11/30 23:39:51
Done.
| |
| 123 unless the <code>--enable-panels</code> flag is set. | |
| 124 </li> | |
| 125 </ul> | |
| 126 | |
| 28 <h2 id="15"> Google Chrome 15 </h2> | 127 <h2 id="15"> Google Chrome 15 </h2> |
| 29 | 128 |
| 30 <p>Chrome 15 had a few minor API additions. Also see the Chrome Web Store’s new | 129 <p>Chrome 15 had a few minor API additions. Also see the Chrome Web Store’s new |
| 31 <a href="http://code.google.com/chrome/webstore/docs/inline_installation.html">i nline | 130 <a href="http://code.google.com/chrome/webstore/docs/inline_installation.html">i nline |
| 32 installation</a> feature, which lets your website help users install extensions | 131 installation</a> feature, which lets your website help users install extensions |
| 33 (and apps) without sending them away to the store.</p> | 132 (and apps) without sending them away to the store.</p> |
| 34 | 133 |
| 35 <h4> Manifest changes </h4> | 134 <h4> Manifest changes </h4> |
| 36 <ul> | 135 <ul> |
| 37 <li> The new | 136 <li> The new |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 365 <ul> | 464 <ul> |
| 366 <li>The <a href="manifest.html#geolocation">geolocation</a> permission | 465 <li>The <a href="manifest.html#geolocation">geolocation</a> permission |
| 367 gives an extension access to the user's physical location. </li> | 466 gives an extension access to the user's physical location. </li> |
| 368 <li><a href="match_patterns.html">Match patterns</a> can now select all | 467 <li><a href="match_patterns.html">Match patterns</a> can now select all |
| 369 schemes or all URLs. </li> | 468 schemes or all URLs. </li> |
| 370 <li>Access to file:/// URLs no longer triggers the "access to your machine" | 469 <li>Access to file:/// URLs no longer triggers the "access to your machine" |
| 371 security warning, but now requires user opt-in from the extensions | 470 security warning, but now requires user opt-in from the extensions |
| 372 management page. </li> | 471 management page. </li> |
| 373 </ul> | 472 </ul> |
| 374 | 473 |
| OLD | NEW |