From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IPE7A38J2WO/uwAAbAwnHQ (envelope-from ) for ; Tue, 31 Jan 2023 13:28:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kB36An8J2WMrtgAAauVa8A (envelope-from ) for ; Tue, 31 Jan 2023 13:28:47 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by aspmx1.migadu.com (Postfix) with ESMTP id A4E4E2819D for ; Tue, 31 Jan 2023 13:28:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMpdP-0007fq-D0; Tue, 31 Jan 2023 07:21:11 -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 1pMpdM-0007fF-Ua for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 07:21:09 -0500 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMpdI-0002Yj-L6 for emacs-orgmode@gnu.org; Tue, 31 Jan 2023 07:21:07 -0500 Received: by mail-pj1-x1031.google.com with SMTP id t12-20020a17090aae0c00b00229f4cff534so932633pjq.1 for ; Tue, 31 Jan 2023 04:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:cc:to:from:references :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=vBQKzXdU7jFcj9PGccIbBKBvLQjXXwEJUiT0lZ2TP5s=; b=FIUrSWVbEel1nm5/Ti23K/ycHN3QbCodmXoWQYvz6+GcMpDfK1fNbgXqD1rtMLflW2 SnWomUF7JBA5tDEMDITmr7urdHwdMN17XGoBRey9zOCioW7huVttwNhZIy4mkYvzIseq sZ30hJTyyv5KKmi+x8OISx5+/oHjPdx0KMsQXMw3GpSjrqXXF+EMrw3wHcB4bT9FSAOV Dr2RxE5SY2mB23dxpu3W4wtgONAhYmjlu2sv3lTOLPx7lgle7q1X65A6x6+wpxPvBk1G Kap1hov8gCaHuwDiAMCIG3Xz7Bs6pWwguEstsRGTcfHB4U7DDXwEdPOZQjMx6s/UtznA eIiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:cc:to:from:references :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vBQKzXdU7jFcj9PGccIbBKBvLQjXXwEJUiT0lZ2TP5s=; b=BsKVdsLVvqJKYEZ0JOazel/4/rxliq5c87uqhXmnnr87qc7ENrX3wk9PW019xbleQL iNnMQu3Q+BZaAGKcGdWdz3eBrAmBF0pRqAgS9rno1An0mVLLQ2SNG3sP+rVJqDzj9rau Oz+HuIeG6KpWQc75G5I16bxlPNHh4DjWnJMWaQnC1iP2InO3BWkJjLMC9ap+gTY/Roqs JQS3QUmNK7ZPwa5pQKDdZyC2qNiYShLc6Ty2ypTdO2YSJUCrQGFY+8ZcVaLotZWZQAEb FIDUkk5a+ZGwLrERl2ZD1EzDBVyuvI8QoCWWb6KAQYdXQJ4afIG+a95Qeez2L779nCNX dFpg== X-Gm-Message-State: AO0yUKVk6p6SfCuXtYpCU82N96OARpEXni0qggFFwlCEXRwYP0WjP6zY pMxqmlnarjMmEOlxQ6CixiVfnho6Op4= X-Google-Smtp-Source: AK7set8DRSJDSGmMgQoi0AuX4NnE/GJ4K3zl+4+k6ateh2xiCaUGXNq8LAYK/dS4HaSSx0m41zCT5w== X-Received: by 2002:a17:90b:38ce:b0:22c:6627:1581 with SMTP id nn14-20020a17090b38ce00b0022c66271581mr13817662pjb.17.1675167662682; Tue, 31 Jan 2023 04:21:02 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id gt22-20020a17090af2d600b00219186abd7csm8727452pjb.16.2023.01.31.04.21.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Jan 2023 04:21:02 -0800 (PST) Message-ID: <51559ac9-9fce-8c0a-7800-f62ee654b752@gmail.com> Date: Tue, 31 Jan 2023 19:20:59 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [BUG] org-manual: Using bookmarklet for org-capture is no longer reliable Content-Language: en-US References: <3218434.44csPzL39Z@linux.fritz.box> <860cca44-faa3-ce41-3606-f92b50ee00a9@gmail.com> <87a62bnf4t.fsf@localhost> <21750362.EfDdHjke4D@linux.fritz.box> <939b62c1-34ee-051e-405a-328b841d3d16@gmail.com> <875yculcim.fsf@localhost> <87pmaxe9fk.fsf@localhost> <87edrc3w6f.fsf@localhost> <871qnb2ked.fsf@MagnumOpus.khem> From: Max Nikulin To: emacs-orgmode@gnu.org Cc: Charles Philip Chan In-Reply-To: <871qnb2ked.fsf@MagnumOpus.khem> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=manikulin@gmail.com; helo=mail-pj1-x1031.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, NICE_REPLY_A=-0.09, 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675168126; a=rsa-sha256; cv=none; b=h9JnduMEN4r8sq9RWBUk0isk1ywKovIXKgUig6R8i90gR2VLvgjY8PukGZLrvlmjDwX1HA N+A4J4i4q85/5nmKvOuHyARSZSbd610myHdl/4AkPXaRSMsv2+OMVF+FfuKuZngvZZzHgY idMAjSPVJ3f5lzvh9wR56zz9Br5d+6LPTffA5bu3ZBHUhd0gZpvGCkS+UJrFmIOBcAPRsP VStIOyQlm2VmpAz8VmlwwLTbmojjyoppKPTRjn+np8hxU6yr8ND3ZgpngM/awV+VRbOWCU zxfeDGramRDjatzK72r62HCm5OCv/E6wdKQP8VZfKQn/BYizQd5hQju5q6f1TA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FIUrSWVb; 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=1675168126; 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=vBQKzXdU7jFcj9PGccIbBKBvLQjXXwEJUiT0lZ2TP5s=; b=b+/Sodu+K7wYI0ayMUfDH8tIk7UBjPBmFeLYrknw9RkD3HT5tbmskQUjEUVLfzyd/xqy2s +E6IUj/sp31QWOzSEHne5DRmkvzzRQGA3hCXSPKSNtgHeV06fy2jO571e7Zxjm6RzsS5QI sZUcE55/4I1JwA/S0vg22E02noJYkuDlkFvxuVZSwn9EgVqZu0lNn825m56xydwYgHhpuh xqj3bo8C2fa+UyjyUH40fUh2LMfjDKpwcvoqzBh0zlwsw58PTYZs8381Zth4JEAw5KnG0I DYS8HdzYsqfObxcQncM+S54/ruH/AFZ7zKZPYFnFFHpu/6Laso1tt5HNZWdKeA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FIUrSWVb; 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) X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 7.72 X-Spam-Score: 7.72 X-Migadu-Queue-Id: A4E4E2819D X-TUID: RBNSaGubknah On 31/01/2023 15:11, Charles Philip Chan wrote: > I have been using this org-protocol addon[1] for more than a year and it has > been rock solid for me. According to the author, bookmarklets are getting less > and less useful because CSP (Content Security Policy) blocking them on many > sites (for example Github)[2]. Thank you for the reminder. Using an add-on to extract metadata, I have never tried if bookmarklets are affected by CSP. I think, we assume different definitions of "rock solid". Does it able to detect that desktop configuration of org-protocol is broken and to notify the user about failure? I do not use :immediate-finish templates, but some people do. There is a risk to quietly lost captures. I do not see other ways to detect errors besides a native messaging helper application. (info "(org) Template elements") https://orgmode.org/manual/Template-elements.html > [2] https://github.com/vifon/org-protocol-for-firefox This extension uses browser.tabs.update method to launch external protocol handler. Perhaps in some cases it is better than assigning window.location.href from a content script like in older https://github.com/sprig/org-capture-extension/ however I have seen issues with both methods. It is a grey zone and it is hard to predict which one will be more reliable in next versions of browsers. Actually some people believe that even mailto: was a hack, it is not a resource identifier as it can be expected from URI https://github.com/w3c/web-share/blob/main/docs/explainer.md#why-not-make-a-share-uri-scheme-like-mailto-instead-of-a-javascript-api https://github.com/chromium/ballista/issues/21 Expand on why registerProtocolHandler and registerProtocolHandler are a hack > The question I have to ask myself, though, is if we were designing > mailto: today, would we do it the same way? And I think the answer is > "no, mailto: is and always was a hack, because we didn't have JavaScript". So we should not expect that org-protocol: will work reliably in browsers. Position of a firefox developers concerning external handlers for custom protocols: Bug 1744018 - External scheme handler launched by an add-on can be blocked despite user action https://bugzilla.mozilla.org/show_bug.cgi?id=1744018#c16 > Pairing the extension with a native application and use the > nativeMessaging API seems a better fit for the use case you are describing