From b593867bb2b53c1184ef069627bfe9433c1d3e45 Mon Sep 17 00:00:00 2001 From: Allison Naaktgeboren Date: Fri, 17 Jan 2014 10:47:24 -0800 Subject: [PATCH] Bug 958993 - taping Clear button under Options several times creates multiple modal prompts.r=mbrubeck --- browser/metro/base/content/browser-ui.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/metro/base/content/browser-ui.js b/browser/metro/base/content/browser-ui.js index 8f9f8f3f599b..4599c9a4ba11 100644 --- a/browser/metro/base/content/browser-ui.js +++ b/browser/metro/base/content/browser-ui.js @@ -1104,6 +1104,9 @@ var BrowserUI = { let message = bundle.GetStringFromName("clearPrivateData.message"); let clearbutton = bundle.GetStringFromName("clearPrivateData.clearButton"); + let prefsClearButton = document.getElementById("prefs-clear-data"); + prefsClearButton.disabled = true; + let buttonPressed = Services.prompt.confirmEx( null, title, @@ -1120,6 +1123,8 @@ var BrowserUI = { if (buttonPressed === 0) { SanitizeUI.onSanitize(); } + + prefsClearButton.disabled = false; }, };