Comment 11 for bug 239462

Revision history for this message
In , Glen-a-ritchie (glen-a-ritchie) wrote :

Possible solution is to make timer user configurable:

Change this in http://mxr.mozilla.org/firefox/source/layout/xul/base/src/nsXULTooltipListener.cpp#738
:
738 if ( mAutoHideTimer )
739 mAutoHideTimer->InitWithFuncCallback(sAutoHideCallback, this,
kTooltipAutoHideTime,
740 nsITimer::TYPE_ONE_SHOT);

To
738 if ( mAutoHideTimer )
739 mAutoHideTimer->InitWithFuncCallback(sAutoHideCallback, this,
nsContentUtils::GetIntPref("browser.chrome.tooltip_timeout",
kTooltipAutoHideTime),
740 nsITimer::TYPE_ONE_SHOT);

That way, users who want to change it so it stays around longer can.