From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oB+oKRYwW2fkHQAAe85BDQ:P1 (envelope-from ) for ; Thu, 12 Dec 2024 18:48:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oB+oKRYwW2fkHQAAe85BDQ (envelope-from ) for ; Thu, 12 Dec 2024 19:48:54 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JVgcdeyl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734029334; a=rsa-sha256; cv=none; b=YWoNcuNv4euDF3HU7VObFNomYdyfBSEcf9dfHgoWT3znoM3+2CRFgncXIWYTxF/xxybwh1 U1F0yr57xrnTZ6ABWVA+mg2pGjw4RyZkgIwdVVM84HbuSYdlKkBX8mZfmv1pc0EyOlUpCE 4xWkpjGO3x1dG08TLvZzVJ0qlA36P6syZpau8TkgOVuRdBRgRsniZyrHHQrUT5esYpFQRx kOqAw1UXjJ8R6ZPdmQ+foOHFOduijIfieYVc0XFQM7kxomxXUxBmB0UHkgICDxDRtKaZID ABH6KzyQERWP96SOiJQHXSw617smuGE3yWeDv4y8RIeBN6It2kkiNKJ4fuSnMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JVgcdeyl; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734029334; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=secHRGgIouvzAfYM37m7ST5Bt2ywZ5V9u4oIyVu1XEM=; b=LUKijU+NSlGMUiJwJhtqq7SPXbZsX2/Ey96GNjBRLmfWoZc/lMmT+6t8fIrza9m4iZ7SmU GymCZGYzRD7uWY+9Y9RQvBngnPkLJ+O9azhxk/6W6DcNo7MAoXRnYJY8g8dTtni9VYYVvk doQnjB3rcrqB0Df9xN1QT39UHCMjLs/es/oeovmPiCkMo2Aot2MzPkKHJJ961zxqvJuJT1 sw/miccBqvVQCYxESVXA52ktsrADhihiOC2Wabc3F8aVLyd8PzFjGFNHRgdMhVMiA3NDke p52pj8UY7o8spcA2gUVIc+o+u4osy0ESDYFo2rPI7KkqK9upNustTLlapKaY0Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 91EC478E6F for ; Thu, 12 Dec 2024 19:48:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLoEH-0001Xl-KK; Thu, 12 Dec 2024 13:48:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLoEG-0001XT-1G for emacs-orgmode@gnu.org; Thu, 12 Dec 2024 13:48:04 -0500 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLoEE-000485-3C for emacs-orgmode@gnu.org; Thu, 12 Dec 2024 13:48:03 -0500 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-21670dce0a7so11157985ad.1 for ; Thu, 12 Dec 2024 10:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734029280; x=1734634080; darn=gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=secHRGgIouvzAfYM37m7ST5Bt2ywZ5V9u4oIyVu1XEM=; b=JVgcdeylCEmKJbpIV9yHd4/w19u/D8CulfQfR4XcpJo1VZ8R5hr5EMRJxCyUPZwPlb maY2S56x5v9N5y7/SytXRYatCToxMOWiO0qtqDuCpZR4nPnma+BbSj2PiKl346hZ1Dbn jnl9cHq6najkz0XS4iJqIJMSp4fqI2RLH5FjpXfk36P4e4Xqw6XjZBE6qMPk4dTWSaWT bxnY1lwaEebHDuo/rJNUbcnBoUQT9S5+ZEBUguLzcmPe48WxpsdA1Ck63VBM3jgXQb4y q843IIJkKc1OFVqmPM9zUXcxK4PfsSH7nHPBo2U+pzkMq6pDM3/9fHbeObCK4BhMWzzz jFQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734029280; x=1734634080; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=secHRGgIouvzAfYM37m7ST5Bt2ywZ5V9u4oIyVu1XEM=; b=hDtSVvbEHsXUKVkJURdFsz99w0iW9tk07x73D2809oSofwIiSkveJ7YGctAsg/RK+I ZtA07rLT70JhK9ZgT1CWgs+Yh7NLmJi0n1f1WWRL6QTXOvgdN68JL8+xeocFUZRrlgrj W3alWZRHyL4MD+9sDiMgxgGJk7VpjI8rJxJjeDtsXlza30G3LNPcm1iqszuzUdaBUncs oGyw+tfXMB8GR3LRzl2Xphd4PihTUlgqlNUoy6yYY5gETPSgBC+qeVUuLHSZuFWB65E/ IgZz+ZnMQbMcEjH56L9051ZfwcYdvCVAQTgv19+hAcfAmNbqAn4vbZFvbtC8jXHhASWl rASA== X-Gm-Message-State: AOJu0YyUnsLg9rR3OvX8inx/5a0uj5UU1i7PS1yfZFmjVq2Od9jmbmpl NVBeslcpB7Nn0nhiNy9EEpzZZ3Z0eFx4o6yU5KHh085s0SLVlwJZzvWbo9+I X-Gm-Gg: ASbGncvRA7OeJWQlhwABILrCnkNlfcbgTe3Qg2QiIiIPvZmiCsVQp3UTpBGZQQSvqs/ pJsIc4zuKmnNst/fPZLzXm0ux+Kc7wALAn64869WTtM15jnucrsrFmNh9eDF/uT49ccqoGPLhl2 px/04uDFYJNp1Kl+Oern2GuR1iMQsi2JrTppHcuoJDPlI3Mc6OjiHSG90MMy45kL7Rmz/9N8sfd UQigy0aEcZ8bnZiXMRwQ7GxvZVokROTNY4JioqK0Pg4ZmyHGuGSPnQ= X-Google-Smtp-Source: AGHT+IG90xTR2Wq/fhMBOfbhxQwSi4en5E3HSvlsyQ+FLkYh4f81HVOOaZV7qyDrp6GwDOD/oUdvNw== X-Received: by 2002:a17:902:e806:b0:215:603e:2141 with SMTP id d9443c01a7336-21778535661mr124474295ad.19.1734029280154; Thu, 12 Dec 2024 10:48:00 -0800 (PST) Received: from rd-t460 ([2402:d000:8120:2a48:1313:6926:6fa7:7ecb]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2163b1f86e9sm81839325ad.275.2024.12.12.10.47.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Dec 2024 10:47:59 -0800 (PST) From: Rehan Deen To: emacs-orgmode@gnu.org Subject: Re: [BUG] Org-protocol bookmarklets in Firefox behaving badly after recent upgrade [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)] In-Reply-To: <366e2a83-3703-40fd-b8eb-f5746a17864d@gmail.com> (Max Nikulin's message of "Thu, 12 Dec 2024 21:14:26 +0700") References: <87pllx7219.fsf@gmail.com> <9aea6ebe-66a2-47d6-a7cc-a7ad9e8af284@gmail.com> <366e2a83-3703-40fd-b8eb-f5746a17864d@gmail.com> User-Agent: mu4e 1.12.7; emacs 29.4 Date: Fri, 13 Dec 2024 00:17:57 +0530 Message-ID: <878qsk68ma.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=rehan.deen@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 91EC478E6F X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.41 X-Spam-Score: -6.41 X-TUID: PJQCNgejLlED > Please, reply to the list. Apologies. > I hope, you used the full expression instead of ellipsis. Yes, I doubt it would have "worked" otherwise (in the sense that the link would not have been captured). > I forgot about > "+new", so it should be with another variant of parenthesis: > javascript:void(location.href='org-protocol:...) > > The idea is to discard a string returned by the assignment operator. > > Try to open web developer tools [F12] and switch to console. You might > notice some error messages. Thanks, that works and is consistent with what I thought was happening -- I was unsure of the syntax here. Yes, the "fix" I had before did produce errors in the console, which presumably also displaced the 'org-protocol:...' string. Not sure what upgrade to the browser has caused this string to be rendered now ... > You may try > https://github.com/vifon/org-protocol-for-firefox/ > that uses another method to launch external protocol handler. > > Personally I am interested in extracting as much page metadata as > possible, so bookmarklets and simple extensions is not an option. > > In future, I hope, it is better to avoid org-protocol.el hack with an > advice and rely on the new `server-eval-args-left' feature. That extension looks useful -- though I am currently interested in extracting only a certain amount of information from pages. But I take your point about the security risk.