Bug 995696 - Ignore Content:PageShow with tabID of 0 in testNewTab; r=snorp

This commit is contained in:
Geoff Brown 2014-08-15 13:28:35 -06:00
parent ce178451f6
commit abb978a085

View File

@ -563,6 +563,10 @@ abstract class BaseTest extends BaseRobocopTest {
try {
JSONObject data = new JSONObject(pageShowExpecter.blockForEventData());
int tabID = data.getInt("tabID");
if (tabID == 0) {
mAsserter.dumpLog("addTab ignoring PageShow for tab 0");
continue;
}
if (!mKnownTabIDs.contains(tabID)) {
mKnownTabIDs.add(tabID);
break;