RESOLVED FIXED 78810
CachedRawResource may send a chunk of data twice
https://bugs.webkit.org/show_bug.cgi?id=78810
Summary CachedRawResource may send a chunk of data twice
Vsevolod Vlasov
Reported 2012-02-16 06:42:28 PST
The following layout test is flaky on Chromium (Linux, Vista) inspector/debugger/script-formatter-console.html This was caused by http://trac.webkit.org/changeset/107672/ http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=inspector%2Fdebugger%2Fscript-formatter-console.html
Attachments
patch (12.69 KB, patch)
2012-02-22 12:32 PST, Nate Chapin
no flags
Merged to trunk (12.83 KB, patch)
2012-02-22 13:23 PST, Nate Chapin
no flags
Vsevolod Vlasov
Comment 1 2012-02-16 06:59:24 PST
Marked as flaky: Committed r107930: <http://trac.webkit.org/changeset/107930>
Nate Chapin
Comment 2 2012-02-22 12:31:49 PST
It appears that, if data comes in while a CachedRawResourceCallback timer is pending, we send that data to the client right away, then we send the entirety of the data to the client when the timer fires. So in the following series of events: responseReceived data - chunk A data - chunk B addClient - CachedRawResourceCallback created data - chunk C Timer fires - send all data so far to client data - chunk D The client receives CABCD instead of ABCD.
Nate Chapin
Comment 3 2012-02-22 12:32:39 PST
Nate Chapin
Comment 4 2012-02-22 13:23:24 PST
Created attachment 128274 [details] Merged to trunk
WebKit Review Bot
Comment 5 2012-02-22 16:38:04 PST
Comment on attachment 128274 [details] Merged to trunk Clearing flags on attachment: 128274 Committed r108573: <http://trac.webkit.org/changeset/108573>
WebKit Review Bot
Comment 6 2012-02-22 16:38:09 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.