Bug 674847 - Make tooltip suppression during tab drag not fragile. r=dao

This commit is contained in:
Frank Yan 2011-07-28 21:26:37 -07:00
parent baab248d05
commit 94c4236e6b
2 changed files with 1 additions and 5 deletions

View File

@ -63,10 +63,6 @@ tabbrowser {
display: block; /* position:fixed already does this (bug 579776), but let's be explicit */ display: block; /* position:fixed already does this (bug 579776), but let's be explicit */
} }
.tabbrowser-tabs[drag] > .tabbrowser-tab {
pointer-events: none; /* suppress tooltips */
}
.tabbrowser-tabs[drag] > .tabbrowser-tab[selected] { .tabbrowser-tabs[drag] > .tabbrowser-tab[selected] {
z-index: 2; /* ensure selected tab stays on top despite -moz-transform */ z-index: 2; /* ensure selected tab stays on top despite -moz-transform */
} }

View File

@ -2456,7 +2456,7 @@
<body><![CDATA[ <body><![CDATA[
event.stopPropagation(); event.stopPropagation();
var tab = document.tooltipNode; var tab = document.tooltipNode;
if (tab.localName != "tab") { if (tab.localName != "tab" || this.tabContainer.draggedTab) {
event.preventDefault(); event.preventDefault();
return; return;
} }