bug 830418 - hide health report menu items if health report is disabled, r=rnewman

This commit is contained in:
Mike Connor 2013-01-14 19:55:43 -05:00
parent 60850c7c23
commit 17b82197ea
3 changed files with 6 additions and 1 deletions

View File

@ -52,11 +52,13 @@
#else
/>
#endif
#ifdef MOZ_SERVICES_HEALTHREPORT
<menuitem id="healthReport"
label="&healthReport.label;"
accesskey="&healthReport.accesskey;"
oncommand="openHealthReport()"
onclick="checkForMiddleClick(this, event);"/>
#endif
<menuitem id="troubleShooting"
accesskey="&helpTroubleshootingInfo.accesskey;"
label="&helpTroubleshootingInfo.label;"

View File

@ -378,10 +378,12 @@
label="&appMenuGettingStarted.label;"
oncommand="gBrowser.loadOneTab('http://www.mozilla.com/firefox/central/', {inBackground: false});"
onclick="checkForMiddleClick(this, event);"/>
#ifdef MOZ_SERVICES_HEALTHREPORT
<menuitem id="appmenu_healthReport"
label="&healthReport.label;"
oncommand="openHealthReport()"
onclick="checkForMiddleClick(this, event);"/>
#endif
<menuitem id="appmenu_troubleshootingInfo"
label="&helpTroubleshootingInfo.label;"
oncommand="openTroubleshootingPage()"

View File

@ -529,6 +529,7 @@ function openTroubleshootingPage()
openUILinkIn("about:support", "tab");
}
#ifdef MOZ_SERVICES_HEALTHREPORT
/**
* Opens the troubleshooting information (about:support) page for this version
* of the application.
@ -537,7 +538,7 @@ function openHealthReport()
{
openUILinkIn("about:healthreport", "tab");
}
#endif
/**
* Opens the feedback page for this version of the application.