summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorkathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 22:34:52 +0000
committerkathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 22:34:52 +0000
commit1de01705967737a6e6ec1a51d46a0e0d3d6010f3 (patch)
tree457c276babd1c9e926dff75bf30ec2f980df8231 /chrome
parentbb3235c150bea8943280471fecf161d5fd579780 (diff)
downloadchromium_src-1de01705967737a6e6ec1a51d46a0e0d3d6010f3.zip
chromium_src-1de01705967737a6e6ec1a51d46a0e0d3d6010f3.tar.gz
chromium_src-1de01705967737a6e6ec1a51d46a0e0d3d6010f3.tar.bz2
Document restrictions on integers in the version.
BUG=26957 TEST=none Review URL: http://codereview.chromium.org/371030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31314 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/extensions/docs/manifest.html15
-rw-r--r--chrome/common/extensions/docs/static/manifest.html13
2 files changed, 21 insertions, 7 deletions
diff --git a/chrome/common/extensions/docs/manifest.html b/chrome/common/extensions/docs/manifest.html
index 41170b0..9b7e63c 100644
--- a/chrome/common/extensions/docs/manifest.html
+++ b/chrome/common/extensions/docs/manifest.html
@@ -121,8 +121,8 @@
<ul>
<li><a href="background_pages.html">Background Pages</a></li>
<li><a href="content_scripts.html">Content Scripts</a></li>
- <li><a href="messaging.html">Message Passing</a></li>
<li><a href="xhr.html">Cross-Origin XHR</a></li>
+ <li><a href="messaging.html">Message Passing</a></li>
<li><a href="npapi.html">NPAPI Plugins</a></li>
</ul>
</li>
@@ -369,7 +369,14 @@ For more information, see
<p>
One to four dot-separated integers
identifying the version of this extension.
-Examples:
+A couple of rules apply to the integers:
+they must be between 0 and 65535, inclusive,
+and non-zero integers can't start with 0.
+For example, 99999 and 032 are both invalid.
+</p>
+
+<p>
+Here are some examples of valid versions:
</p>
<ul>
@@ -393,12 +400,12 @@ The comparison starts with the leftmost integers.
If those integers are equal,
the integers to the right are compared,
and so on.
-For example, 1.2.0 is a newer version than 1.1.9.99999.
+For example, 1.2.0 is a newer version than 1.1.9.9999.
</p>
<p>
A missing integer is equal to zero.
-For example, 1.1.9.99999 is newer than 1.1.
+For example, 1.1.9.9999 is newer than 1.1.
</p>
<p>
diff --git a/chrome/common/extensions/docs/static/manifest.html b/chrome/common/extensions/docs/static/manifest.html
index d24591d..a36626a 100644
--- a/chrome/common/extensions/docs/static/manifest.html
+++ b/chrome/common/extensions/docs/static/manifest.html
@@ -142,7 +142,14 @@ For more information, see
<p>
One to four dot-separated integers
identifying the version of this extension.
-Examples:
+A couple of rules apply to the integers:
+they must be between 0 and 65535, inclusive,
+and non-zero integers can't start with 0.
+For example, 99999 and 032 are both invalid.
+</p>
+
+<p>
+Here are some examples of valid versions:
</p>
<ul>
@@ -166,12 +173,12 @@ The comparison starts with the leftmost integers.
If those integers are equal,
the integers to the right are compared,
and so on.
-For example, 1.2.0 is a newer version than 1.1.9.99999.
+For example, 1.2.0 is a newer version than 1.1.9.9999.
</p>
<p>
A missing integer is equal to zero.
-For example, 1.1.9.99999 is newer than 1.1.
+For example, 1.1.9.9999 is newer than 1.1.
</p>
<p>