RESOLVED FIXED Bug 101872
NetworkProcess: Use an accurate shouldContentSniff value when creating ResourceHandles
https://bugs.webkit.org/show_bug.cgi?id=101872
Summary NetworkProcess: Use an accurate shouldContentSniff value when creating Resour...
Brady Eidson
Reported 2012-11-11 16:09:28 PST
NetworkProcess: Use accurate shouldContentSniff and RemoteNetworkingContext values when creating ResourceHandles
Attachments
Patch v1 (24.70 KB, patch)
2012-11-11 16:29 PST, Brady Eidson
sam: review-
Patch v2 (24.45 KB, patch)
2012-11-11 17:16 PST, Brady Eidson
no flags
Patch v3 - Just content sniffing (15.00 KB, patch)
2012-11-12 12:57 PST, Brady Eidson
ap: review+
Brady Eidson
Comment 1 2012-11-11 16:29:19 PST
Created attachment 173526 [details] Patch v1 This patch should work nicely. We might have to rethink the RemoteNetworkingContext messaging if it becomes problematic.
WebKit Review Bot
Comment 2 2012-11-11 16:31:53 PST
Attachment 173526 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebKit2/NetworkProcess/mac/RemoteNetworkingContext.h:44: The parameter name "connection" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 17 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 3 2012-11-11 17:03:54 PST
Comment on attachment 173526 [details] Patch v1 r- since I don't think the RemoteNetworkingContext needs a connection pointer.
Brady Eidson
Comment 4 2012-11-11 17:16:15 PST
Created attachment 173528 [details] Patch v2
Brady Eidson
Comment 5 2012-11-12 12:55:38 PST
Alexey and I discussed the RemoteNetworkingContext change in person. Repurposing this bug to be just about content sniffing.
Brady Eidson
Comment 6 2012-11-12 12:57:52 PST
Created attachment 173696 [details] Patch v3 - Just content sniffing
Alexey Proskuryakov
Comment 7 2012-11-12 13:10:39 PST
Comment on attachment 173696 [details] Patch v3 - Just content sniffing View in context: https://bugs.webkit.org/attachment.cgi?id=173696&action=review > Source/WebKit2/NetworkProcess/NetworkResourceLoadScheduler.h:29 > +#include <WebCore/ResourceLoaderOptions.h> I'm not sure if it's correct to use ResourceLoaderOptions in network process. There is no ResourceLoader here.
Brady Eidson
Comment 8 2012-11-12 13:31:55 PST
(In reply to comment #7) > (From update of attachment 173696 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=173696&action=review > > > Source/WebKit2/NetworkProcess/NetworkResourceLoadScheduler.h:29 > > +#include <WebCore/ResourceLoaderOptions.h> > > I'm not sure if it's correct to use ResourceLoaderOptions in network process. There is no ResourceLoader here. I think "ResourceLoaderOptions" is a misnomer for the file, and perhaps it should be called "ResourceLoadingOptions" That's the brave new world we're charting.
Brady Eidson
Comment 9 2012-11-12 13:58:10 PST
Note You need to log in before you can comment on or make changes to this bug.