Thanks Valentin for the rebase! (I also rebased the additional patch from Michal) --- Similarly to (:tanhengyeow, comment #52), I can't get any request that would have set `isRacing` flag to true. I applied: 1) Bug 1358038 - Add isRacing() to nsICacheInfoChannel r=michal! The platform API implementation 2) force_random_rcwn.patch Helper from Michal 3) Bug 1358038 - Add "Race Cache With Network" status. r=Honza The UI changes in DevTools - I tried to set the following prefs: network.http.rcwn.enabled = true network.http.rcwn.max_wait_before_racing_ms It looks like `nsHTTPChannel.OnCacheEntryCheck` is only called 3 times at the beginning (Firefox start), but never when opening DevTools and loading a page. `channel.isRacing()` returns false all the time for me. This is what I am doing: 1) Apply all the patches above, set prefs above 2) Add the following log into network-response-listeners.js, in _getSecurityInfo method: `dump("Racing: " + isRacing)`; 2) Start Firefox, open DevTools, load google.com 3) Select the Network panel, reload the page 4) Observe the system console and look for the log from step #2 => It always prints false @Valentin, could you please check these steps? Is there anything I am doing wrong? Does that work for you? Honza
Bug 1358038 Comment 61 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Thanks Valentin for the rebase! (I also rebased the additional patch from Michal) --- Similarly to (:tanhengyeow, comment #52), I can't get any request that would have set `isRacing` flag to true. I applied: 1) Bug 1358038 - Add isRacing() to nsICacheInfoChannel r=michal! The platform API implementation 2) force_random_rcwn.patch Helper from Michal 3) Bug 1358038 - Add "Race Cache With Network" status. r=Honza The UI changes in DevTools I tried to set the following prefs: network.http.rcwn.enabled = true network.http.rcwn.max_wait_before_racing_ms It looks like `nsHTTPChannel.OnCacheEntryCheck` is only called 3 times at the beginning (Firefox start), but never when opening DevTools and loading a page. `channel.isRacing()` returns false all the time for me. This is what I am doing: 1) Apply all the patches above, set prefs above 2) Add the following log into network-response-listeners.js, in _getSecurityInfo method: `dump("Racing: " + isRacing)`; 2) Start Firefox, open DevTools, load google.com 3) Select the Network panel, reload the page 4) Observe the system console and look for the log from step #2 => It always prints false @Valentin, could you please check these steps? Is there anything I am doing wrong? Does that work for you? Honza