| OLD | NEW |
| 1 <div id="pageData-title" class="pageData">Formats: Manifest Files</div> | 1 <div id="pageData-title" 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 <a href="windows.html">Windows</a>, | 135 <a href="windows.html">Windows</a>, |
| 136 <a href="tabs.html">Tabs</a>, and | 136 <a href="tabs.html">Tabs</a>, and |
| 137 <a href="bookmarks.html">Bookmarks</a>. | 137 <a href="bookmarks.html">Bookmarks</a>. |
| 138 </p> | 138 </p> |
| 139 | 139 |
| 140 <h3 id="version">version</h3> | 140 <h3 id="version">version</h3> |
| 141 | 141 |
| 142 <p> | 142 <p> |
| 143 One to four dot-separated integers | 143 One to four dot-separated integers |
| 144 identifying the version of this extension. | 144 identifying the version of this extension. |
| 145 Examples: | 145 A couple of rules apply to the integers: |
| 146 they must be between 0 and 65535, inclusive, |
| 147 and non-zero integers can't start with 0. |
| 148 For example, 99999 and 032 are both invalid. |
| 149 </p> |
| 150 |
| 151 <p> |
| 152 Here are some examples of valid versions: |
| 146 </p> | 153 </p> |
| 147 | 154 |
| 148 <ul> | 155 <ul> |
| 149 <li> <code>"version": "1"</code> </li> | 156 <li> <code>"version": "1"</code> </li> |
| 150 <li> <code>"version": "1.0"</code> </li> | 157 <li> <code>"version": "1.0"</code> </li> |
| 151 <li> <code>"version": "2.10.2"</code> </li> | 158 <li> <code>"version": "2.10.2"</code> </li> |
| 152 <li> <code>"version": "3.1.2.4567"</code> </li> | 159 <li> <code>"version": "3.1.2.4567"</code> </li> |
| 153 </ul> | 160 </ul> |
| 154 | 161 |
| 155 <p> | 162 <p> |
| 156 The autoupdate system compares versions | 163 The autoupdate system compares versions |
| 157 to determine whether an installed extension | 164 to determine whether an installed extension |
| 158 needs to be updated. | 165 needs to be updated. |
| 159 If the published extension has a newer version string | 166 If the published extension has a newer version string |
| 160 than the installed extension, | 167 than the installed extension, |
| 161 then the extension is automatically updated. | 168 then the extension is automatically updated. |
| 162 </p> | 169 </p> |
| 163 | 170 |
| 164 <p> | 171 <p> |
| 165 The comparison starts with the leftmost integers. | 172 The comparison starts with the leftmost integers. |
| 166 If those integers are equal, | 173 If those integers are equal, |
| 167 the integers to the right are compared, | 174 the integers to the right are compared, |
| 168 and so on. | 175 and so on. |
| 169 For example, 1.2.0 is a newer version than 1.1.9.99999. | 176 For example, 1.2.0 is a newer version than 1.1.9.9999. |
| 170 </p> | 177 </p> |
| 171 | 178 |
| 172 <p> | 179 <p> |
| 173 A missing integer is equal to zero. | 180 A missing integer is equal to zero. |
| 174 For example, 1.1.9.99999 is newer than 1.1. | 181 For example, 1.1.9.9999 is newer than 1.1. |
| 175 </p> | 182 </p> |
| 176 | 183 |
| 177 <p> | 184 <p> |
| 178 For more information, see | 185 For more information, see |
| 179 <a href="autoupdate.html">Autoupdating</a>. | 186 <a href="autoupdate.html">Autoupdating</a>. |
| 180 </p> | 187 </p> |
| 181 | 188 |
| 182 <p class="comment"> | 189 <p class="comment"> |
| 183 [PENDING: Once the gallery is published, point to it | 190 [PENDING: Once the gallery is published, point to it |
| 184 and make a big deal of the fact that autoupdating is free | 191 and make a big deal of the fact that autoupdating is free |
| 185 if you use the gallery.] | 192 if you use the gallery.] |
| 186 </p> | 193 </p> |
| OLD | NEW |