зеркало из https://github.com/mozilla/gecko-dev.git
Bug 916726 - r=gavin
This commit is contained in:
Родитель
81ba8063ab
Коммит
e3e6035c02
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче