mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1521040 - Remove ondialoghelp attribute and add custom event handler r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16946 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
e76a9c3329
commit
def0e38b93
@ -973,6 +973,8 @@ function openHelpLink(aHelpTopic, aCalledFromModal, aWhere) {
|
||||
openTrustedLinkIn(url, where);
|
||||
}
|
||||
|
||||
window.addEventListener("dialoghelp", openPrefsHelp);
|
||||
|
||||
function openPrefsHelp() {
|
||||
// non-instant apply prefwindows are usually modal, so we can't open in the topmost window,
|
||||
// since its probably behind the window.
|
||||
|
@ -16,8 +16,7 @@
|
||||
role="dialog"
|
||||
onload="gBrowserLanguagesDialog.onLoad();"
|
||||
onbeforeaccept="return gBrowserLanguagesDialog.beforeAccept();"
|
||||
helpTopic="prefs-languages"
|
||||
ondialoghelp="openPrefsHelp()">
|
||||
helpTopic="prefs-languages">
|
||||
|
||||
<linkset>
|
||||
<link rel="localization" href="branding/brand.ftl"/>
|
||||
|
@ -16,8 +16,7 @@
|
||||
buttons="accept,cancel,help"
|
||||
persist="lastSelected screenX screenY"
|
||||
role="dialog"
|
||||
helpTopic="prefs-fonts-and-colors"
|
||||
ondialoghelp="openPrefsHelp()">
|
||||
helpTopic="prefs-fonts-and-colors">
|
||||
|
||||
<linkset>
|
||||
<link rel="localization" href="browser/preferences/colors.ftl"/>
|
||||
|
@ -17,8 +17,7 @@
|
||||
role="dialog"
|
||||
onbeforeaccept="return gConnectionsDialog.beforeAccept();"
|
||||
onload="gConnectionsDialog.checkForSystemProxy();"
|
||||
helpTopic="prefs-connection-settings"
|
||||
ondialoghelp="openPrefsHelp()">
|
||||
helpTopic="prefs-connection-settings">
|
||||
|
||||
<!-- Used for extension-controlled lockdown message -->
|
||||
<linkset>
|
||||
|
@ -16,8 +16,7 @@
|
||||
buttons="accept,cancel,help"
|
||||
persist="lastSelected screenX screenY"
|
||||
role="dialog"
|
||||
helpTopic="prefs-fonts-and-colors"
|
||||
ondialoghelp="openPrefsHelp()">
|
||||
helpTopic="prefs-fonts-and-colors">
|
||||
|
||||
<linkset>
|
||||
<link rel="localization" href="browser/preferences/fonts.ftl"/>
|
||||
|
@ -15,8 +15,7 @@
|
||||
persist="lastSelected screenX screenY"
|
||||
role="dialog"
|
||||
onload="gLanguagesDialog.onLoad();"
|
||||
helpTopic="prefs-languages"
|
||||
ondialoghelp="openPrefsHelp()">
|
||||
helpTopic="prefs-languages">
|
||||
|
||||
<linkset>
|
||||
<link rel="localization" href="browser/preferences/languages.ftl"/>
|
||||
|
@ -16,7 +16,6 @@
|
||||
buttons="accept,cancel,help"
|
||||
persist="lastSelected screenX screenY"
|
||||
role="dialog"
|
||||
ondialoghelp="openPrefsHelp()"
|
||||
data-l10n-id="sanitize-prefs"
|
||||
data-l10n-attrs="style"
|
||||
helpTopic="prefs-clear-private-data"
|
||||
|
Loading…
Reference in New Issue
Block a user