mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711993 - Catch exception thrown by uri.host in PermissionsHelper observer. r=mfinkle
This commit is contained in:
parent
e494be423b
commit
e4a1a0f85c
@ -3637,10 +3637,16 @@ var PermissionsHelper = {
|
||||
// Keep track of permissions, so we know which ones to clear
|
||||
this._currentPermissions = permissions;
|
||||
|
||||
let host;
|
||||
try {
|
||||
host = uri.host;
|
||||
} catch(e) {
|
||||
host = uri.spec;
|
||||
}
|
||||
sendMessageToJava({
|
||||
gecko: {
|
||||
type: "Permissions:Data",
|
||||
host: uri.host,
|
||||
host: host,
|
||||
permissions: permissions
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user