OLD | NEW |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
4 templating mechanism. | 4 templating mechanism. |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
7 authored overview content. | 7 authored overview content. |
8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 <li><a href="events.html">Events</a></li> | 115 <li><a href="events.html">Events</a></li> |
116 <li><a href="tabs.html">Tabs</a></li> | 116 <li><a href="tabs.html">Tabs</a></li> |
117 <li><a href="windows.html">Windows</a></li> | 117 <li><a href="windows.html">Windows</a></li> |
118 </ul> | 118 </ul> |
119 </li> | 119 </li> |
120 <li> Implementation | 120 <li> Implementation |
121 <ul> | 121 <ul> |
122 <li><a href="background_pages.html">Background Pages</a></li> | 122 <li><a href="background_pages.html">Background Pages</a></li> |
123 <li><a href="content_scripts.html">Content Scripts</a></li> | 123 <li><a href="content_scripts.html">Content Scripts</a></li> |
124 <li><a href="xhr.html">Cross-Origin XHR</a></li> | 124 <li><a href="xhr.html">Cross-Origin XHR</a></li> |
| 125 <li><a href="messaging.html">Message Passing</a></li> |
125 <li><a href="npapi.html">NPAPI Plugins</a></li> | 126 <li><a href="npapi.html">NPAPI Plugins</a></li> |
126 </ul> | 127 </ul> |
127 </li> | 128 </li> |
128 <li> Finishing | 129 <li> Finishing |
129 <ul> | 130 <ul> |
130 <li><a href="autoupdate.html">Autoupdating</a></li> | 131 <li><a href="autoupdate.html">Autoupdating</a></li> |
131 <li><a href="packaging.html">Packaging</a></li> | 132 <li><a href="packaging.html">Packaging</a></li> |
132 </ul> | 133 </ul> |
133 </li> | 134 </li> |
134 </ul> | 135 </ul> |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 <a href="windows.html">Windows</a>, | 362 <a href="windows.html">Windows</a>, |
362 <a href="tabs.html">Tabs</a>, and | 363 <a href="tabs.html">Tabs</a>, and |
363 <a href="bookmarks.html">Bookmarks</a>. | 364 <a href="bookmarks.html">Bookmarks</a>. |
364 </p> | 365 </p> |
365 | 366 |
366 <h3 id="version">version</h3> | 367 <h3 id="version">version</h3> |
367 | 368 |
368 <p> | 369 <p> |
369 One to four dot-separated integers | 370 One to four dot-separated integers |
370 identifying the version of this extension. | 371 identifying the version of this extension. |
371 Examples: | 372 A couple of rules apply to the integers: |
| 373 they must be between 0 and 65535, inclusive, |
| 374 and non-zero integers can't start with 0. |
| 375 For example, 99999 and 032 are both invalid. |
| 376 </p> |
| 377 |
| 378 <p> |
| 379 Here are some examples of valid versions: |
372 </p> | 380 </p> |
373 | 381 |
374 <ul> | 382 <ul> |
375 <li> <code>"version": "1"</code> </li> | 383 <li> <code>"version": "1"</code> </li> |
376 <li> <code>"version": "1.0"</code> </li> | 384 <li> <code>"version": "1.0"</code> </li> |
377 <li> <code>"version": "2.10.2"</code> </li> | 385 <li> <code>"version": "2.10.2"</code> </li> |
378 <li> <code>"version": "3.1.2.4567"</code> </li> | 386 <li> <code>"version": "3.1.2.4567"</code> </li> |
379 </ul> | 387 </ul> |
380 | 388 |
381 <p> | 389 <p> |
382 The autoupdate system compares versions | 390 The autoupdate system compares versions |
383 to determine whether an installed extension | 391 to determine whether an installed extension |
384 needs to be updated. | 392 needs to be updated. |
385 If the published extension has a newer version string | 393 If the published extension has a newer version string |
386 than the installed extension, | 394 than the installed extension, |
387 then the extension is automatically updated. | 395 then the extension is automatically updated. |
388 </p> | 396 </p> |
389 | 397 |
390 <p> | 398 <p> |
391 The comparison starts with the leftmost integers. | 399 The comparison starts with the leftmost integers. |
392 If those integers are equal, | 400 If those integers are equal, |
393 the integers to the right are compared, | 401 the integers to the right are compared, |
394 and so on. | 402 and so on. |
395 For example, 1.2.0 is a newer version than 1.1.9.99999. | 403 For example, 1.2.0 is a newer version than 1.1.9.9999. |
396 </p> | 404 </p> |
397 | 405 |
398 <p> | 406 <p> |
399 A missing integer is equal to zero. | 407 A missing integer is equal to zero. |
400 For example, 1.1.9.99999 is newer than 1.1. | 408 For example, 1.1.9.9999 is newer than 1.1. |
401 </p> | 409 </p> |
402 | 410 |
403 <p> | 411 <p> |
404 For more information, see | 412 For more information, see |
405 <a href="autoupdate.html">Autoupdating</a>. | 413 <a href="autoupdate.html">Autoupdating</a>. |
406 </p> | 414 </p> |
407 | 415 |
408 <p class="comment"> | 416 <p class="comment"> |
409 [PENDING: Once the gallery is published, point to it | 417 [PENDING: Once the gallery is published, point to it |
410 and make a big deal of the fact that autoupdating is free | 418 and make a big deal of the fact that autoupdating is free |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 urchinTracker(); | 594 urchinTracker(); |
587 } | 595 } |
588 catch(e) {/* urchinTracker not available. */} | 596 catch(e) {/* urchinTracker not available. */} |
589 </script> | 597 </script> |
590 <!-- end analytics --> | 598 <!-- end analytics --> |
591 | 599 |
592 </div> <!-- /pageFooter --> | 600 </div> <!-- /pageFooter --> |
593 </div> <!-- /container --> | 601 </div> <!-- /container --> |
594 </body></html> | 602 </body></html> |
595 | 603 |
OLD | NEW |