This situation can happen when using the network process, because the ReceivedCancellation message can be received when the resource loader has already been removed, but the authentication challenge still has a reference to the ResourceHandleClient. $ WEBKIT_USE_NETWORK_PROCESS=1 Programs/WebKit2APITests/TestAuthentication /webkit2/WebKitWebView/authentication-request: OK /webkit2/WebKitWebView/authentication-cancel: OK /webkit2/WebKitWebView/authentication-load-cancelled: (process:1716): libsoup-CRITICAL **: soup_session_unpause_message: assertion 'item != NULL' failed OK /webkit2/WebKitWebView/authentication-failure: OK /webkit2/WebKitWebView/authentication-no-credential: OK /webkit2/WebKitWebView/authentication-storage: (process:1843): libsoup-CRITICAL **: soup_session_unpause_message: assertion 'item != NULL' failed
Created attachment 220106 [details] Patch
Committed r161179: <http://trac.webkit.org/changeset/161179>