[epiphany] app-mode: Use shared secondary process model for web app mode
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] app-mode: Use shared secondary process model for web app mode
- Date: Tue, 14 Oct 2014 06:56:03 +0000 (UTC)
commit 27506cc00cff60ad4fb5a9ffb23f1d7383a1f3f0
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Tue Oct 14 08:51:57 2014 +0200
app-mode: Use shared secondary process model for web app mode
External links that might broke the app are opened in a external
browser, so better use a single web process for all web app windows.
embed/ephy-embed-shell.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 16a91e9..360bffd 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -586,7 +586,11 @@ ephy_embed_shell_setup_process_model (EphyEmbedShell *shell,
{
EphyPrefsProcessModel process_model;
- process_model = g_settings_get_enum (EPHY_SETTINGS_MAIN, EPHY_PREFS_PROCESS_MODEL);
+ if (ephy_embed_shell_get_mode (shell) == EPHY_EMBED_SHELL_MODE_APPLICATION)
+ process_model = EPHY_PREFS_PROCESS_MODEL_SHARED_SECONDARY_PROCESS;
+ else
+ process_model = g_settings_get_enum (EPHY_SETTINGS_MAIN, EPHY_PREFS_PROCESS_MODEL);
+
switch (process_model) {
case EPHY_PREFS_PROCESS_MODEL_SHARED_SECONDARY_PROCESS:
webkit_web_context_set_process_model (web_context, WEBKIT_PROCESS_MODEL_SHARED_SECONDARY_PROCESS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]