Bug 414054: Add explicit message if preference isn't set for about:crashes.
r=mano, ui-r=beltzner, a=schrep git-svn-id: svn://10.0.0.236/trunk@244166 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
262b269991
commit
a6cd02fa4f
@ -84,7 +84,15 @@ function findInsertionPoint(reports, date) {
|
||||
function populateReportList() {
|
||||
var prefService = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
var reportURL = prefService.getCharPref("breakpad.reportURL");
|
||||
|
||||
try {
|
||||
var reportURL = prefService.getCharPref("breakpad.reportURL");
|
||||
}
|
||||
catch (e) {
|
||||
document.getElementById("reportList").style.display = "none";
|
||||
document.getElementById("noConfig").style.display = "block";
|
||||
return;
|
||||
}
|
||||
var directoryService = Cc["@mozilla.org/file/directory_service;1"].
|
||||
getService(Ci.nsIProperties);
|
||||
|
||||
@ -202,5 +210,6 @@ function clearReports() {
|
||||
</table>
|
||||
</div>
|
||||
<p id="noReports" style="display: none">&noReports.label;</p>
|
||||
<p id="noConfig" style="display: none">&noConfig.label;</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -2,4 +2,6 @@
|
||||
<!ENTITY id.heading "Report ID">
|
||||
<!ENTITY date.heading "Date Submitted">
|
||||
<!ENTITY noReports.label "No crash reports have been submitted.">
|
||||
<!ENTITY noConfig.label "This application has not been configured to display crash reports. The preference <code>breakpad.reportURL</code> must be set.">
|
||||
<!ENTITY clearReports.label "Remove Reports">
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user