| 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 "geolocation", "notifications", and "unlimitedStorage" permissions, | 300 "background", "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> |
| 322 <td> "bookmarks" </td> | 353 <td> "bookmarks" </td> |
| 323 <td> Required if the extension uses the | 354 <td> Required if the extension uses the |
| 324 <a href="bookmarks.html">chrome.bookmarks</a> module. </td> | 355 <a href="bookmarks.html">chrome.bookmarks</a> module. </td> |
| 325 </tr> | 356 </tr> |
| 326 <tr> | 357 <tr> |
| 327 <td> "chrome://favicon/" </td> | 358 <td> "chrome://favicon/" </td> |
| 328 <td> Required if the extension uses the | 359 <td> Required if the extension uses the |
| 329 "chrome://favicon/<em>url</em>" mechanism | 360 "chrome://favicon/<em>url</em>" mechanism |
| 330 to display the favicon of a page. | 361 to display the favicon of a page. |
| 331 For example, to display the favicon of http://www.google.com/, | 362 For example, to display the favicon of http://www.google.com/, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 A missing integer is equal to zero. | 478 A missing integer is equal to zero. |
| 448 For example, 1.1.9.9999 is newer than 1.1. | 479 For example, 1.1.9.9999 is newer than 1.1. |
| 449 </p> | 480 </p> |
| 450 | 481 |
| 451 <p> | 482 <p> |
| 452 For more information, see | 483 For more information, see |
| 453 <a href="autoupdate.html">Autoupdating</a>. | 484 <a href="autoupdate.html">Autoupdating</a>. |
| 454 </p> | 485 </p> |
| 455 | 486 |
| 456 <!-- [PENDING: Possibly: point to the store/dashboard and make a big deal of the
fact that autoupdating is free if you use them.] --> | 487 <!-- [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 |