From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51716: 29.0.50; [PATCH] Expose xwidget navigation history to Lisp code Date: Tue, 09 Nov 2021 15:58:35 +0200 Message-ID: <8335o55t2s.fsf@gnu.org> References: <871r3p8r05.fsf.ref@yahoo.com> <871r3p8r05.fsf@yahoo.com> <83a6id5u7x.fsf@gnu.org> <87r1bp5tps.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5834"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51716@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 09 15:02:39 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkRhu-0001DZ-Pd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 15:02:38 +0100 Original-Received: from localhost ([::1]:56988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkRht-0003O0-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 09:02:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkReQ-000084-UD for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 08:59:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkReQ-0003Uy-2g for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 08:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkReQ-0000cv-10 for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 08:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Nov 2021 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51716 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51716-submit@debbugs.gnu.org id=B51716.16364663382399 (code B ref 51716); Tue, 09 Nov 2021 13:59:01 +0000 Original-Received: (at 51716) by debbugs.gnu.org; 9 Nov 2021 13:58:58 +0000 Original-Received: from localhost ([127.0.0.1]:33067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkReM-0000cd-6Q for submit@debbugs.gnu.org; Tue, 09 Nov 2021 08:58:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkReC-0000cD-2R for 51716@debbugs.gnu.org; Tue, 09 Nov 2021 08:58:56 -0500 Original-Received: from [2001:470:142:3::e] (port=40180 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkRe6-0003JI-Ox; Tue, 09 Nov 2021 08:58:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kY2enl2yhgpFHfOJ3anYDvxfZlr9+tFigU8IQHiRGQQ=; b=JCqV0r2noZZ8 SVmvXN8sleYcSwHncHAENc4eiLIuzZBPe6UWrx7iniceZdDDn8B3AnsaeizKe7zL8v3WLzE+5HU3h EwwCuXihe0ullKOjGwqbvY0sIB2jgZav6cZWhijc2fU2mi1KTjgeN99mV4D80hTlFB6kNt29Zedtz 6N2Dm5j2bvD4Vs3stJxBtLWFUvsyqwbINl5RLBXgDWGnTp63k0hvQ40NmaTnM2QUY1+Ji3BxCuimX YZPFwWYDo3AiVbUBE2UZ52pJ+kms8R5+F9kp0cdlEpRRUPPKwZmvpQau4Nx7Fcb4E0hwtBgDxnwjz ca2PSss7paBSj/gcHiPcfQ==; Original-Received: from [87.69.77.57] (port=3674 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkRe6-0004V1-Bf; Tue, 09 Nov 2021 08:58:42 -0500 In-Reply-To: <87r1bp5tps.fsf@yahoo.com> (message from Po Lu on Tue, 09 Nov 2021 21:44:47 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219458 Archived-At: > From: Po Lu > Cc: 51716@debbugs.gnu.org > Date: Tue, 09 Nov 2021 21:44:47 +0800 > > Eli Zaretskii writes: > > > Before I dive into the code, let me ask: why not use the usual Emacs > > history machinery for this? IOW, have some xwidget-specific history > > variable that would store the browsing history, and use that variable > > in conjunction with foo-prev and foo-next commands? Why do we need to > > reinvent the wheel for xwidgets, and why do that in C? > > WebKit stores navigation history specially. For instance, it implements > a feature where malicious (i.e. looping) redirects are not recorded in > history. This is not available from Lisp, as the signals exposed by > WebKitGTK are insufficient to keep track of that data. Further, I think > there is a way for web pages to tell WebKitGTK whether or not to record > themselves in history, which also cannot be implemented separately. > > It can only be done from C, because the necessary information is only > available in C. Please give more details, because I still have only a very vague idea of the problems you mention, and why they absolutely preclude mapping the browsing history into Lisp.