[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 686ce50 31/35: Rationalize creation decisions
From: |
Lars Ingebrigtsen |
Subject: |
master 686ce50 31/35: Rationalize creation decisions |
Date: |
Sat, 6 Nov 2021 22:02:00 -0400 (EDT) |
branch: master
commit 686ce501cb54ce64cabb3411cac2b3f0ea936c49
Author: Po Lu <luangruo@yahoo.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Rationalize creation decisions
* src/xwidget.c (webkit_create_cb): Only create a new widget if type
is OTHER.
---
src/xwidget.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/xwidget.c b/src/xwidget.c
index 0a6d95a..bf69f26 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -1012,16 +1012,13 @@ webkit_create_cb (WebKitWebView *webview,
switch (webkit_navigation_action_get_navigation_type (nav_action))
{
case WEBKIT_NAVIGATION_TYPE_OTHER:
- if (webkit_navigation_action_is_user_gesture (nav_action))
- return NULL;
-
return webkit_create_cb_1 (webview, user_data);
- case WEBKIT_NAVIGATION_TYPE_LINK_CLICKED:
- case WEBKIT_NAVIGATION_TYPE_FORM_SUBMITTED:
+
case WEBKIT_NAVIGATION_TYPE_BACK_FORWARD:
case WEBKIT_NAVIGATION_TYPE_RELOAD:
+ case WEBKIT_NAVIGATION_TYPE_FORM_SUBMITTED:
case WEBKIT_NAVIGATION_TYPE_FORM_RESUBMITTED:
- return webkit_create_cb_1 (webview, user_data);
+ case WEBKIT_NAVIGATION_TYPE_LINK_CLICKED:
default:
return NULL;
}
- master d97718c 17/35: Add a menu to xwidget-webkit, (continued)
- master d97718c 17/35: Add a menu to xwidget-webkit, Lars Ingebrigtsen, 2021/11/06
- master f1fbf87 20/35: Make the WebKit inspector available, Lars Ingebrigtsen, 2021/11/06
- master 7269bdd 21/35: Improve detail of load-changed xwidget events, Lars Ingebrigtsen, 2021/11/06
- master 32ec485 16/35: Redisplay xwidget view windows instead of just setting their size, Lars Ingebrigtsen, 2021/11/06
- master cd7158e 18/35: Add new tool-bar items to xwidget-webkit, Lars Ingebrigtsen, 2021/11/06
- master 8729ae2 19/35: Add xwidget-webkit-copy-selection-as-kill to the menu bar, Lars Ingebrigtsen, 2021/11/06
- master 1cc19d0 23/35: Add support for cursors in xwidget views, Lars Ingebrigtsen, 2021/11/06
- master cb45114 26/35: Make it safe to have non-xwidget views in xwidget-view-list, Lars Ingebrigtsen, 2021/11/06
- master 286467a 27/35: Add functions for performing searches on xwidgets, Lars Ingebrigtsen, 2021/11/06
- master 0be966f 30/35: Make "open in new window" from an xwidget's context menu work, Lars Ingebrigtsen, 2021/11/06
- master 686ce50 31/35: Rationalize creation decisions,
Lars Ingebrigtsen <=
- master 3e04f1f 33/35: Fix web inspector, Lars Ingebrigtsen, 2021/11/06
- master 969ce9d 34/35: Improve xwidget isearch visuals, Lars Ingebrigtsen, 2021/11/06
- master cd1f02e 25/35: Make xwidgets print nicer, Lars Ingebrigtsen, 2021/11/06
- master eabd735 32/35: Default to creating new related sessions, Lars Ingebrigtsen, 2021/11/06
- master 5b7ab89 35/35: Fix build on nextstep, Lars Ingebrigtsen, 2021/11/06