mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
863f9803be
commit
ee8fb79ffa
@ -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";
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user