Bug 1416875 - Renamed prompt IDs from the form of info.body to InfoBody so they won't need escaping. r=jaws

--HG--
extra : rebase_source : cd932973a6b675ff45c4a4c9eadc68e3303f6d11
This commit is contained in:
gorovoja 2017-11-17 13:59:30 -05:00
parent f72d7494e0
commit 76b56b8d23
10 changed files with 24 additions and 24 deletions

View File

@ -8,7 +8,7 @@
max-width: 45em; max-width: 45em;
} }
#info\.body { #infoBody {
-moz-user-focus: normal; -moz-user-focus: normal;
-moz-user-select: text; -moz-user-select: text;
cursor: text !important; cursor: text !important;

View File

@ -33,9 +33,9 @@ function commonDialogOnLoad() {
password1Container: document.getElementById("password1Container"), password1Container: document.getElementById("password1Container"),
password1Textbox: document.getElementById("password1Textbox"), password1Textbox: document.getElementById("password1Textbox"),
password1Label: document.getElementById("password1Label"), password1Label: document.getElementById("password1Label"),
infoBody: document.getElementById("info.body"), infoBody: document.getElementById("infoBody"),
infoTitle: document.getElementById("info.title"), infoTitle: document.getElementById("infoTitle"),
infoIcon: document.getElementById("info.icon"), infoIcon: document.getElementById("infoIcon"),
checkbox: document.getElementById("checkbox"), checkbox: document.getElementById("checkbox"),
checkboxContainer: document.getElementById("checkboxContainer"), checkboxContainer: document.getElementById("checkboxContainer"),
button3: dialog.getButton("extra2"), button3: dialog.getButton("extra2"),

View File

@ -12,7 +12,7 @@
<dialog id="commonDialog" <dialog id="commonDialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
aria-describedby="info.body" aria-describedby="infoBody"
onunload="commonDialogOnUnload();" onunload="commonDialogOnUnload();"
ondialogaccept="Dialog.onButton0(); return true;" ondialogaccept="Dialog.onButton0(); return true;"
ondialogcancel="Dialog.onButton1(); return true;" ondialogcancel="Dialog.onButton1(); return true;"
@ -61,7 +61,7 @@
<rows> <rows>
<row> <row>
<hbox id="iconContainer" align="start"> <hbox id="iconContainer" align="start">
<image id="info.icon" class="spaced"/> <image id="infoIcon" class="spaced"/>
</hbox> </hbox>
<vbox id="infoContainer" <vbox id="infoContainer"
#ifndef XP_MACOSX #ifndef XP_MACOSX
@ -69,14 +69,14 @@
#endif #endif
> >
<!-- Only shown on OS X, since it has no dialog title --> <!-- Only shown on OS X, since it has no dialog title -->
<description id="info.title" <description id="infoTitle"
#ifndef XP_MACOSX #ifndef XP_MACOSX
hidden="true" hidden="true"
#else #else
style="margin-bottom: 1em" style="margin-bottom: 1em"
#endif #endif
/> />
<description id="info.body" context="contentAreaContextMenu" noinitialfocus="true"/> <description id="infoBody" context="contentAreaContextMenu" noinitialfocus="true"/>
</vbox> </vbox>
</row> </row>
<row id="loginContainer" hidden="true" align="center"> <row id="loginContainer" hidden="true" align="center">

View File

@ -16,12 +16,12 @@ tabmodalprompt {
-moz-user-focus: normal; -moz-user-focus: normal;
} }
.info\.title { .infoTitle {
margin-bottom: 1em !important; margin-bottom: 1em !important;
font-weight: bold; font-weight: bold;
} }
.info\.body { .infoBody {
margin: 0 !important; margin: 0 !important;
-moz-user-focus: normal; -moz-user-focus: normal;
-moz-user-select: text; -moz-user-select: text;

View File

@ -28,7 +28,7 @@
<xbl:content xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" <xbl:content xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
role="dialog" role="dialog"
aria-describedby="info.body"> aria-describedby="infoBody">
<!-- This is based on the guts of commonDialog.xul --> <!-- This is based on the guts of commonDialog.xul -->
<spacer flex="1"/> <spacer flex="1"/>
@ -42,8 +42,8 @@
<rows> <rows>
<vbox anonid="infoContainer" align="center" pack="center" flex="1"> <vbox anonid="infoContainer" align="center" pack="center" flex="1">
<description anonid="info.title" class="info.title" hidden="true" /> <description anonid="infoTitle" class="infoTitle" hidden="true" />
<description anonid="info.body" class="info.body"/> <description anonid="infoBody" class="infoBody"/>
</vbox> </vbox>
<row anonid="loginContainer" hidden="true" align="center"> <row anonid="loginContainer" hidden="true" align="center">
@ -101,8 +101,8 @@
password1Container: getElement("password1Container"), password1Container: getElement("password1Container"),
password1Textbox: getElement("password1Textbox"), password1Textbox: getElement("password1Textbox"),
password1Label: getElement("password1Label"), password1Label: getElement("password1Label"),
infoBody: getElement("info.body"), infoBody: getElement("infoBody"),
infoTitle: getElement("info.title"), infoTitle: getElement("infoTitle"),
infoIcon: null, infoIcon: null,
checkbox: getElement("checkbox"), checkbox: getElement("checkbox"),
checkboxContainer: getElement("checkboxContainer"), checkboxContainer: getElement("checkboxContainer"),

View File

@ -13,7 +13,7 @@
min-width: 58px; /* maximum icon width + icon margin */ min-width: 58px; /* maximum icon width + icon margin */
} }
#info\.icon { #infoIcon {
max-width: 48px; max-width: 48px;
max-height: 48px; max-height: 48px;
/* The 'spaced' class does this already. It's repeated here to make it clearer /* The 'spaced' class does this already. It's repeated here to make it clearer

View File

@ -62,7 +62,7 @@ window.dialog {
list-style-image: url("moz-icon://stock/gtk-dialog-info?size=dialog"); list-style-image: url("moz-icon://stock/gtk-dialog-info?size=dialog");
} }
.alert-dialog #info\.icon, .alert-dialog #infoIcon,
.alert-icon { .alert-icon {
list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=dialog"); list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=dialog");
} }

View File

@ -18,18 +18,18 @@
padding-top: 10px; padding-top: 10px;
} }
#info\.icon { #infoIcon {
margin-inline-end: 14px; margin-inline-end: 14px;
} }
#info\.title, #infoTitle,
#info\.header, #infoHeader,
#info\.body { #infoBody {
font: menu; font: menu;
line-height: 16px; line-height: 16px;
margin-bottom: 6px; margin-bottom: 6px;
} }
#info\.title { #infoTitle {
font-weight: bold; font-weight: bold;
} }

View File

@ -68,7 +68,7 @@ window.dialog {
list-style-image: url("chrome://global/skin/icons/info.svg"); list-style-image: url("chrome://global/skin/icons/info.svg");
} }
.alert-dialog #info\.icon, .alert-dialog #infoIcon,
.alert-icon { .alert-icon {
list-style-image: url("chrome://global/skin/icons/warning-64.png"); list-style-image: url("chrome://global/skin/icons/warning-64.png");
} }

View File

@ -60,7 +60,7 @@ window.dialog {
list-style-image: url("chrome://global/skin/icons/info.svg"); list-style-image: url("chrome://global/skin/icons/info.svg");
} }
.alert-dialog #info\.icon, .alert-dialog #infoIcon,
.alert-icon { .alert-icon {
list-style-image: url("chrome://global/skin/icons/Warning.png"); list-style-image: url("chrome://global/skin/icons/Warning.png");
} }