See radar 29910273. SubresourceLoader::willSendRequestInternal is calling ResourceLoader::willSendRequestInternal. App delegate code may cancel the load which will make m_resource null.
Created attachment 298692 [details] Patch
Any idea how to add a test for it? Ideally, we would need to have some delegate code cancelling the redirect load. Maybe we can simulate this code path using content extension blockers?
Comment on attachment 298692 [details] Patch Code change looks fine. I do think it's worth following up all leads on trying to get a test for this.
Comment on attachment 298692 [details] Patch Clearing flags on attachment: 298692 Committed r210679: <http://trac.webkit.org/changeset/210679>
All reviewed patches have been landed. Closing bug.
Comment on attachment 298692 [details] Patch Can we make a test that covers this?