RESOLVED FIXED Bug 139350
Stop using ResourceRequest::cachePolicy() in FrameLoader::subresourceCachePolicy()
https://bugs.webkit.org/show_bug.cgi?id=139350
Summary Stop using ResourceRequest::cachePolicy() in FrameLoader::subresourceCachePol...
Chris Dumez
Reported 2014-12-06 20:50:34 PST
Stop using ResourceRequest::cachePolicy() in FrameLoader::subresourceCachePolicy() and use m_loadType instead. ResourceRequest::cachePolicy() is meant to be passed to the network stack, and isn't supposed to be used as input inside WebCore [1]. [1] https://bugs.webkit.org/show_bug.cgi?id=139263#c2
Attachments
Patch (1.93 KB, patch)
2014-12-06 20:53 PST, Chris Dumez
no flags
Patch (2.22 KB, patch)
2014-12-08 10:01 PST, Chris Dumez
no flags
Chris Dumez
Comment 1 2014-12-06 20:53:07 PST
Antti Koivisto
Comment 2 2014-12-08 06:08:09 PST
Comment on attachment 242732 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=242732&action=review > Source/WebCore/loader/FrameLoader.cpp:2160 > + default: > + return CachePolicyVerify; > + } It would be better to list all cases rather than use default.
Chris Dumez
Comment 3 2014-12-08 10:01:00 PST
WebKit Commit Bot
Comment 4 2014-12-08 10:41:39 PST
Comment on attachment 242823 [details] Patch Clearing flags on attachment: 242823 Committed r176953: <http://trac.webkit.org/changeset/176953>
WebKit Commit Bot
Comment 5 2014-12-08 10:41:43 PST
All reviewed patches have been landed. Closing bug.
Csaba Osztrogonác
Comment 6 2014-12-08 11:22:23 PST
(In reply to comment #4) > Comment on attachment 242823 [details] > Patch > > Clearing flags on attachment: 242823 > > Committed r176953: <http://trac.webkit.org/changeset/176953> It broke the EFL build, because gcc need some love - an unreachable return. I'm wondering why EFL EWS didn't notice this warning ... ../../Source/WebCore/loader/FrameLoader.cpp: In member function ‘WebCore::CachePolicy WebCore::FrameLoader::subresourceCachePolicy() const’: ../../Source/WebCore/loader/FrameLoader.cpp:2167:1: error: control reaches end of non-void function [-Werror=return-type] } ^ Fix is coming.
Csaba Osztrogonác
Comment 7 2014-12-08 11:32:24 PST
Note You need to log in before you can comment on or make changes to this bug.