зеркало из https://github.com/mozilla/pjs.git
unix: should remove the Reveal Location & Launch File buttons from download progress dialog
bug=90008 r=jkeiser sr=bzbarsky a=asa
This commit is contained in:
Родитель
9dc824d9ff
Коммит
2fe53381c8
|
@ -590,13 +590,23 @@ nsProgressDialog.prototype = {
|
|||
cancelButton.label = this.getString( "close" );
|
||||
cancelButton.focus();
|
||||
|
||||
// Activate reveal/launch buttons.
|
||||
this.enable( "reveal" );
|
||||
// Activate reveal/launch buttons if we are them.
|
||||
var enableButtons = true;
|
||||
try {
|
||||
if ( this.target && !this.target.isExecutable() ) {
|
||||
this.enable( "launch" );
|
||||
var prefs = Components.classes[ "@mozilla.org/preferences-service;1" ]
|
||||
.getService( Components.interfaces.nsIPrefBranch );
|
||||
enableButtons = prefs.getBoolPref( "browser.download.progressDnldDialog.enable_launch_reveal_buttons" );
|
||||
} catch ( e ) {
|
||||
}
|
||||
|
||||
if ( enableButtons ) {
|
||||
this.enable( "reveal" );
|
||||
try {
|
||||
if ( this.target && !this.target.isExecutable() ) {
|
||||
this.enable( "launch" );
|
||||
}
|
||||
} catch(e) {
|
||||
}
|
||||
} catch(e) {
|
||||
}
|
||||
|
||||
// Disable the Pause/Resume buttons.
|
||||
|
|
|
@ -134,6 +134,7 @@ pref("browser.prefWindowModal", true);
|
|||
pref("browser.show_about_as_stupid_modal_window", false);
|
||||
|
||||
pref("browser.download.progressDnldDialog.keepAlive", true); // keep the dnload progress dialog up after dnload is complete
|
||||
pref("browser.download.progressDnldDialog.enable_launch_reveal_buttons", true);
|
||||
|
||||
// various default search settings
|
||||
pref("browser.search.defaulturl", "chrome://navigator-region/locale/region.properties");
|
||||
|
|
|
@ -362,6 +362,9 @@ pref("print.postscript.nativefont.x-western", "");
|
|||
pref("print.postscript.nativefont.zh-CN", "");
|
||||
pref("print.postscript.nativefont.zh-TW", "");
|
||||
|
||||
// For the download dialog
|
||||
pref("browser.download.progressDnldDialog.enable_launch_reveal_buttons", false);
|
||||
|
||||
pref("mail.signature_date", 0);
|
||||
|
||||
// until bug #130581 is fixed, we need to override this on linux
|
||||
|
|
Загрузка…
Ссылка в новой задаче