This commit is contained in:
Felipe Gomes 2013-12-04 23:18:42 -02:00
Родитель 81ba8063ab
Коммит e3e6035c02
2 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1639,7 +1639,7 @@ pref("signed.applets.codebase_principal_support", false);
pref("security.checkloaduri", true);
pref("security.xpconnect.plugin.unrestricted", true);
// security-sensitive dialogs should delay button enabling. In milliseconds.
pref("security.dialog_enable_delay", 2000);
pref("security.dialog_enable_delay", 1000);
pref("security.notification_enable_delay", 500);
pref("security.csp.enable", true);

Просмотреть файл

@ -6,6 +6,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
Components.utils.import("resource://gre/modules/Services.jsm");
///////////////////////////////////////////////////////////////////////////////
//// Helper Functions
@ -480,10 +482,11 @@ nsUnknownContentTypeDialog.prototype = {
this.mDialog.setTimeout("dialog.postShowCallback()", 0);
let acceptDelay = Services.prefs.getIntPref("security.dialog_enable_delay");
this.mDialog.document.documentElement.getButton("accept").disabled = true;
this._showTimer = Components.classes["@mozilla.org/timer;1"]
.createInstance(nsITimer);
this._showTimer.initWithCallback(this, 250, nsITimer.TYPE_ONE_SHOT);
this._showTimer.initWithCallback(this, acceptDelay, nsITimer.TYPE_ONE_SHOT);
},
notify: function (aTimer) {