зеркало из https://github.com/mozilla/gecko-dev.git
Bug 415656: Ignore non-http(s) urls for the crash reports server. r=gavin, a1.9b3=beltzner
This commit is contained in:
Родитель
6bc372de6d
Коммит
b6c3aaf3e4
|
@ -85,10 +85,15 @@ function populateReportList() {
|
|||
var prefService = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
|
||||
var reportURL = null;
|
||||
try {
|
||||
var reportURL = prefService.getCharPref("breakpad.reportURL");
|
||||
reportURL = prefService.getCharPref("breakpad.reportURL");
|
||||
// Ignore any non http/https urls
|
||||
if (!/^https?:/i.test(reportURL))
|
||||
reportURL = null;
|
||||
}
|
||||
catch (e) {
|
||||
catch (e) { }
|
||||
if (!reportURL) {
|
||||
document.getElementById("reportList").style.display = "none";
|
||||
document.getElementById("noConfig").style.display = "block";
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче