Bug 189148

Summary: WKNavigation.ProcessCrashDuringCallback is failing on iOS
Product: WebKit Reporter: Sihui Liu <sihui_liu>
Component: Tools / TestsAssignee: Sihui Liu <sihui_liu>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, lforschler, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=191783
Bug Depends on: 189037    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Description Sihui Liu 2018-08-29 23:38:23 PDT
From https://bugs.webkit.org/show_bug.cgi?id=189037, we know:
1. Errors can occur in completion handler of [webView _getContentsAsStringWithCompletionHandler] because web processes are killed.
So we should just keep the change of expectation in 189037.
2. webView can be destroyed before web process exits, as we receive an error WKErrorWebViewInvalidated instead of WKErrorWebContentProcessTerminated. 
So we need to remove "webView = nullptr;".
Comment 1 Sihui Liu 2018-08-29 23:50:11 PDT
Created attachment 348488 [details]
Patch
Comment 2 WebKit Commit Bot 2018-08-30 10:03:09 PDT
Comment on attachment 348488 [details]
Patch

Clearing flags on attachment: 348488

Committed r235509: <https://trac.webkit.org/changeset/235509>
Comment 3 WebKit Commit Bot 2018-08-30 10:03:10 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2018-08-31 08:56:58 PDT
<rdar://problem/43941972>