mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-07 18:04:46 +00:00
Bug 1783497 - Don't throw if chrome URL canonicalization fails r=smaug
Looks like this is not needed and making a web-compat issue. Differential Revision: https://phabricator.services.mozilla.com/D156985
This commit is contained in:
parent
50b1cf9604
commit
57df7f88fd
@ -82,7 +82,7 @@ nsChromeProtocolHandler::GetProtocolFlags(uint32_t* result) {
|
||||
// and "chrome://navigator/content/navigator.xul".
|
||||
|
||||
rv = nsChromeRegistry::Canonify(surl);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
mozilla::Unused << NS_WARN_IF(NS_FAILED(rv));
|
||||
|
||||
surl.forget(result);
|
||||
return NS_OK;
|
||||
|
@ -27,6 +27,7 @@ function invalidEventHandler(e)
|
||||
|
||||
function checkValidURL(element)
|
||||
{
|
||||
info(`Checking ${element.value}\n`);
|
||||
gInvalid = false;
|
||||
ok(!element.validity.typeMismatch,
|
||||
"Element should not suffer from type mismatch");
|
||||
@ -71,6 +72,7 @@ var values = [
|
||||
[ "http://mózillä.órg", true ],
|
||||
[ "ht://mózillä.órg", true ],
|
||||
[ "httŭ://mózillä.órg", false ],
|
||||
[ "chrome://bookmarks", true ],
|
||||
];
|
||||
|
||||
values.forEach(function([value, valid]) {
|
||||
|
Loading…
Reference in New Issue
Block a user