Bug 714712 - Part 3: Fix browser_select_update.js and browser_select_confirm.js. r=bmcbride

This commit is contained in:
Yury 2012-03-21 22:25:06 -04:00
Родитель 5618106733
Коммит 7221ab2ea4
2 изменённых файлов: 12 добавлений и 0 удалений

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

@ -71,6 +71,12 @@ function setupUI(aAppDisabled, aUpdateAvailable, aCallback) {
waitForView("select", function() {
var row = gWin.document.getElementById("select-rows").firstChild.nextSibling;
while (row) {
if (!row.id || row.id.indexOf("@tests.mozilla.org") < 0) {
// not a test add-on
row = row.nextSibling;
continue;
}
if (row.id == "test2@tests.mozilla.org" ||
row.id == "test4@tests.mozilla.org") {
row.disable();

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

@ -106,6 +106,12 @@ function setupUI(aFailDownloads, aFailInstalls, aCallback) {
waitForView("select", function() {
var row = gWin.document.getElementById("select-rows").firstChild.nextSibling;
while (row) {
if (!row.id || row.id.indexOf("@tests.mozilla.org") < 0) {
// not a test add-on
row = row.nextSibling;
continue;
}
if (row.id == "test2@tests.mozilla.org" ||
row.id == "test4@tests.mozilla.org") {
row.disable();