Loading browser/base/content/tabbrowser.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3385,6 +3385,8 @@ var anonid = event.originalTarget.getAttribute("anonid"); if (anonid == "close-button") this.mOverCloseButton = false; else this.style.MozUserFocus = ""; </handler> <handler event="dragstart" phase="capturing"> this.style.MozUserFocus = ''; Loading browser/base/content/test/browser_bug462289.js +13 −4 Original line number Diff line number Diff line Loading @@ -22,23 +22,32 @@ function step3() { isnot(document.activeElement, tab1, "mouse on tab again activeElement"); EventUtils.synthesizeMouse(tab1, 2, 2, {button: 1, type: "mousedown"}); EventUtils.synthesizeMouse(tab1, 0, 0, {button: 1, type: "mouseout"}); setTimeout(step4, 0); } function step4() { isnot(document.activeElement, tab1, "tab not focused via middle click"); document.getElementById("searchbar").focus(); EventUtils.synthesizeKey("VK_TAB", { }); is(document.activeElement, tab1, "tab key to tab activeElement"); EventUtils.synthesizeMouse(tab1, 2, 2, {}); setTimeout(step4, 0); setTimeout(step5, 0); } function step4() function step5() { is(document.activeElement, tab1, "mouse on tab while focused still activeElement"); EventUtils.synthesizeMouse(tab2, 2, 2, {}); setTimeout(step5, 0); setTimeout(step6, 0); } function step5() function step6() { // The tabbox selects a tab within a setTimeout in a bubbling mousedown event // listener, and focuses the current tab if another tab previously had focus Loading Loading
browser/base/content/tabbrowser.xml +2 −0 Original line number Diff line number Diff line Loading @@ -3385,6 +3385,8 @@ var anonid = event.originalTarget.getAttribute("anonid"); if (anonid == "close-button") this.mOverCloseButton = false; else this.style.MozUserFocus = ""; </handler> <handler event="dragstart" phase="capturing"> this.style.MozUserFocus = ''; Loading
browser/base/content/test/browser_bug462289.js +13 −4 Original line number Diff line number Diff line Loading @@ -22,23 +22,32 @@ function step3() { isnot(document.activeElement, tab1, "mouse on tab again activeElement"); EventUtils.synthesizeMouse(tab1, 2, 2, {button: 1, type: "mousedown"}); EventUtils.synthesizeMouse(tab1, 0, 0, {button: 1, type: "mouseout"}); setTimeout(step4, 0); } function step4() { isnot(document.activeElement, tab1, "tab not focused via middle click"); document.getElementById("searchbar").focus(); EventUtils.synthesizeKey("VK_TAB", { }); is(document.activeElement, tab1, "tab key to tab activeElement"); EventUtils.synthesizeMouse(tab1, 2, 2, {}); setTimeout(step4, 0); setTimeout(step5, 0); } function step4() function step5() { is(document.activeElement, tab1, "mouse on tab while focused still activeElement"); EventUtils.synthesizeMouse(tab2, 2, 2, {}); setTimeout(step5, 0); setTimeout(step6, 0); } function step5() function step6() { // The tabbox selects a tab within a setTimeout in a bubbling mousedown event // listener, and focuses the current tab if another tab previously had focus Loading