mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 462289, don't focus the selected tab when clicking it with the mouse, r=gavin
This commit is contained in:
parent
b8aeaa6484
commit
84e17c3406
@ -3371,12 +3371,27 @@
|
|||||||
if (anonid == "close-button")
|
if (anonid == "close-button")
|
||||||
this.mOverCloseButton = false;
|
this.mOverCloseButton = false;
|
||||||
</handler>
|
</handler>
|
||||||
|
<handler event="dragstart" phase="capturing">
|
||||||
|
this.style.MozUserFocus = '';
|
||||||
|
</handler>
|
||||||
<handler event="mousedown" button="0" phase="capturing">
|
<handler event="mousedown" button="0" phase="capturing">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
if (this.mOverCloseButton)
|
if (this.mOverCloseButton) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.style.MozUserFocus = 'ignore';
|
||||||
|
this.clientTop; // just using this to flush style updates
|
||||||
|
}
|
||||||
]]>
|
]]>
|
||||||
</handler>
|
</handler>
|
||||||
|
<handler event="mousedown" button="2">
|
||||||
|
this.style.MozUserFocus = 'ignore';
|
||||||
|
this.clientTop;
|
||||||
|
</handler>
|
||||||
|
<handler event="mouseup">
|
||||||
|
this.style.MozUserFocus = '';
|
||||||
|
</handler>
|
||||||
</handlers>
|
</handlers>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
||||||
|
@ -99,6 +99,7 @@ _BROWSER_FILES = browser_sanitize-timespans.js \
|
|||||||
browser_sanitize-passwordDisabledHosts.js \
|
browser_sanitize-passwordDisabledHosts.js \
|
||||||
browser_bug479408.js \
|
browser_bug479408.js \
|
||||||
browser_bug479408_sample.html \
|
browser_bug479408_sample.html \
|
||||||
|
browser_bug462289.js \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||||
|
Loading…
Reference in New Issue
Block a user