Bug 21576

Summary: Fix a race in fast/history/history_reload.html
Product: WebKit Reporter: Pam Greene (IRC:pamg) <pam>
Component: Tools / TestsAssignee: Pam Greene (IRC:pamg) <pam>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Fixed test timothy: review+

Pam Greene (IRC:pamg)
Reported 2008-10-13 12:34:49 PDT
The fast/history/history_reload.html test has a potential race condition caused by higher-resolution timers. I don't know exactly what threshold it takes to expose the problem, but it's worth removing anyway. Each time the subframe loads, the onclose handler calls layoutTestController.notifyDone via setTimeout(0). If that gets fired before the history.go() completes, the test appears to have failed. One solution is to always use two passes in the test, and not complete until the second one.
Attachments
Fixed test (1.97 KB, patch)
2008-10-13 12:47 PDT, Pam Greene (IRC:pamg)
timothy: review+
Pam Greene (IRC:pamg)
Comment 1 2008-10-13 12:47:23 PDT
Created attachment 24322 [details] Fixed test No change to expected results.
Pam Greene (IRC:pamg)
Comment 2 2008-10-17 11:08:06 PDT
Landed in r37657.
Note You need to log in before you can comment on or make changes to this bug.