RESOLVED FIXED143414
[Content Filtering] Tell the filter about requests and redirects
https://bugs.webkit.org/show_bug.cgi?id=143414
Summary [Content Filtering] Tell the filter about requests and redirects
Andy Estes
Reported 2015-04-05 01:59:37 PDT
[Content Filtering] Tell the filter about requests and redirects
Attachments
Patch (27.35 KB, patch)
2015-04-05 02:15 PDT, Andy Estes
darin: review+
Andy Estes
Comment 1 2015-04-05 02:01:08 PDT
Andy Estes
Comment 2 2015-04-05 02:15:13 PDT
WebKit Commit Bot
Comment 3 2015-04-05 02:17:45 PDT
Attachment 250153 [details] did not pass style-queue: ERROR: Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm:85: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 1 in 30 files If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 4 2015-04-05 13:15:19 PDT
Comment on attachment 250153 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250153&action=review > Source/WebCore/loader/DocumentLoader.cpp:541 > + ASSERT(!newRequest.isNull()); Why do we assert this rather than handling this and having it cause cancellation/failure?
Andy Estes
Comment 5 2015-04-05 13:38:39 PDT
Comment on attachment 250153 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=250153&action=review >> Source/WebCore/loader/DocumentLoader.cpp:541 >> + ASSERT(!newRequest.isNull()); > > Why do we assert this rather than handling this and having it cause cancellation/failure? ContentFilter::willSendRequest() blocks by scheduling a substitute data load which cancels the in-progress load, but now that you mention it, it would make more sense to actually null out newRequest and cancel immediately. I'll do that instead.
Andy Estes
Comment 6 2015-04-05 17:24:39 PDT
Myles C. Maxfield
Comment 7 2015-04-06 09:40:27 PDT
Andy Estes
Comment 8 2015-04-06 17:31:17 PDT
Note You need to log in before you can comment on or make changes to this bug.