mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
13e6ab9b90
commit
09679e6136
@ -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…
Reference in New Issue
Block a user