From 47d56b22a240049ca90d629dd05472e022098d0c Mon Sep 17 00:00:00 2001 From: Gijs Kruitbosch Date: Fri, 20 Sep 2013 14:15:46 +0200 Subject: [PATCH] Bug 917271 - use public API to check if bookmarks are still updating rather than private _pendingStmt, rs=test-only --- browser/base/content/test/general/browser_bug624734.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/base/content/test/general/browser_bug624734.js b/browser/base/content/test/general/browser_bug624734.js index 11267afb6d8..7c5e5e31bd7 100644 --- a/browser/base/content/test/general/browser_bug624734.js +++ b/browser/base/content/test/general/browser_bug624734.js @@ -20,8 +20,8 @@ function test() { tab.linkedBrowser.addEventListener("load", (function(event) { tab.linkedBrowser.removeEventListener("load", arguments.callee, true); - if (BookmarkingUI._pendingStmt) { - waitForCondition(function() !BookmarkingUI._pendingStmt, finishTest, "BookmarkingUI held pending statement for too long"); + if (BookmarkingUI.status == BookmarkingUI.STATUS_UPDATING) { + waitForCondition(function() BookmarkingUI.status != BookmarkingUI.STATUS_UPDATING, finishTest, "BookmarkingUI was updating for too long"); } else { finishTest(); }