RESOLVED FIXED146705
prevent load errors with invalid requests
https://bugs.webkit.org/show_bug.cgi?id=146705
Summary prevent load errors with invalid requests
Alex Christensen
Reported 2015-07-07 17:40:08 PDT
ResourceLoader::cannotShowURLError() uses m_request. In ResourceLoader::willSendRequest it is not set before cannotShowURLError is called. This is causing crashes, especially with content blocking.
Attachments
Patch (1.57 KB, patch)
2015-07-07 17:41 PDT, Alex Christensen
no flags
Archive of layout-test-results from ews102 for mac-mavericks (531.63 KB, application/zip)
2015-07-07 18:14 PDT, Build Bot
no flags
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (575.99 KB, application/zip)
2015-07-07 18:20 PDT, Build Bot
no flags
Patch (3.65 KB, patch)
2015-07-08 11:55 PDT, Alex Christensen
no flags
Patch (7.52 KB, patch)
2015-07-08 18:21 PDT, Alex Christensen
no flags
Patch (5.13 KB, patch)
2015-07-08 18:32 PDT, Alex Christensen
no flags
Patch (8.98 KB, patch)
2015-07-09 10:31 PDT, Alex Christensen
no flags
Patch (8.97 KB, patch)
2015-07-09 10:40 PDT, Alex Christensen
beidson: review+
commit-queue: commit-queue-
Alex Christensen
Comment 1 2015-07-07 17:41:44 PDT
Oliver Hunt
Comment 2 2015-07-07 17:47:01 PDT
Comment on attachment 256338 [details] Patch What's the effect on this if something subsequently looks at the request? Previously m_request would remain null, but now there will be a request present.
Oliver Hunt
Comment 3 2015-07-07 17:47:59 PDT
CC'ing brady as he knows about these things
Build Bot
Comment 4 2015-07-07 18:14:46 PDT
Comment on attachment 256338 [details] Patch Attachment 256338 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/5846646105571328 New failing tests: http/tests/misc/will-send-request-returns-null-on-redirect.html
Build Bot
Comment 5 2015-07-07 18:14:49 PDT
Created attachment 256341 [details] Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 6 2015-07-07 18:20:06 PDT
Comment on attachment 256338 [details] Patch Attachment 256338 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5544045258473472 New failing tests: http/tests/misc/will-send-request-returns-null-on-redirect.html
Build Bot
Comment 7 2015-07-07 18:20:09 PDT
Created attachment 256342 [details] Archive of layout-test-results from ews106 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Brady Eidson
Comment 8 2015-07-07 20:42:59 PDT
Out of curiosity, is there a rdar: for this one?
Oliver Hunt
Comment 9 2015-07-08 08:34:18 PDT
<rdar://problem/20855444> Vector overflow in loader code seems to occur when declarative blocks resource
Oliver Hunt
Comment 10 2015-07-08 08:36:10 PDT
Derp. I'm not actually convinced that this null deref is actually the root of the problem, but maybe it is?
Oliver Hunt
Comment 11 2015-07-08 08:46:09 PDT
(In reply to comment #10) > Derp. > > ... but maybe it is? This is because we now auto clear RefPtrs so it's possible we were previously following a dead (unclear) RefPtr into the weeds in some way.
Alex Christensen
Comment 12 2015-07-08 11:55:07 PDT
Alex Christensen
Comment 13 2015-07-08 18:21:48 PDT
Alex Christensen
Comment 14 2015-07-08 18:32:46 PDT
Brady Eidson
Comment 15 2015-07-08 20:31:52 PDT
Comment on attachment 256444 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256444&action=review I think this change is great! Layouttest? > Source/WebCore/loader/ResourceLoader.cpp:325 > - > + You should really configure Xcode to trim whitespace on empty lines.
Alex Christensen
Comment 16 2015-07-09 10:31:15 PDT
Chris Dumez
Comment 17 2015-07-09 10:38:38 PDT
Comment on attachment 256485 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256485&action=review > Source/WebCore/loader/NetscapePlugInStreamLoader.h:66 > + virtual bool isPlugInStreamLoader() override final { return true; } The class is already marked as final so having final here is redundant.
Alex Christensen
Comment 18 2015-07-09 10:40:03 PDT
WebKit Commit Bot
Comment 19 2015-07-09 11:25:14 PDT
Comment on attachment 256487 [details] Patch Rejecting attachment 256487 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-01', 'validate-changelog', '--check-oops', '--non-interactive', 256487, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit /Volumes/Data/EWS/WebKit/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output: http://webkit-queues.appspot.com/results/5704332095782912
Alex Christensen
Comment 20 2015-07-09 11:37:55 PDT
Note You need to log in before you can comment on or make changes to this bug.