Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Issue 6662001: ui_test_utils::NavigateToURLBlockUntilNavigationsComplete can be raced (Closed)

Created:
9 years, 9 months ago by gavinp
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

ui_test_utils::NavigateToURLBlockUntilNavigationsComplete can be raced I found in some prefetching safe browsing tests that chrome went so awesomely fast that events went by before NavigateToURL started observing them. And so I adapted the Windowed.... model to the NavigationNotificationObserver, and use that now in NavigateToURL in the current_tab case. BUG=75507 TEST=see http://codereview.chromium.org/6334131/ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77638

Patch Set 1 #

Total comments: 1

Patch Set 2 : track if the event loop is needed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -4 lines) Patch
M chrome/test/ui_test_utils.cc View 1 6 chunks +29 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
gavinp
While hacking on http://codereview.chromium.org/6334131/ I found I was racing tests. This CL fixes that for ...
9 years, 9 months ago (2011-03-09 21:42:58 UTC) #1
sky
http://codereview.chromium.org/6662001/diff/1/chrome/test/ui_test_utils.cc File chrome/test/ui_test_utils.cc (right): http://codereview.chromium.org/6662001/diff/1/chrome/test/ui_test_utils.cc#newcode87 chrome/test/ui_test_utils.cc:87: MessageLoopForUI::current()->Quit(); Doesn't this mean Quit may be invoked before ...
9 years, 9 months ago (2011-03-09 21:52:50 UTC) #2
gavinp
Thanks sky! Does this upload address those concerns?
9 years, 9 months ago (2011-03-09 22:17:18 UTC) #3
sky
LGTM
9 years, 9 months ago (2011-03-09 22:43:41 UTC) #4
Paweł Hajdan Jr.
9 years, 9 months ago (2011-03-10 16:06:58 UTC) #5
Gavin, thank you for detecting and fixing the issue. I'm afraid we have very
similar code in chrome/browser/automation (probably automation_observers.cc).
Could you take a look there? It could explain some weird bugs in ui_tests and
others.

Powered by Google App Engine
This is Rietveld 408576698