diff options
author | Patrick Luby <plubius@neooffice.org> | 2023-05-15 14:46:13 -0400 |
---|---|---|
committer | Patrick Luby <plubius@neooffice.org> | 2023-05-15 14:46:13 -0400 |
commit | 7aef7b51241abe565eb3fc93468a2bbb1e73c026 (patch) | |
tree | 44c7f499542db56e78230c7275a8080944b8162c | |
parent | Related to issue #5876: don't autorelease large NSStrings (diff) | |
download | online-iosbuildbreakagesmaster.tar.gz online-iosbuildbreakagesmaster.zip |
Fix issue #5876 by closing the document if the content process dies
iosbuildbreakagesmaster
Signed-off-by: Patrick Luby <plubius@neooffice.org>
Change-Id: I6fc887dd30328395d424a6371ba3603d2c09b607
-rw-r--r-- | ios/Mobile/DocumentViewController.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ios/Mobile/DocumentViewController.mm b/ios/Mobile/DocumentViewController.mm index bd1508087e..2e0c4c69b4 100644 --- a/ios/Mobile/DocumentViewController.mm +++ b/ios/Mobile/DocumentViewController.mm @@ -267,7 +267,9 @@ static IMP standardImpOfInputAccessoryView = nil; } - (void)webViewWebContentProcessDidTerminate:(WKWebView *)webView { - LOG_ERR("WebContent process terminated! What should we do?"); + // Fix issue #5876 by closing the document if the content process dies + [self bye]; + LOG_ERR("WebContent process terminated! Is closing the document enough?"); } - (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message { |