Bug 632365 - Delay status updates for links further. r=gavin ui-r=faaborg

This commit is contained in:
Dão Gottwald 2011-09-27 01:22:57 +02:00
parent 4efc1d86d0
commit 4e21a77cca
4 changed files with 16 additions and 6 deletions

View File

@ -254,7 +254,7 @@ pref("browser.warnOnRestart", false);
pref("browser.showQuitWarning", false);
pref("browser.fullscreen.autohide", true);
pref("browser.fullscreen.animateUp", 1);
pref("browser.overlink-delay", 70);
pref("browser.overlink-delay", 80);
#ifdef UNIX_BUT_NOT_MAC
pref("browser.urlbar.clickSelectsAll", false);

View File

@ -511,16 +511,20 @@ statuspanel[type=status] {
}
statuspanel[type=overLink] {
-moz-transition: opacity 100ms ease-out;
-moz-transition: opacity 120ms ease-out;
direction: ltr;
}
statuspanel[label=""] {
statuspanel[inactive] {
-moz-transition: none;
opacity: 0;
pointer-events: none;
}
statuspanel[inactive][previoustype=overLink] {
-moz-transition: opacity 200ms ease-out;
}
.statuspanel-inner {
height: 3em;
width: 100%;

View File

@ -4674,7 +4674,7 @@ var LinkTargetDisplay = {
return this.DELAY_SHOW = Services.prefs.getIntPref("browser.overlink-delay");
},
DELAY_HIDE: 150,
DELAY_HIDE: 250,
_timer: 0,
get _isVisible () XULBrowserWindow.statusTextField.label != "",

View File

@ -4274,11 +4274,17 @@
this.getAttribute("previoustype") == "status"
? getComputedStyle(this).width : "";
this.setAttribute("label", val);
if (val) {
this.setAttribute("label", val);
this.removeAttribute("inactive");
} else {
this.setAttribute("inactive", "true");
}
return val;
]]></setter>
<getter>
return this.getAttribute("label");
return this.hasAttribute("inactive") ? "" : this.getAttribute("label");
</getter>
</property>