Bug 324335: Dragging link to a tab loads in a new tab instead of replacing, patch by Martijn Wargers <martijn.martijn@gmail.com>, r=mconnor

This commit is contained in:
gavin@gavinsharp.com 2007-08-21 22:01:00 -07:00
parent 5eb07018aa
commit 08c5bd4f41

View File

@ -1635,7 +1635,7 @@
if (aEvent.shiftKey)
bgLoad = !bgLoad;
if (aEvent.originalTarget.localName != "tab") {
if (document.getBindingParent(aEvent.originalTarget).localName != "tab") {
// We're adding a new tab.
this.loadOneTab(getShortcutOrURI(url), null, null, null, bgLoad);
}