Bug 767840 - Let middleMousePaste call openUILink instead of whereToOpenLink and openUILinkIn. r=gavin

This commit is contained in:
Dão Gottwald 2012-07-03 17:02:29 +02:00
parent 1204d555df
commit fefd91b37c

View File

@ -5261,10 +5261,9 @@ function middleMousePaste(event) {
Cu.reportError(ex);
}
// FIXME: Bug 631500, use openUILink directly
let where = whereToOpenLink(event, true);
openUILinkIn(url, where,
{ disallowInheritPrincipal: !mayInheritPrincipal.value });
openUILink(url, event,
{ ignoreButton: true,
disallowInheritPrincipal: !mayInheritPrincipal.value });
event.stopPropagation();
}