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

Issue 242024: TestOverrideEncoding hanging is because TabProxy::WaitForNavigation can not g... (Closed)

Created:
11 years, 2 months ago by Johnny(Jianning) Ding
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

TestOverrideEncoding hanging is because TabProxy::WaitForNavigation can not get reply if current last last_navigation_time for tab _tracker is great than the input last_navigation_time. See AutomationProvider::WaitForNavigation, it is handled by IPC_MESSAGE_HANDLER_DELAY_REPLY, which means the message handler need to send the reply message by itself. According to current WaitForNavigation logic, if current last last_navigation_time for tab _tracker is less than the input last_navigation_time, the replay will be sent by NavigationNotificationObserver. Otherwise, the reply will never be sent. So if somehow the test machine is slow, the navigation has happened before calling AutomationProvider::WaitForNavigation, the caller will never get reply. That is why TestOverrideEncoding hangs sometimes. Please refer to http://chrome-svn/viewvc/chrome?view=rev&revision=9585 to see how the logic was changed before. The problem also happened on other two places. BUG=23121 TEST=BrowserEncodingTest.TestOverrideEncoding

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/browser_encoding_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Johnny(Jianning) Ding
11 years, 2 months ago (2009-09-27 14:58:05 UTC) #1
Paweł Hajdan Jr.
LGTM, with one comment. http://codereview.chromium.org/242024/diff/1/3 File chrome/browser/automation/automation_provider.cc (right): http://codereview.chromium.org/242024/diff/1/3#newcode1751 Line 1751: if (!wait_for_navigation || !success) ...
11 years, 2 months ago (2009-09-29 17:27:54 UTC) #2
ananta
LGTM
11 years, 2 months ago (2009-09-29 17:33:01 UTC) #3
Johnny(Jianning) Ding
Thanks, Paweł! I have updated the CL. Please take another look. I will land it ...
11 years, 2 months ago (2009-10-01 15:09:53 UTC) #4
Paweł Hajdan Jr.
11 years, 2 months ago (2009-10-01 22:35:47 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698