From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eK2bB0f8WmeibwAAe85BDQ:P1 (envelope-from ) for ; Thu, 12 Dec 2024 15:07:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id eK2bB0f8WmeibwAAe85BDQ (envelope-from ) for ; Thu, 12 Dec 2024 16:07:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=RhZnyu4V; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734016071; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=DTY8CZV4B2l0+I0tAGnoPOjHekzHyyngBIeEwyT5hpA=; b=uAixVFMy8j4l0jsro7iQCAegi7HaKtqCHK0w9takbq20HPlXLMGsnSYaZ6HzXKjXSTKayp waPoDuyjUQIEgkwG+5gjqcHWMRAjJS4y/0JD1TFBsc6NhtaDTxCEPh3TaJuDY6N6yV4jUA TohvJvTFMG8VXoJ/57PegMP3fBNILiCaRErGTcDDtzlyJQ2fz4G0n+OmVHIjIUvManbI1K sXIUZp4hpJUJg7jMIAij1l7gl1L2qrBuNv8/EiwxQuKdFRVI6xUT0eFDTAOGzA3xfuO1K+ uf9INKJclqgwCFlLyLn+t8HBqhD60I7qGrgarISNQI5cMxsU3Bk3m0blWDIs4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=RhZnyu4V; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734016071; a=rsa-sha256; cv=none; b=nuYY59ccerJOG16Y7G5Yj7F7ASwyUKD/iHed9anpL56yCSfnhYy04wA4rEaxiI3Tu2qJp7 QbGBxl1+yyWmmtnyKG3fqqPyeNj9491eqOc06Ocr3QFP6BCJ45Zif2SQFasOD4qy3eiBNG ufGsZSkYwXhyn7cURwHqTff7Hr2idfms4AwOnO/3/1fWF4ut7mMUZv7g0iD2lyy12Aa56o N4wWXBcGJB6Iyy6pvak2trMdc1x+E7YMfBLpEoue+K1wbIKSv0wj3+CsLFqQJpL8AWM04C QVNM5NdZLph0hXW3PydcBV0q159wmrE3L67xl9kTbV5wMfg6OI55NNo2PHxmug== 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 F369A89465 for ; Thu, 12 Dec 2024 16:07:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLjxg-0007oj-Dh; Thu, 12 Dec 2024 09:14:40 -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 1tLjxd-0007jq-AT for emacs-orgmode@gnu.org; Thu, 12 Dec 2024 09:14:37 -0500 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLjxX-0003DR-OP for emacs-orgmode@gnu.org; Thu, 12 Dec 2024 09:14:37 -0500 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-54021daa6cbso680867e87.0 for ; Thu, 12 Dec 2024 06:14:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734012868; x=1734617668; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc :content-language:references:to:from:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=DTY8CZV4B2l0+I0tAGnoPOjHekzHyyngBIeEwyT5hpA=; b=RhZnyu4VWWgFfuO1tKJyOk1zol27irDeme7pZlU2QkXYeYKNoDBbo/I8j1d/nGfArS mw7heBuMkVLa8l1GoL0SrwLTs+FcACMQ0wXooX57z5+fhcsGndAVxEIzAPmk5QdlDE4A BI6/C8wMxCyKS9+998nTbcs6RGBcEfXT5qj6R9NjDbMPqaDvOFshfgEsN9YaUgsc5pfw hbB773tt5BkotfKPaXQEMM3iBgkR3YTQPqj8pX/ZzFFlzJkPDLWhW2+9a+uT7insMFLq jX2rayYCWiFf0ZbvtlZZDmjG8bjIN7tS9dUz7Cfg2VJx/vaHvqSchZ35XC0f3kG5llup 3fZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734012868; x=1734617668; h=content-transfer-encoding:in-reply-to:mail-followup-to:cc :content-language:references:to:from:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DTY8CZV4B2l0+I0tAGnoPOjHekzHyyngBIeEwyT5hpA=; b=m6U58qETtTfNmsDpBw7G+wtbiCW/eoi2nATv933OzfCuqorBKlM2SgAxyHO6wvgxdx PK2uQAQJqKK7nVFbRBWD+XJpJNhzQISotev26Pv4HJJsX7c9LBLi9SKd7u1NMZpnQY8z 1jA7FJGxhWGGQ4TULYyivLq34NxasFE+bE6DQj7M+Po6lBMsI3sTDcsL8tomcAnrGtSt +Czwb+bNOb5BS6anqU1DmeJ9/u2K57hK/YZOAIQHTIP8FZTnENwj/x0KHszE562J4w4c v2zq78t+yc0H1WW+xJJ8uLNnf475jnKIaSWw98t7PY8IB+aLQYLSOovRrTo28JxNNrC5 a2gQ== X-Gm-Message-State: AOJu0YwgsGeBpBxYNU+dZOmM6Jkksa2cTWlRzP4sdGfGOUpEIiWNgOvB EsMZGUWhqAmspOQLkU4x7rF0fzZrrycwjum9cbisrA0d4P/yljvJ8rFQ3A== X-Gm-Gg: ASbGnct3BZnDPW3R/Vks2gv74vPFsXh5QZ8scIVhhJQPdthffpYRz2ufNQ42Pb0CpAi LJZxRkEEx/clIdt40jbh/T5jfvgL72JxfJcfhbDZDLW8knX0CuxnJZfs5ddjN3S5gWtc/1isQPR BoQBX9SUfDu4DP/EB8T4m8dXsAhCfdK86KY290cAQG+TNkOeTXr5isOROiAu6NdJlzckTmjXo5r CI1b7kvcAJg4kEdx8KIRUhn8IsyFPtqYwyIC1uFX6EvNKboTNKgvNjf3mS6GLrHuaF3Yvx+7X8a sGEv X-Google-Smtp-Source: AGHT+IEaIq1UpizNTHkyYR3ivOkeg5N2HVL+N0tx30+zBf1sie+0a/9RrBGEgPg14T58kZx5IYbevA== X-Received: by 2002:a05:6512:695:b0:540:17ac:b371 with SMTP id 2adb3069b0e04-54034134868mr227494e87.56.1734012867619; Thu, 12 Dec 2024 06:14:27 -0800 (PST) Received: from [192.168.1.149] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id 2adb3069b0e04-53e36d5c3e8sm1970078e87.0.2024.12.12.06.14.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Dec 2024 06:14:27 -0800 (PST) Message-ID: <366e2a83-3703-40fd-b8eb-f5746a17864d@gmail.com> Date: Thu, 12 Dec 2024 21:14:26 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird 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/)] From: Max Nikulin To: emacs-orgmode@gnu.org References: <87pllx7219.fsf@gmail.com> <9aea6ebe-66a2-47d6-a7cc-a7ad9e8af284@gmail.com> Content-Language: en-US, ru-RU Cc: Rehan Deen Mail-Followup-To: emacs-orgmode@gnu.org, Rehan Deen In-Reply-To: <9aea6ebe-66a2-47d6-a7cc-a7ad9e8af284@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=manikulin@gmail.com; helo=mail-lf1-x131.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 7.03 X-Spam-Score: 7.03 X-Migadu-Queue-Id: F369A89465 X-TUID: FlDdtO6SJaxJ Please, reply to the list. On 12/12/2024 17:34, Max Nikulin wrote: > On 12/12/2024 15:12, Rehan Deen wrote: >>      javascript:location.href='org-protocol://store-link?'+new >>      URLSearchParams({url:location.href, title:document.title}); > > Try to add "(void)" > javascript:(void)location.href='org-protocol:... I hope, you used the full expression instead of ellipsis. 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. > However bookmarklets are unsafe, you have to allow *web page* to launch > a handler. In the case of an extension this permission may be given to > the extension (but sprig/org-capture-extension still use the unsafe way). 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.