| 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 has a | 5 Every extension 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 about the extension. | 8 that provides important information about the extension. |
| 9 </p> | 9 </p> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 <em>// Add any of these that you need</em> | 36 <em>// Add any of these that you need</em> |
| 37 "<a href="background_pages.html">background_page</a>": "<em>aFile</em>.html", | 37 "<a href="background_pages.html">background_page</a>": "<em>aFile</em>.html", |
| 38 "<a href="override.html">chrome_url_overrides</a>": {...}, | 38 "<a href="override.html">chrome_url_overrides</a>": {...}, |
| 39 "<a href="content_scripts.html">content_scripts</a>": [...], | 39 "<a href="content_scripts.html">content_scripts</a>": [...], |
| 40 "<a href="#key">key</a>": "<em>publicKey</em>", | 40 "<a href="#key">key</a>": "<em>publicKey</em>", |
| 41 "<a href="#minimum_chrome_version">minimum_chrome_version</a>": "<em>versionSt
ring</em>", | 41 "<a href="#minimum_chrome_version">minimum_chrome_version</a>": "<em>versionSt
ring</em>", |
| 42 "<a href="options.html">options_page</a>": "<em>aFile</em>.html", | 42 "<a href="options.html">options_page</a>": "<em>aFile</em>.html", |
| 43 "<a href="#permissions">permissions</a>": [...], | 43 "<a href="#permissions">permissions</a>": [...], |
| 44 "<a href="npapi.html">plugins</a>": [...], | 44 "<a href="npapi.html">plugins</a>": [...], |
| 45 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em
>.xml" | 45 "<a href="autoupdate.html">update_url</a>": "http://<em>path/to/updateInfo</em
>.xml" |
| 46 "<a href="#incognito">incognito</a>": "<em>split</em> or <em>spanning</em>", |
| 46 } | 47 } |
| 47 </pre> | 48 </pre> |
| 48 | 49 |
| 49 | 50 |
| 50 <h2>Field details</h2> | 51 <h2>Field details</h2> |
| 51 | 52 |
| 52 <p> | 53 <p> |
| 53 This section covers fields that aren't described in another page. | 54 This section covers fields that aren't described in another page. |
| 54 For a complete list of fields, | 55 For a complete list of fields, |
| 55 with links to where they're described in detail, | 56 with links to where they're described in detail, |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 <p> | 362 <p> |
| 362 A missing integer is equal to zero. | 363 A missing integer is equal to zero. |
| 363 For example, 1.1.9.9999 is newer than 1.1. | 364 For example, 1.1.9.9999 is newer than 1.1. |
| 364 </p> | 365 </p> |
| 365 | 366 |
| 366 <p> | 367 <p> |
| 367 For more information, see | 368 For more information, see |
| 368 <a href="autoupdate.html">Autoupdating</a>. | 369 <a href="autoupdate.html">Autoupdating</a>. |
| 369 </p> | 370 </p> |
| 370 | 371 |
| 372 <h3 id="incognito">incognito</h3> |
| 373 |
| 374 <p> |
| 375 Either <em>split</em> or <em>spanning</em>, to specify how this extension will |
| 376 behave if allowed to run in incognito. |
| 377 </p> |
| 378 |
| 379 <p> |
| 380 <em>spanning</em> is the default for extensions, and means that the extension |
| 381 will run in a single shared process. Any events or messages from an incognito |
| 382 tab will be sent to the shared process, with an <em>incognito</em> flag |
| 383 indicating where it came from. |
| 384 </p> |
| 385 |
| 386 <p> |
| 387 <em>split</em> is the default for apps, and it means that all app pages in |
| 388 an incognito window will run in their own incognito process. If the app or exten
sion contains a background page, that will also run in the incognito process. |
| 389 This incognito process runs along side the regular process, but has a separate |
| 390 memory-only cookie store. Each process sees events and messages only from its |
| 391 own context (e.g. the incognito process will only see incognito tab updates). |
| 392 The processes are unable to communicate with each other. |
| 393 </p> |
| 394 |
| 395 <p> |
| 396 As a rule of thumb, if your extension or app needs to load a tab in an incognito
browser, use |
| 397 <em>split</em> incognito behavior. If your extension or app needs to be logged |
| 398 into a remote server or persist settings locally, use <em>spanning</em> |
| 399 incognito behavior. |
| 400 </p> |
| 401 |
| 371 <!-- [PENDING: Possibly: point to the gallery and make a big deal of the fact th
at autoupdating is free if you use the gallery.] --> | 402 <!-- [PENDING: Possibly: point to the gallery and make a big deal of the fact th
at autoupdating is free if you use the gallery.] --> |
| OLD | NEW |