Reverting changeset 29e8f7716f6d (Bug 512173) due to mochitest orange in test_prompt.html & test_prompt_async.html

(backed out with command: "hg export 29e8f7716f6d | patch -p1 -R")
This commit is contained in:
Daniel Holbert 2009-09-28 17:10:48 -07:00
parent 863f9803be
commit ee8fb79ffa
2 changed files with 4 additions and 2 deletions

View File

@ -58,6 +58,7 @@ static const char kPromptURL[] = "chrome://global/content/commonDialog.xul";
static const char kSelectPromptURL[] = "chrome://global/content/selectDialog.xul";
static const char kQuestionIconClass[] = "question-icon";
static const char kAlertIconClass[] = "alert-icon";
static const char kWarningIconClass[] = "message-icon";
// We include question-icon for backwards compatibility
static const char kAuthenticationIconClass[] = "authentication-icon question-icon";

View File

@ -166,8 +166,9 @@ function commonDialogOnLoad()
// set the icon
var iconElement = document.getElementById("info.icon");
var iconClass = gCommonDialogParam.GetString(2);
if (iconClass)
iconElement.classList.add(iconClass);
if (!iconClass)
iconClass = "message-icon";
iconElement.setAttribute("class", iconElement.getAttribute("class") + " " + iconClass);
switch (nButtons) {
case 4: