зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1783497 - Update test_url_data.html r=smaug
Due to the changes to chrome url canonicalization, this test doesn't make sense anymore. Differential Revision: https://phabricator.services.mozilla.com/D159864
This commit is contained in:
Родитель
4b0b0f1f42
Коммит
f13eed6c1f
|
@ -13,11 +13,7 @@
|
|||
|
||||
var base = new URL("data:text/plain,");
|
||||
|
||||
base.protocol = "chrome:";
|
||||
is(base.protocol, "data:", "The protocol should not change from data to chrome.");
|
||||
|
||||
let relative;
|
||||
|
||||
try {
|
||||
relative = new URL("a", base);
|
||||
ok(false, "Relative URL from a data:text/plain should not work.");
|
||||
|
@ -25,6 +21,16 @@ try {
|
|||
ok(true, "Relative URL from a data:text/plain should not work.");
|
||||
}
|
||||
|
||||
base.protocol = "chrome:";
|
||||
is(base.protocol, "chrome:", "The protocol should be changed from data to chrome.");
|
||||
|
||||
try {
|
||||
relative = new URL("a", base);
|
||||
ok(true, "Relative URL from a chrome: should work.");
|
||||
} catch (e) {
|
||||
ok(false, "Relative URL from a chrome: should work.");
|
||||
}
|
||||
|
||||
base.protocol = "http:";
|
||||
ok(true, "Protocol: http changed");
|
||||
is(base.href, "http://text/plain,", "Base URL is correct");
|
||||
|
|
|
@ -247,9 +247,6 @@
|
|||
[unregisterProtocolHandler: Invalid URL "ftp://web-platform.test:8443/%s" should throw SECURITY_ERR.]
|
||||
expected: FAIL
|
||||
|
||||
[registerProtocolHandler: Invalid URL "chrome://web-platform.test:8443/%s" should throw SECURITY_ERR.]
|
||||
expected: FAIL
|
||||
|
||||
[unregisterProtocolHandler: Invalid URL "chrome://web-platform.test:8443/%s" should throw SECURITY_ERR.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче