RESOLVED FIXED 168832
[iOS][WK2] Disable network cache speculative revalidation / loading in low power mode
https://bugs.webkit.org/show_bug.cgi?id=168832
Summary [iOS][WK2] Disable network cache speculative revalidation / loading in low po...
Chris Dumez
Reported 2017-02-24 09:52:04 PST
Disable network cache speculative revalidation / loading in low power mode on iOS to save battery.
Attachments
Patch (18.64 KB, patch)
2017-02-24 11:16 PST, Chris Dumez
no flags
Radar WebKit Bug Importer
Comment 1 2017-02-24 09:52:39 PST
Chris Dumez
Comment 2 2017-02-24 11:16:04 PST
Antti Koivisto
Comment 3 2017-02-24 11:28:17 PST
Comment on attachment 302676 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=302676&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:85 > + m_speculativeLoadManager = nullptr; Have you verified that SpeculativeLoadManager can deal with being deleted while having ongoing requests? I think it is a new scenario. It could be tested with simulated repeated switches to low power and back while browsing.
Chris Dumez
Comment 4 2017-02-24 11:39:54 PST
(In reply to comment #3) > Comment on attachment 302676 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=302676&action=review > > > Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp:85 > > + m_speculativeLoadManager = nullptr; > > Have you verified that SpeculativeLoadManager can deal with being deleted > while having ongoing requests? I think it is a new scenario. It could be > tested with simulated repeated switches to low power and back while browsing. I'll try with simulated switches. I tried with manual ones but triggering them during a load is not super easy.
Chris Dumez
Comment 5 2017-02-24 11:53:07 PST
Comment on attachment 302676 [details] Patch Clearing flags on attachment: 302676 Committed r212965: <http://trac.webkit.org/changeset/212965>
Chris Dumez
Comment 6 2017-02-24 11:53:13 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.