1[url-setters-a-area.window.html] 2 [<a>: Setting <http://test@example.net>.protocol = 'file' Can’t switch from URL containing username/password/port to file] 3 expected: FAIL 4 5 [<area>: Setting <http://test@example.net>.protocol = 'file' Can’t switch from URL containing username/password/port to file] 6 expected: FAIL 7 8 [<a>: Setting <https://example.net:1234>.protocol = 'file'] 9 expected: FAIL 10 11 [<area>: Setting <https://example.net:1234>.protocol = 'file'] 12 expected: FAIL 13 14 [<a>: Setting <wss://x:x@example.net:1234>.protocol = 'file'] 15 expected: FAIL 16 17 [<area>: Setting <wss://x:x@example.net:1234>.protocol = 'file'] 18 expected: FAIL 19 20 [<a>: Setting <file://localhost/>.protocol = 'http' Can’t switch from file URL with no host] 21 expected: FAIL 22 23 [<area>: Setting <file://localhost/>.protocol = 'http' Can’t switch from file URL with no host] 24 expected: FAIL 25 26 [<a>: Setting <file:///test>.protocol = 'https'] 27 expected: FAIL 28 29 [<area>: Setting <file:///test>.protocol = 'https'] 30 expected: FAIL 31 32 [<a>: Setting <file:>.protocol = 'wss'] 33 expected: FAIL 34 35 [<area>: Setting <file:>.protocol = 'wss'] 36 expected: FAIL 37 38 [<a>: Setting <http://example.net>.protocol = 'b' Can’t switch from special scheme to non-special] 39 expected: FAIL 40 41 [<area>: Setting <http://example.net>.protocol = 'b' Can’t switch from special scheme to non-special] 42 expected: FAIL 43 44 [<a>: Setting <file://hi/path>.protocol = 's'] 45 expected: FAIL 46 47 [<area>: Setting <file://hi/path>.protocol = 's'] 48 expected: FAIL 49 50 [<a>: Setting <https://example.net>.protocol = 's'] 51 expected: FAIL 52 53 [<area>: Setting <https://example.net>.protocol = 's'] 54 expected: FAIL 55 56 [<a>: Setting <ftp://example.net>.protocol = 'test'] 57 expected: FAIL 58 59 [<area>: Setting <ftp://example.net>.protocol = 'test'] 60 expected: FAIL 61 62 [<a>: Setting <mailto:me@example.net>.protocol = 'http' Cannot-be-a-base URL doesn’t have a host, but URL in a special scheme must.] 63 expected: FAIL 64 65 [<area>: Setting <mailto:me@example.net>.protocol = 'http' Cannot-be-a-base URL doesn’t have a host, but URL in a special scheme must.] 66 expected: FAIL 67 68 [<a>: Setting <ssh://me@example.net>.protocol = 'http' Can’t switch from non-special scheme to special] 69 expected: FAIL 70 71 [<area>: Setting <ssh://me@example.net>.protocol = 'http' Can’t switch from non-special scheme to special] 72 expected: FAIL 73 74 [<a>: Setting <ssh://me@example.net>.protocol = 'https'] 75 expected: FAIL 76 77 [<area>: Setting <ssh://me@example.net>.protocol = 'https'] 78 expected: FAIL 79 80 [<a>: Setting <ssh://me@example.net>.protocol = 'file'] 81 expected: FAIL 82 83 [<area>: Setting <ssh://me@example.net>.protocol = 'file'] 84 expected: FAIL 85 86 [<a>: Setting <ssh://example.net>.protocol = 'file'] 87 expected: FAIL 88 89 [<area>: Setting <ssh://example.net>.protocol = 'file'] 90 expected: FAIL 91 92 [<a>: Setting <nonsense:///test>.protocol = 'https'] 93 expected: FAIL 94 95 [<area>: Setting <nonsense:///test>.protocol = 'https'] 96 expected: FAIL 97 98 [<a>: Setting <http://example.net>.username = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.] 99 expected: FAIL 100 101 [<area>: Setting <http://example.net>.username = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.] 102 expected: FAIL 103 104 [<a>: Setting <javascript://x/>.username = 'wario'] 105 expected: FAIL 106 107 [<area>: Setting <javascript://x/>.username = 'wario'] 108 expected: FAIL 109 110 [<a>: Setting <file://test/>.username = 'test'] 111 expected: FAIL 112 113 [<area>: Setting <file://test/>.username = 'test'] 114 expected: FAIL 115 116 [<a>: Setting <http://example.net>.password = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.] 117 expected: FAIL 118 119 [<area>: Setting <http://example.net>.password = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the userinfo encode set.] 120 expected: FAIL 121 122 [<a>: Setting <javascript://x/>.password = 'bowser'] 123 expected: FAIL 124 125 [<area>: Setting <javascript://x/>.password = 'bowser'] 126 expected: FAIL 127 128 [<a>: Setting <file://test/>.password = 'test'] 129 expected: FAIL 130 131 [<area>: Setting <file://test/>.password = 'test'] 132 expected: FAIL 133 134 [<a>: Setting <sc://x/>.host = '\x00' Non-special scheme] 135 expected: FAIL 136 137 [<area>: Setting <sc://x/>.host = '\x00' Non-special scheme] 138 expected: FAIL 139 140 [<a>: Setting <sc://x/>.host = '\t'] 141 expected: FAIL 142 143 [<area>: Setting <sc://x/>.host = '\t'] 144 expected: FAIL 145 146 [<a>: Setting <sc://x/>.host = '\n'] 147 expected: FAIL 148 149 [<area>: Setting <sc://x/>.host = '\n'] 150 expected: FAIL 151 152 [<a>: Setting <sc://x/>.host = '\r'] 153 expected: FAIL 154 155 [<area>: Setting <sc://x/>.host = '\r'] 156 expected: FAIL 157 158 [<a>: Setting <sc://x/>.host = ' '] 159 expected: FAIL 160 161 [<area>: Setting <sc://x/>.host = ' '] 162 expected: FAIL 163 164 [<a>: Setting <sc://x/>.host = '#'] 165 expected: FAIL 166 167 [<area>: Setting <sc://x/>.host = '#'] 168 expected: FAIL 169 170 [<a>: Setting <sc://x/>.host = '/'] 171 expected: FAIL 172 173 [<area>: Setting <sc://x/>.host = '/'] 174 expected: FAIL 175 176 [<a>: Setting <sc://x/>.host = '?'] 177 expected: FAIL 178 179 [<area>: Setting <sc://x/>.host = '?'] 180 expected: FAIL 181 182 [<a>: Setting <sc://x/>.host = '@'] 183 expected: FAIL 184 185 [<area>: Setting <sc://x/>.host = '@'] 186 expected: FAIL 187 188 [<a>: Setting <sc://x/>.host = 'ß'] 189 expected: FAIL 190 191 [<area>: Setting <sc://x/>.host = 'ß'] 192 expected: FAIL 193 194 [<a>: Setting <view-source+http://example.net/foo>.host = '' The empty host is OK for non-special schemes] 195 expected: FAIL 196 197 [<area>: Setting <view-source+http://example.net/foo>.host = '' The empty host is OK for non-special schemes] 198 expected: FAIL 199 200 [<a>: Setting <a:/foo>.host = 'example.net' Path-only URLs can gain a host] 201 expected: FAIL 202 203 [<area>: Setting <a:/foo>.host = 'example.net' Path-only URLs can gain a host] 204 expected: FAIL 205 206 [<a>: Setting <view-source+http://example.net/path>.host = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts] 207 expected: FAIL 208 209 [<area>: Setting <view-source+http://example.net/path>.host = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts] 210 expected: FAIL 211 212 [<a>: Setting <view-source+http://example.net/path>.host = 'example.com:8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error] 213 expected: FAIL 214 215 [<area>: Setting <view-source+http://example.net/path>.host = 'example.com:8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error] 216 expected: FAIL 217 218 [<a>: Setting <file://y/>.host = 'x:123'] 219 expected: FAIL 220 221 [<area>: Setting <file://y/>.host = 'x:123'] 222 expected: FAIL 223 224 [<a>: Setting <sc://test@test/>.host = ''] 225 expected: FAIL 226 227 [<area>: Setting <sc://test@test/>.host = ''] 228 expected: FAIL 229 230 [<a>: Setting <sc://test:12/>.host = ''] 231 expected: FAIL 232 233 [<area>: Setting <sc://test:12/>.host = ''] 234 expected: FAIL 235 236 [<a>: Setting <sc://x/>.hostname = '\x00' Non-special scheme] 237 expected: FAIL 238 239 [<area>: Setting <sc://x/>.hostname = '\x00' Non-special scheme] 240 expected: FAIL 241 242 [<a>: Setting <sc://x/>.hostname = '\t'] 243 expected: FAIL 244 245 [<area>: Setting <sc://x/>.hostname = '\t'] 246 expected: FAIL 247 248 [<a>: Setting <sc://x/>.hostname = '\n'] 249 expected: FAIL 250 251 [<area>: Setting <sc://x/>.hostname = '\n'] 252 expected: FAIL 253 254 [<a>: Setting <sc://x/>.hostname = '\r'] 255 expected: FAIL 256 257 [<area>: Setting <sc://x/>.hostname = '\r'] 258 expected: FAIL 259 260 [<a>: Setting <sc://x/>.hostname = ' '] 261 expected: FAIL 262 263 [<area>: Setting <sc://x/>.hostname = ' '] 264 expected: FAIL 265 266 [<a>: Setting <sc://x/>.hostname = '#'] 267 expected: FAIL 268 269 [<area>: Setting <sc://x/>.hostname = '#'] 270 expected: FAIL 271 272 [<a>: Setting <sc://x/>.hostname = '/'] 273 expected: FAIL 274 275 [<area>: Setting <sc://x/>.hostname = '/'] 276 expected: FAIL 277 278 [<a>: Setting <sc://x/>.hostname = '?'] 279 expected: FAIL 280 281 [<area>: Setting <sc://x/>.hostname = '?'] 282 expected: FAIL 283 284 [<a>: Setting <sc://x/>.hostname = '@'] 285 expected: FAIL 286 287 [<area>: Setting <sc://x/>.hostname = '@'] 288 expected: FAIL 289 290 [<a>: Setting <view-source+http://example.net/foo>.hostname = '' The empty host is OK for non-special schemes] 291 expected: FAIL 292 293 [<area>: Setting <view-source+http://example.net/foo>.hostname = '' The empty host is OK for non-special schemes] 294 expected: FAIL 295 296 [<a>: Setting <a:/foo>.hostname = 'example.net' Path-only URLs can gain a host] 297 expected: FAIL 298 299 [<area>: Setting <a:/foo>.hostname = 'example.net' Path-only URLs can gain a host] 300 expected: FAIL 301 302 [<a>: Setting <view-source+http://example.net/path>.hostname = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts] 303 expected: FAIL 304 305 [<area>: Setting <view-source+http://example.net/path>.hostname = 'example.com\\stuff' \\ is not a delimiter for non-special schemes, but still forbidden in hosts] 306 expected: FAIL 307 308 [<a>: Setting <file://y/>.hostname = 'x:123'] 309 expected: FAIL 310 311 [<area>: Setting <file://y/>.hostname = 'x:123'] 312 expected: FAIL 313 314 [<a>: Setting <sc://test@test/>.hostname = ''] 315 expected: FAIL 316 317 [<area>: Setting <sc://test@test/>.hostname = ''] 318 expected: FAIL 319 320 [<a>: Setting <sc://test:12/>.hostname = ''] 321 expected: FAIL 322 323 [<area>: Setting <sc://test:12/>.hostname = ''] 324 expected: FAIL 325 326 [<a>: Setting <non-spec:/.//p>.hostname = 'h' Drop /. from path] 327 expected: FAIL 328 329 [<area>: Setting <non-spec:/.//p>.hostname = 'h' Drop /. from path] 330 expected: FAIL 331 332 [<a>: Setting <non-spec:/.//p>.hostname = ''] 333 expected: FAIL 334 335 [<area>: Setting <non-spec:/.//p>.hostname = ''] 336 expected: FAIL 337 338 [<a>: Setting <view-source+http://example.net/path>.port = '8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error] 339 expected: FAIL 340 341 [<area>: Setting <view-source+http://example.net/path>.port = '8080stuff2' Anything other than ASCII digit stops the port parser in a setter but is not an error] 342 expected: FAIL 343 344 [<a>: Setting <non-special://example.net:8080/path>.port = '65536' Port numbers are 16 bit integers, overflowing is an error] 345 expected: FAIL 346 347 [<area>: Setting <non-special://example.net:8080/path>.port = '65536' Port numbers are 16 bit integers, overflowing is an error] 348 expected: FAIL 349 350 [<a>: Setting <file://test/>.port = '12'] 351 expected: FAIL 352 353 [<area>: Setting <file://test/>.port = '12'] 354 expected: FAIL 355 356 [<a>: Setting <sc://x/>.port = '12'] 357 expected: FAIL 358 359 [<area>: Setting <sc://x/>.port = '12'] 360 expected: FAIL 361 362 [<a>: Setting <javascript://x/>.port = '12'] 363 expected: FAIL 364 365 [<area>: Setting <javascript://x/>.port = '12'] 366 expected: FAIL 367 368 [<a>: Setting <mailto:me@example.net>.pathname = '/foo' Cannot-be-a-base don’t have a path] 369 expected: FAIL 370 371 [<area>: Setting <mailto:me@example.net>.pathname = '/foo' Cannot-be-a-base don’t have a path] 372 expected: FAIL 373 374 [<a>: Setting <unix:/run/foo.socket?timeout=10>.pathname = '/var/log/../run/bar.socket'] 375 expected: FAIL 376 377 [<area>: Setting <unix:/run/foo.socket?timeout=10>.pathname = '/var/log/../run/bar.socket'] 378 expected: FAIL 379 380 [<a>: Setting <http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is a segment delimiter for 'special' URLs] 381 expected: FAIL 382 383 [<area>: Setting <http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is a segment delimiter for 'special' URLs] 384 expected: FAIL 385 386 [<a>: Setting <view-source+http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is *not* a segment delimiter for non-'special' URLs] 387 expected: FAIL 388 389 [<area>: Setting <view-source+http://example.net/home?lang=fr#nav>.pathname = '\\a\\%2E\\b\\%2e.\\c' \\ is *not* a segment delimiter for non-'special' URLs] 390 expected: FAIL 391 392 [<a>: Setting <a:/>.pathname = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the default encode set. Tabs and newlines are removed.] 393 expected: FAIL 394 395 [<area>: Setting <a:/>.pathname = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the default encode set. Tabs and newlines are removed.] 396 expected: FAIL 397 398 [<a>: Setting <sc://example.net>.pathname = '?' ? needs to be encoded, non-special scheme] 399 expected: FAIL 400 401 [<area>: Setting <sc://example.net>.pathname = '?' ? needs to be encoded, non-special scheme] 402 expected: FAIL 403 404 [<a>: Setting <sc://example.net>.pathname = '#' # needs to be encoded, non-special scheme] 405 expected: FAIL 406 407 [<area>: Setting <sc://example.net>.pathname = '#' # needs to be encoded, non-special scheme] 408 expected: FAIL 409 410 [<a>: Setting <file://monkey/>.pathname = '\\\\' File URLs and (back)slashes] 411 expected: FAIL 412 413 [<area>: Setting <file://monkey/>.pathname = '\\\\' File URLs and (back)slashes] 414 expected: FAIL 415 416 [<a>: Setting <file:///unicorn>.pathname = '//\\/' File URLs and (back)slashes] 417 expected: FAIL 418 419 [<area>: Setting <file:///unicorn>.pathname = '//\\/' File URLs and (back)slashes] 420 expected: FAIL 421 422 [<a>: Setting <non-spec:/>.pathname = '/.//p' Serialize /. in path] 423 expected: FAIL 424 425 [<area>: Setting <non-spec:/>.pathname = '/.//p' Serialize /. in path] 426 expected: FAIL 427 428 [<a>: Setting <non-spec:/>.pathname = '/..//p'] 429 expected: FAIL 430 431 [<area>: Setting <non-spec:/>.pathname = '/..//p'] 432 expected: FAIL 433 434 [<a>: Setting <non-spec:/>.pathname = '//p'] 435 expected: FAIL 436 437 [<area>: Setting <non-spec:/>.pathname = '//p'] 438 expected: FAIL 439 440 [<a>: Setting <non-spec:/.//>.pathname = 'p' Drop /. from path] 441 expected: FAIL 442 443 [<area>: Setting <non-spec:/.//>.pathname = 'p' Drop /. from path] 444 expected: FAIL 445 446 [<a>: Setting <a:/>.search = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the query encode set. Tabs and newlines are removed.] 447 expected: FAIL 448 449 [<area>: Setting <a:/>.search = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' UTF-8 percent encoding with the query encode set. Tabs and newlines are removed.] 450 expected: FAIL 451 452 [<a>: Setting <a:/>.hash = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' Simple percent-encoding; tabs and newlines are removed] 453 expected: FAIL 454 455 [<area>: Setting <a:/>.hash = '\x00\x01\t\n\r\x1f !"#$%&'()*+,-./09:;<=>?@AZ[\\\]^_`az{|}~Éé' Simple percent-encoding; tabs and newlines are removed] 456 expected: FAIL 457 458 [<a>: Setting <sc://example.com/>.host = '///bad.com' Leading / is not stripped] 459 expected: FAIL 460 461 [<area>: Setting <sc://example.com/>.host = '///bad.com' Leading / is not stripped] 462 expected: FAIL 463 464 [<a>: Setting <sc://example.com/>.hostname = '///bad.com' Leading / is not stripped] 465 expected: FAIL 466 467 [<area>: Setting <sc://example.com/>.hostname = '///bad.com' Leading / is not stripped] 468 expected: FAIL 469 470 [<a>: Setting <foo://somehost/some/path>.pathname = '' Non-special URLs can have their paths erased] 471 expected: FAIL 472 473 [<area>: Setting <foo://somehost/some/path>.pathname = '' Non-special URLs can have their paths erased] 474 expected: FAIL 475 476 [<a>: Setting <foo:///some/path>.pathname = '' Non-special URLs with an empty host can have their paths erased] 477 expected: FAIL 478 479 [<area>: Setting <foo:///some/path>.pathname = '' Non-special URLs with an empty host can have their paths erased] 480 expected: FAIL 481 482 [<a>: Setting <foo:/some/path>.pathname = '' Path-only URLs cannot have their paths erased] 483 expected: FAIL 484 485 [<area>: Setting <foo:/some/path>.pathname = '' Path-only URLs cannot have their paths erased] 486 expected: FAIL 487 488 [<a>: Setting <foo:/some/path>.pathname = 'test' Path-only URLs always have an initial slash] 489 expected: FAIL 490 491 [<area>: Setting <foo:/some/path>.pathname = 'test' Path-only URLs always have an initial slash] 492 expected: FAIL 493