Reviewed by Kevin.
[WebKit-https.git] / WebKit / WebView.subproj / WebBaseResourceHandleDelegate.m
index 383f0f0..0c68801 100644 (file)
 
 - (void)connectionDidFinishLoading:(NSURLConnection *)con
 {
-    ASSERT(con == connection);
+    // don't worry about checking connection consistency if this load
+    // got cancelled while finishing.
+    ASSERT(cancelledFlag || con == connection);
     [self didFinishLoading];
 }