Bug 711993 - Catch exception thrown by uri.host in PermissionsHelper observer. r=mfinkle

This commit is contained in:
Margaret Leibovic 2012-01-12 13:29:14 -08:00
parent e494be423b
commit e4a1a0f85c

View File

@ -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
}
});