-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wpelauncher: automatic restart webprocess on crash
Signed-off-by: Carlos Alberto Lopez Perez <[email protected]>
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
recipes-browser/wpelauncher/wpelauncher/0001-Automatic-restart-the-WebProcess-on-crash.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 748f450a9a2ffc3b00550e2c818d2829ec73441c Mon Sep 17 00:00:00 2001 | ||
From: Carlos Alberto Lopez Perez <[email protected]> | ||
Date: Mon, 16 Oct 2017 17:36:06 +0200 | ||
Subject: [PATCH] Automatic restart the WebProcess on crash | ||
|
||
--- | ||
launcher/main.cpp | 6 +++++- | ||
1 file changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/launcher/main.cpp b/launcher/main.cpp | ||
index 74307ed..4a648f9 100644 | ||
--- a/launcher/main.cpp | ||
+++ b/launcher/main.cpp | ||
@@ -69,7 +69,11 @@ WKPageNavigationClientV0 s_navigationClient = { | ||
nullptr, // renderingProgressDidChange | ||
nullptr, // canAuthenticateAgainstProtectionSpace | ||
nullptr, // didReceiveAuthenticationChallenge | ||
- nullptr, // webProcessDidCrash | ||
+ // webProcessDidCrash | ||
+ [](WKPageRef page, const void*) { | ||
+ fprintf(stderr, "WARNING: WebProcess crashed: restarting it ...\n"); | ||
+ WKPageReload(page); | ||
+ }, | ||
nullptr, // copyWebCryptoMasterKey | ||
nullptr, // didBeginNavigationGesture | ||
nullptr, // willEndNavigationGesture | ||
-- | ||
2.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters