NEW 138848
Don't let web process go to suspended state if there is active network request.
https://bugs.webkit.org/show_bug.cgi?id=138848
Summary Don't let web process go to suspended state if there is active network request.
Yongjun Zhang
Reported 2014-11-18 15:54:33 PST
Attachments
Also acquire the activity token when we have active network requests on progress. (3.76 KB, patch)
2014-11-18 16:25 PST, Yongjun Zhang
thorton: review-
Yongjun Zhang
Comment 1 2014-11-18 16:25:23 PST
Created attachment 241829 [details] Also acquire the activity token when we have active network requests on progress.
Tim Horton
Comment 2 2014-11-18 16:35:19 PST
Comment on attachment 241829 [details] Also acquire the activity token when we have active network requests on progress. It seems very wrong to keep the Web process from going to sleep for very long XHR/etc., seems like this will just result in a lot of very awake processes consuming all of your power, no?
Yongjun Zhang
Comment 3 2014-11-18 16:41:23 PST
(In reply to comment #2) > Comment on attachment 241829 [details] > Also acquire the activity token when we have active network requests on > progress. > > It seems very wrong to keep the Web process from going to sleep for very > long XHR/etc., seems like this will just result in a lot of very awake > processes consuming all of your power, no? With the changes in https://bugs.webkit.org/show_bug.cgi?id=138582, we won't track long XHR or sub-resources after the main frame has loaded, and these sub-resources won't keep the process awake.
Alexey Proskuryakov
Comment 4 2014-11-18 22:24:16 PST
It may be worth re-titling the bug for accuracy, "active network request" may not be the best description for what progress tracker does.
Yongjun Zhang
Comment 5 2014-11-19 21:49:52 PST
This patch has the risk of holding web process too long if there is a long lasting XHR that has started before main frame has loaded. I will look at a different approach.
Note You need to log in before you can comment on or make changes to this bug.