| OLD | NEW |
| 1 <div id="pageData-name" class="pageData">Formats: Manifest Files</div> | 1 <div id="pageData-name" class="pageData">Formats: Manifest Files</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 Every extension, installable web app, and theme has a | 5 Every extension, installable web app, and theme has a |
| 6 <a href="http://www.json.org">JSON</a>-formatted manifest file, | 6 <a href="http://www.json.org">JSON</a>-formatted manifest file, |
| 7 named <code>manifest.json</code>, | 7 named <code>manifest.json</code>, |
| 8 that provides important information. | 8 that provides important information. |
| 9 </p> | 9 </p> |
| 10 | 10 |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 </pre> | 290 </pre> |
| 291 | 291 |
| 292 <p> | 292 <p> |
| 293 The following table lists the permissions an extension | 293 The following table lists the permissions an extension |
| 294 or packaged app can use. | 294 or packaged app can use. |
| 295 </p> | 295 </p> |
| 296 | 296 |
| 297 <p class="note"> | 297 <p class="note"> |
| 298 <strong>Note:</strong> | 298 <strong>Note:</strong> |
| 299 Hosted apps can use the | 299 Hosted apps can use the |
| 300 "background", "geolocation", "notifications", and "unlimitedStorage" permissions
, | 300 "geolocation", "notifications", and "unlimitedStorage" permissions, |
| 301 but not any other permissions listed in this table. | 301 but not any other permissions listed in this table. |
| 302 </p> | 302 </p> |
| 303 | 303 |
| 304 <table> | 304 <table> |
| 305 <tr> | 305 <tr> |
| 306 <th> Permission </th> <th> Description </th> | 306 <th> Permission </th> <th> Description </th> |
| 307 </tr> | 307 </tr> |
| 308 <tr> | 308 <tr> |
| 309 <td> <em>match pattern</em> </td> | 309 <td> <em>match pattern</em> </td> |
| 310 <td> Specifies a <em>host permission</em>. | 310 <td> Specifies a <em>host permission</em>. |
| 311 Required if the extension wants to interact | 311 Required if the extension wants to interact |
| 312 with the code running on pages. | 312 with the code running on pages. |
| 313 Many extension capabilities, such as | 313 Many extension capabilities, such as |
| 314 <a href="xhr.html">cross-origin XMLHttpRequests</a>, | 314 <a href="xhr.html">cross-origin XMLHttpRequests</a>, |
| 315 <a href="content_scripts.html#pi">programmatically injected | 315 <a href="content_scripts.html#pi">programmatically injected |
| 316 content scripts</a>, and <a href="cookies.html">the cookies API</a> | 316 content scripts</a>, and <a href="cookies.html">the cookies API</a> |
| 317 require host permissions. For details on the syntax, see | 317 require host permissions. For details on the syntax, see |
| 318 <a href="match_patterns.html">Match Patterns</a>. | 318 <a href="match_patterns.html">Match Patterns</a>. |
| 319 </td> | 319 </td> |
| 320 </tr> | 320 </tr> |
| 321 <tr> | 321 <tr> |
| 322 <td> "background" </td> | |
| 323 <td> <p> | |
| 324 Makes Chrome start up early and and shut down late, | |
| 325 so that apps and extensions can have a longer life. | |
| 326 </p> | |
| 327 | |
| 328 <p> | |
| 329 When any installed hosted app, packaged app, or extension | |
| 330 has "background" permission, Chrome runs (invisibly) | |
| 331 as soon as the user logs into their computer—before | |
| 332 the user launches Chrome. | |
| 333 The "background" permission also makes Chrome continue running | |
| 334 (even after its last window is closed) | |
| 335 until the user explicitly quits Chrome. | |
| 336 </p> | |
| 337 | |
| 338 <p class="note"> | |
| 339 <b>Note:</b> | |
| 340 Disabled apps and extensions | |
| 341 are treated as if they aren't installed. | |
| 342 </p> | |
| 343 | |
| 344 <p> | |
| 345 You typically use the "background" permission with a | |
| 346 <a href="background_pages.html">background page</a> | |
| 347 or (for hosted apps) a | |
| 348 <a href="http://code.google.com/chrome/apps/docs/background.html">backgro
und window</a>. | |
| 349 </p> | |
| 350 </td> | |
| 351 </tr> | |
| 352 <tr> | |
| 353 <td> "bookmarks" </td> | 322 <td> "bookmarks" </td> |
| 354 <td> Required if the extension uses the | 323 <td> Required if the extension uses the |
| 355 <a href="bookmarks.html">chrome.bookmarks</a> module. </td> | 324 <a href="bookmarks.html">chrome.bookmarks</a> module. </td> |
| 356 </tr> | 325 </tr> |
| 357 <tr> | 326 <tr> |
| 358 <td> "chrome://favicon/" </td> | 327 <td> "chrome://favicon/" </td> |
| 359 <td> Required if the extension uses the | 328 <td> Required if the extension uses the |
| 360 "chrome://favicon/<em>url</em>" mechanism | 329 "chrome://favicon/<em>url</em>" mechanism |
| 361 to display the favicon of a page. | 330 to display the favicon of a page. |
| 362 For example, to display the favicon of http://www.google.com/, | 331 For example, to display the favicon of http://www.google.com/, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 A missing integer is equal to zero. | 447 A missing integer is equal to zero. |
| 479 For example, 1.1.9.9999 is newer than 1.1. | 448 For example, 1.1.9.9999 is newer than 1.1. |
| 480 </p> | 449 </p> |
| 481 | 450 |
| 482 <p> | 451 <p> |
| 483 For more information, see | 452 For more information, see |
| 484 <a href="autoupdate.html">Autoupdating</a>. | 453 <a href="autoupdate.html">Autoupdating</a>. |
| 485 </p> | 454 </p> |
| 486 | 455 |
| 487 <!-- [PENDING: Possibly: point to the store/dashboard and make a big deal of the
fact that autoupdating is free if you use them.] --> | 456 <!-- [PENDING: Possibly: point to the store/dashboard and make a big deal of the
fact that autoupdating is free if you use them.] --> |
| OLD | NEW |