mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Bug 1134846 - Follow-up to handle URLs like chrome: that the URL constructor doesn't like. r=bustage
This commit is contained in:
parent
08fd010cf8
commit
6f4477296f
@ -167,9 +167,14 @@ var LoginManagerParent = {
|
||||
requestId, target) {
|
||||
let recipes = [];
|
||||
if (formOrigin) {
|
||||
let formHost = (new URL(formOrigin)).host;
|
||||
let recipeManager = yield this.recipeParentPromise;
|
||||
recipes = recipeManager.getRecipesForHost(formHost);
|
||||
let formHost;
|
||||
try {
|
||||
formHost = (new URL(formOrigin)).host;
|
||||
let recipeManager = yield this.recipeParentPromise;
|
||||
recipes = recipeManager.getRecipesForHost(formHost);
|
||||
} catch (ex) {
|
||||
// Some schemes e.g. chrome aren't supported by URL
|
||||
}
|
||||
}
|
||||
|
||||
if (!showMasterPassword && !Services.logins.isLoggedIn) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user