Backed out changeset 1023659e3413 (bug 1203463) for w(7) and m(4) bustage

This commit is contained in:
Wes Kocher 2015-09-15 10:58:14 -07:00
parent cc3cd34e27
commit 3b656f6d65
2 changed files with 2 additions and 22 deletions

View File

@ -423,15 +423,8 @@ URL::GetPathname(nsAString& aPathname, ErrorResult& aRv) const
nsCOMPtr<nsIURL> url(do_QueryInterface(mURI));
if (!url) {
nsAutoCString path;
nsresult rv = mURI->GetPath(path);
if (NS_FAILED(rv)){
// Do not throw! Not having a valid URI or URL should result in an empty
// string.
return;
}
CopyUTF8toUTF16(path, aPathname);
// Do not throw! Not having a valid URI or URL should result in an empty
// string.
return;
}

View File

@ -209,14 +209,6 @@
error: false,
protocol: 'foo:',
},
{ url: 'about:blank',
base: undefined,
error: false,
protocol: 'about:',
pathname: 'blank',
skip_setters: false,
},
];
while(tests.length) {
@ -251,11 +243,6 @@
if ('search' in test) is(url.search, test.search, "search");
if ('hash' in test) is(url.hash, test.hash, "hash");
if ('skip_setters' in test && test.skip_setters == false) {
info("Skip setter methods for URL: " + test);
continue;
}
url = new URL('https://www.example.net/what#foo?bar');
ok(url, "Url exists!");