RESOLVED FIXED 237062
PingLoader is failing to call completion handler in error case
https://bugs.webkit.org/show_bug.cgi?id=237062
Summary PingLoader is failing to call completion handler in error case
Brent Fulgham
Reported 2022-02-22 15:18:29 PST
WebKit is failing to trigger the completion handler when PingLoad handles a redirect that results in an error. <rdar://50157253>
Attachments
Patch (1.59 KB, patch)
2022-02-22 15:26 PST, Brent Fulgham
no flags
Patch for landing (1.96 KB, patch)
2022-02-22 15:32 PST, Brent Fulgham
no flags
Brent Fulgham
Comment 1 2022-02-22 15:26:24 PST
Chris Dumez
Comment 2 2022-02-22 15:31:26 PST
Comment on attachment 452907 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452907&action=review > Source/WebKit/NetworkProcess/PingLoad.cpp:143 > + completionHandler({ }); Is there a reason we need to call this before the didFinish() call? Would seem more logical the other way around for me.
Brent Fulgham
Comment 3 2022-02-22 15:32:18 PST
Comment on attachment 452907 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452907&action=review >> Source/WebKit/NetworkProcess/PingLoad.cpp:143 >> + completionHandler({ }); > > Is there a reason we need to call this before the didFinish() call? > Would seem more logical the other way around for me. I just made this call int he same place as the previous error section (immediately above). I'll change it before landing.
Brent Fulgham
Comment 4 2022-02-22 15:32:51 PST
Created attachment 452908 [details] Patch for landing
EWS
Comment 5 2022-02-22 16:28:13 PST
Committed r290338 (247659@main): <https://commits.webkit.org/247659@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 452908 [details].
Darin Adler
Comment 6 2022-02-22 17:11:58 PST
Can we add some tests?
Note You need to log in before you can comment on or make changes to this bug.