Bug 1264434 - Use String.prototype.includes in browser_webconsole_bug_597136_network_requests_from_chrome.js. r=bgrins

String.prototype.contains was removed from Firefox 48 completely after
it was renamed to String.prototype.includes. The test includes a
call to .contains() which is triggered whenever random JavaScript
error occurs during the test (hence the intermittency).

MozReview-Commit-ID: 7nbRm94JM7O

--HG--
extra : rebase_source : e969bc1ad46120509deec31066ea63ebbb7de9c9
This commit is contained in:
Sami Jaktholm 2016-06-05 05:49:12 +00:00
Родитель f27623ec26
Коммит 85c7fb9737
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -16,7 +16,7 @@ var listener = {
observe: function (subject) {
if (subject instanceof Ci.nsIScriptError &&
subject.category === "XPConnect JavaScript" &&
subject.sourceName.contains("webconsole")) {
subject.sourceName.includes("webconsole")) {
good = false;
}
}