зеркало из https://github.com/mozilla/gecko-dev.git
Bug 414054: Add explicit message if preference isn't set for about:crashes. r=mano, ui-r=beltzner, a=schrep
This commit is contained in:
Родитель
5a54e5b578
Коммит
ec5c29c918
|
@ -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">
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче