1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/mozapps/extensions/test/xpcshell/data/test_updatecheck.rdf Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,419 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 + 1.6 +<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 1.7 + xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 1.8 + xmlns:em="http://www.mozilla.org/2004/em-rdf#"> 1.9 + 1.10 + <Description about="urn:mozilla:extension:updatecheck1@tests.mozilla.org"> 1.11 + <em:updates> 1.12 + <Seq> 1.13 + <li> 1.14 + <Description> 1.15 + <em:version>1.0</em:version> 1.16 + <em:targetApplication> 1.17 + <Description> 1.18 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.19 + <em:minVersion>1</em:minVersion> 1.20 + <em:maxVersion>1</em:maxVersion> 1.21 + <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink> 1.22 + </Description> 1.23 + </em:targetApplication> 1.24 + </Description> 1.25 + </li> 1.26 + <!-- This update is incompatible and so should not be considered a valid 1.27 + update --> 1.28 + <li> 1.29 + <Description> 1.30 + <em:version>2.0</em:version> 1.31 + <em:targetApplication> 1.32 + <Description> 1.33 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.34 + <em:minVersion>2</em:minVersion> 1.35 + <em:maxVersion>2</em:maxVersion> 1.36 + <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink> 1.37 + </Description> 1.38 + </em:targetApplication> 1.39 + </Description> 1.40 + </li> 1.41 + <li> 1.42 + <Description> 1.43 + <em:version>3.0</em:version> 1.44 + <em:targetApplication> 1.45 + <Description> 1.46 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.47 + <em:minVersion>1</em:minVersion> 1.48 + <em:maxVersion>1</em:maxVersion> 1.49 + <em:updateLink>https://localhost:4444/addons/test3.xpi</em:updateLink> 1.50 + </Description> 1.51 + </em:targetApplication> 1.52 + </Description> 1.53 + </li> 1.54 + <li> 1.55 + <Description> 1.56 + <em:version>2.0</em:version> 1.57 + <em:targetApplication> 1.58 + <Description> 1.59 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.60 + <em:minVersion>1</em:minVersion> 1.61 + <em:maxVersion>2</em:maxVersion> 1.62 + <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink> 1.63 + </Description> 1.64 + </em:targetApplication> 1.65 + </Description> 1.66 + </li> 1.67 + <!-- This update is incompatible and so should not be considered a valid 1.68 + update --> 1.69 + <li> 1.70 + <Description> 1.71 + <em:version>4.0</em:version> 1.72 + <em:targetApplication> 1.73 + <Description> 1.74 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.75 + <em:minVersion>2</em:minVersion> 1.76 + <em:maxVersion>2</em:maxVersion> 1.77 + <em:updateLink>https://localhost:4444/addons/test4.xpi</em:updateLink> 1.78 + </Description> 1.79 + </em:targetApplication> 1.80 + </Description> 1.81 + </li> 1.82 + </Seq> 1.83 + </em:updates> 1.84 + </Description> 1.85 + 1.86 + <!-- An update with no signature which will fail if retrieved with an update 1.87 + key. The updateLink will also be ignored since it is not secure and there 1.88 + is no updateHash. --> 1.89 + <RDF:Description about="urn:mozilla:extension:test_bug378216_5@tests.mozilla.org"> 1.90 + <em:updates> 1.91 + <RDF:Seq> 1.92 + <RDF:li> 1.93 + <RDF:Description> 1.94 + <em:version>2.0</em:version> 1.95 + <em:targetApplication> 1.96 + <RDF:Description> 1.97 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.98 + <em:minVersion>1</em:minVersion> 1.99 + <em:maxVersion>1</em:maxVersion> 1.100 + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> 1.101 + </RDF:Description> 1.102 + </em:targetApplication> 1.103 + </RDF:Description> 1.104 + </RDF:li> 1.105 + </RDF:Seq> 1.106 + </em:updates> 1.107 + </RDF:Description> 1.108 + 1.109 + <!-- An update with a broken signature which will fail if retrieved with an 1.110 + update key. The updateLink will also be ignored since it is not secure 1.111 + and there is no updateHash. --> 1.112 + <RDF:Description about="urn:mozilla:extension:test_bug378216_7@tests.mozilla.org"> 1.113 + <em:updates> 1.114 + <RDF:Seq> 1.115 + <RDF:li> 1.116 + <RDF:Description> 1.117 + <em:version>2.0</em:version> 1.118 + <em:targetApplication> 1.119 + <RDF:Description> 1.120 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.121 + <em:minVersion>1</em:minVersion> 1.122 + <em:maxVersion>2</em:maxVersion> 1.123 + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> 1.124 + </RDF:Description> 1.125 + </em:targetApplication> 1.126 + </RDF:Description> 1.127 + </RDF:li> 1.128 + </RDF:Seq> 1.129 + </em:updates> 1.130 + <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAMO1O2gwSCCth1GwYMgscfaNakpN40PJfOWt 1.131 + ub2HVdg8+OXMciF8d/9eVWm8eH/IxuxyZlmRZTs3O5tv9eWAY5uBCtqDf1WgTsGk 1.132 + jrgZow1fITkZI7w0//C8eKdMLAtGueGfNs2IlTd5P/0KH/hf1rPc1wUqEqKCd4+L 1.133 + BcVq13ad</em:signature> 1.134 + </RDF:Description> 1.135 + 1.136 + <!-- An update with a valid signature. The updateLink will be ignored since it 1.137 + is not secure and there is no updateHash. --> 1.138 + <RDF:Description about="urn:mozilla:extension:test_bug378216_8@tests.mozilla.org"> 1.139 + <em:updates> 1.140 + <RDF:Seq> 1.141 + <RDF:li> 1.142 + <RDF:Description> 1.143 + <em:version>2.0</em:version> 1.144 + <em:targetApplication> 1.145 + <RDF:Description> 1.146 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.147 + <em:minVersion>1</em:minVersion> 1.148 + <em:maxVersion>1</em:maxVersion> 1.149 + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> 1.150 + </RDF:Description> 1.151 + </em:targetApplication> 1.152 + </RDF:Description> 1.153 + </RDF:li> 1.154 + </RDF:Seq> 1.155 + </em:updates> 1.156 + <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAMH/33P/bn148mVkAB8i5X8c4LhY52E+MPUT 1.157 + yKHGpowZnRLgL2O0dfpm+rljOBfKi51322PFrsc6VIFml6x4Lrb5foxSyB0Vs9pb 1.158 + SEDFWUKquOQvceQ9iEx5Pe0VzrmUZgcQxd8ksSunWL4wJaBZ/evE5amFC6sw3pv/ 1.159 + fjt8p3GN</em:signature> 1.160 + </RDF:Description> 1.161 + 1.162 + <!-- An update with a valid signature. The updateLink will used since there is 1.163 + an updateHash to verify it. --> 1.164 + <RDF:Description about="urn:mozilla:extension:test_bug378216_9@tests.mozilla.org"> 1.165 + <em:updates> 1.166 + <RDF:Seq> 1.167 + <RDF:li> 1.168 + <RDF:Description> 1.169 + <em:version>2.0</em:version> 1.170 + <em:targetApplication> 1.171 + <RDF:Description> 1.172 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.173 + <em:minVersion>1</em:minVersion> 1.174 + <em:maxVersion>1</em:maxVersion> 1.175 + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> 1.176 + <em:updateHash>sha1:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash> 1.177 + </RDF:Description> 1.178 + </em:targetApplication> 1.179 + </RDF:Description> 1.180 + </RDF:li> 1.181 + </RDF:Seq> 1.182 + </em:updates> 1.183 + <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAJ5Dv3Zd7/j5dLchCw9iO/cxPq8oOhOYD2M+ 1.184 + jUKvmHCyTBRIEaJrE4N7yVbRYk++ERIfyVepLivsVi4pBmF7JTdw0NaKUA0LiOoT 1.185 + mRL8I7s5NPjCiiNcdqbncWyiZwIj1w1nkbWGTlH/gEjRW/LbvT4JAuec8yNFDa4S 1.186 + X8mOMf7k</em:signature> 1.187 + </RDF:Description> 1.188 + 1.189 + <!-- An update with a valid signature. The updateLink will used since it is 1.190 + a secure URL. --> 1.191 + <RDF:Description about="urn:mozilla:extension:test_bug378216_10@tests.mozilla.org"> 1.192 + <em:updates> 1.193 + <RDF:Seq> 1.194 + <RDF:li> 1.195 + <RDF:Description> 1.196 + <em:version>2.0</em:version> 1.197 + <em:targetApplication> 1.198 + <RDF:Description> 1.199 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.200 + <em:minVersion>1</em:minVersion> 1.201 + <em:maxVersion>1</em:maxVersion> 1.202 + <em:updateLink>https://localhost:4444/broken.xpi</em:updateLink> 1.203 + </RDF:Description> 1.204 + </em:targetApplication> 1.205 + </RDF:Description> 1.206 + </RDF:li> 1.207 + </RDF:Seq> 1.208 + </em:updates> 1.209 + <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAGvf7XqqoTl5WofrNq55E7W+UttOEDXLB3Oi 1.210 + XDiXe0i6njlozilseaUo1hgfQhhzN9gkyetP5tGBVcLRrVyliKpJmD6ABCVGW1lS 1.211 + qS+SEw7gDHyHkvwKMyWKedpRGChqLYnnf+Y+CX3MWLZLkwPXMKdTYgN3Rx0lEnJk 1.212 + 37LSEMKE</em:signature> 1.213 + </RDF:Description> 1.214 + 1.215 + <!-- An update with a valid signature. The updateLink will used since it is 1.216 + a secure URL. --> 1.217 + <RDF:Description about="urn:mozilla:extension:test_bug378216_11@tests.mozilla.org"> 1.218 + <em:updates> 1.219 + <RDF:Seq> 1.220 + <RDF:li> 1.221 + <RDF:Description> 1.222 + <em:version>2.0</em:version> 1.223 + <em:targetApplication> 1.224 + <RDF:Description> 1.225 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.226 + <em:minVersion>1</em:minVersion> 1.227 + <em:maxVersion>1</em:maxVersion> 1.228 + <em:updateLink>https://localhost:4444/broken.xpi</em:updateLink> 1.229 + <em:updateHash>sha1:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash> 1.230 + </RDF:Description> 1.231 + </em:targetApplication> 1.232 + </RDF:Description> 1.233 + </RDF:li> 1.234 + </RDF:Seq> 1.235 + </em:updates> 1.236 + <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBACMX/KReOGSJ8CMGRroH1v3Gjv/Qs/pqH+Ow 1.237 + o+hCKWLUKx7hpJgVJkXXdAHW0U88NXlp1S2H0WqA7I/CdmNXJSPzzV/J4z1dZgXh 1.238 + JbW6mqNb0pj6nIe7g8OLzSxDgBmO4DUP5DAmnmqciJLWQzN7OdbcwrWz6xPN5kZF 1.239 + A90eF5zy</em:signature> 1.240 + </RDF:Description> 1.241 + 1.242 + <!-- An update with a valid signature. The updateLink will used since the 1.243 + updateHash verifying it is not strong enough. --> 1.244 + <RDF:Description about="urn:mozilla:extension:test_bug378216_12@tests.mozilla.org"> 1.245 + <em:updates> 1.246 + <RDF:Seq> 1.247 + <RDF:li> 1.248 + <RDF:Description> 1.249 + <em:version>2.0</em:version> 1.250 + <em:targetApplication> 1.251 + <RDF:Description> 1.252 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.253 + <em:minVersion>1</em:minVersion> 1.254 + <em:maxVersion>1</em:maxVersion> 1.255 + <em:updateLink>http://localhost:4444/broken.xpi</em:updateLink> 1.256 + <em:updateHash>md2:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash> 1.257 + </RDF:Description> 1.258 + </em:targetApplication> 1.259 + </RDF:Description> 1.260 + </RDF:li> 1.261 + </RDF:Seq> 1.262 + </em:updates> 1.263 + <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBAJRfcFvHIWxVyycCw8IjNmEhabc2uqA1zQwp 1.264 + 5oKh3Y23hwIsQ6xy68Wtjte1NEYFRt5fWkbMXj9YQj6LpVbzBKiGATcrq6MycZKK 1.265 + o5N22cWbrKKRweJezTyN4eLfQg21pG7r8mdfS0bIA28ZVFtQOmORejoUesEouCGy 1.266 + eKYk9nS2</em:signature> 1.267 + </RDF:Description> 1.268 + 1.269 + <!-- An update with a valid signature. The updateLink will used since it is 1.270 + a secure URL. --> 1.271 + <RDF:Description about="urn:mozilla:extension:test_bug378216_13@tests.mozilla.org"> 1.272 + <em:updates> 1.273 + <RDF:Seq> 1.274 + <RDF:li> 1.275 + <RDF:Description> 1.276 + <em:version>2.0</em:version> 1.277 + <em:targetApplication> 1.278 + <RDF:Description> 1.279 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.280 + <em:minVersion>1</em:minVersion> 1.281 + <em:maxVersion>1</em:maxVersion> 1.282 + <em:updateLink>https://localhost:4444/broken.xpi</em:updateLink> 1.283 + <em:updateHash>md2:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e6</em:updateHash> 1.284 + </RDF:Description> 1.285 + </em:targetApplication> 1.286 + </RDF:Description> 1.287 + </RDF:li> 1.288 + </RDF:Seq> 1.289 + </em:updates> 1.290 + <em:signature>MIGTMA0GCSqGSIb3DQEBBQUAA4GBALQKwzLFr/VOw3gJvv/LCh3/PWDd9FqmFnX+ 1.291 + hJjBmCaUDtG7CXn1i0h8ed8IeRHpLLT7FCzVwU3bH9BUjdm8wc3ObtlNbd8go01a 1.292 + CoXz50r3rYPcYz4WS+7/+lvrUqsuWd9Wj+q0NeCPiNaaro6/AolE2Qf5JFRL3lxY 1.293 + lsKWAnVO</em:signature> 1.294 + </RDF:Description> 1.295 + 1.296 + <!-- There should be no information present for test_bug378216_14 --> 1.297 + 1.298 + <!-- Invalid update RDF --> 1.299 + <RDF:Description about="urn:mozilla:extension:test_bug378216_15@tests.mozilla.org"> 1.300 + <em:updates>Foo</em:updates> 1.301 + </RDF:Description> 1.302 + 1.303 + <!-- Various updates available - one is not compatible, but compatibility checking is disabled --> 1.304 + <Description about="urn:mozilla:extension:ignore-compat@tests.mozilla.org"> 1.305 + <em:updates> 1.306 + <Seq> 1.307 + <li> 1.308 + <Description> 1.309 + <em:version>1.0</em:version> 1.310 + <em:targetApplication> 1.311 + <Description> 1.312 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.313 + <em:minVersion>0.1</em:minVersion> 1.314 + <em:maxVersion>0.2</em:maxVersion> 1.315 + <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink> 1.316 + </Description> 1.317 + </em:targetApplication> 1.318 + </Description> 1.319 + </li> 1.320 + <li> 1.321 + <Description> 1.322 + <em:version>2.0</em:version> 1.323 + <em:targetApplication> 1.324 + <Description> 1.325 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.326 + <em:minVersion>0.5</em:minVersion> 1.327 + <em:maxVersion>0.6</em:maxVersion> 1.328 + <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink> 1.329 + </Description> 1.330 + </em:targetApplication> 1.331 + </Description> 1.332 + </li> 1.333 + <!-- Update for future app versions - should never be compatible --> 1.334 + <li> 1.335 + <Description> 1.336 + <em:version>3.0</em:version> 1.337 + <em:targetApplication> 1.338 + <Description> 1.339 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.340 + <em:minVersion>2</em:minVersion> 1.341 + <em:maxVersion>3</em:maxVersion> 1.342 + <em:updateLink>https://localhost:4444/addons/test3.xpi</em:updateLink> 1.343 + </Description> 1.344 + </em:targetApplication> 1.345 + </Description> 1.346 + </li> 1.347 + </Seq> 1.348 + </em:updates> 1.349 + </Description> 1.350 + 1.351 + <!-- Various updates available - one is not compatible, but compatibility checking is disabled --> 1.352 + <Description about="urn:mozilla:extension:compat-override@tests.mozilla.org"> 1.353 + <em:updates> 1.354 + <Seq> 1.355 + <!-- Has compatibility override, but it doesn't match this app version --> 1.356 + <li> 1.357 + <Description> 1.358 + <em:version>1.0</em:version> 1.359 + <em:targetApplication> 1.360 + <Description> 1.361 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.362 + <em:minVersion>0.1</em:minVersion> 1.363 + <em:maxVersion>0.2</em:maxVersion> 1.364 + <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink> 1.365 + </Description> 1.366 + </em:targetApplication> 1.367 + </Description> 1.368 + </li> 1.369 + <!-- Has compatibility override, so is incompaible --> 1.370 + <li> 1.371 + <Description> 1.372 + <em:version>2.0</em:version> 1.373 + <em:targetApplication> 1.374 + <Description> 1.375 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.376 + <em:minVersion>0.5</em:minVersion> 1.377 + <em:maxVersion>0.6</em:maxVersion> 1.378 + <em:updateLink>https://localhost:4444/addons/test2.xpi</em:updateLink> 1.379 + </Description> 1.380 + </em:targetApplication> 1.381 + </Description> 1.382 + </li> 1.383 + <!-- Update for future app versions - should never be compatible --> 1.384 + <li> 1.385 + <Description> 1.386 + <em:version>3.0</em:version> 1.387 + <em:targetApplication> 1.388 + <Description> 1.389 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.390 + <em:minVersion>2</em:minVersion> 1.391 + <em:maxVersion>3</em:maxVersion> 1.392 + <em:updateLink>https://localhost:4444/addons/test3.xpi</em:updateLink> 1.393 + </Description> 1.394 + </em:targetApplication> 1.395 + </Description> 1.396 + </li> 1.397 + </Seq> 1.398 + </em:updates> 1.399 + </Description> 1.400 + 1.401 + <!-- Opt-in to strict compatibility checking --> 1.402 + <Description about="urn:mozilla:extension:compat-strict-optin@tests.mozilla.org"> 1.403 + <em:updates> 1.404 + <Seq> 1.405 + <li> 1.406 + <Description> 1.407 + <em:version>1.0</em:version> 1.408 + <em:targetApplication> 1.409 + <Description> 1.410 + <em:id>xpcshell@tests.mozilla.org</em:id> 1.411 + <em:minVersion>0.1</em:minVersion> 1.412 + <em:maxVersion>0.2</em:maxVersion> 1.413 + <em:strictCompatibility>true</em:strictCompatibility> 1.414 + <em:updateLink>https://localhost:4444/addons/test1.xpi</em:updateLink> 1.415 + </Description> 1.416 + </em:targetApplication> 1.417 + </Description> 1.418 + </li> 1.419 + </Seq> 1.420 + </em:updates> 1.421 + </Description> 1.422 +</RDF>