Bug 405541 - Location Bar don't revert back to the correct url of the tab when you middle click go after entering text, to open in a new tab. r=dao

This commit is contained in:
Alice0775 White 2010-11-05 11:56:49 +01:00
parent 7e5bd17af2
commit 994a73d975

View File

@ -272,8 +272,13 @@
if (aTriggeringEvent instanceof MouseEvent) {
// We have a mouse event (from the go button), so use the standard
// UI link behaviors
openUILink(url, aTriggeringEvent, false, false,
true /* allow third party fixup */, postData);
let where = whereToOpenLink(aTriggeringEvent, false, false);
if (where != "current") {
this.handleRevert();
content.focus();
}
openUILinkIn(url, where,
{ allowThirdPartyFixup: true, postData: postData });
return;
}