From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6CA3OLtTdmOvWAAAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 16:31:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8AE7N7tTdmPYHgAAG6o9tA (envelope-from ) for ; Thu, 17 Nov 2022 16:31:07 +0100 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 8C44D141AF for ; Thu, 17 Nov 2022 16:31:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovgqR-0006Dj-Ef; Thu, 17 Nov 2022 10:30:27 -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 1ovgqP-0006AD-4G for emacs-orgmode@gnu.org; Thu, 17 Nov 2022 10:30:25 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovgqN-0007jl-HA for emacs-orgmode@gnu.org; Thu, 17 Nov 2022 10:30:24 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ovgqL-00072u-Fr for emacs-orgmode@gnu.org; Thu, 17 Nov 2022 16:30:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Reliability of org-protocol browser extensions Date: Thu, 17 Nov 2022 22:30:11 +0700 Message-ID: References: <87r0zelo7e.fsf@posteo.net> <875yg7qiyb.fsf@localhost> <875yfj8nf7.fsf@localhost> <877czyguhp.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668699067; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=CMl7KPUWU1EzJKIuKi80vuvOT6gKZFURvALf19k0Uqk=; b=UsnsCqkxwquqkl1QJozIwzpBEIW34BRpXEJsFZ7t3mUUO3NBKs/HvF1EG40FLlOE2BaAn3 bBpS/H8SCoPWn7fnbVZfflz0R/Ci4luA5ofXDXMFkTMHlQkpW2Nk7I10W+llFzWE0P0zdL Iiz8Wxk718U9bLEFn8EkXyDplZ5EnsRQ80DNH6TYAqlJrOdhgJ1M1ahdYvLupvhuR+Yt9U cLzzQQAgt3e/ylQPYYLzEfIbOhlyx7BEobfIB4w9gzu3AQMuw2k/s59Id135xfbfpQtx9U FvT0ZKKffyWHizixodZrBm4Qt7LlPG8GG1A21UedGJk7XMHQMuEz0+4vh5Dk+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668699067; a=rsa-sha256; cv=none; b=fdq5c7lJ3EYRNYTMEfEfoqn/2Xl8lS1ZfzDC2c1J58YPiAqt4CmPLtVM29EMSTK0GM7JGm CZhM1QNk/2r/b9pGwLWOkXa6AoPbbHMbTM4svW2CnWwqeoPZuRS74uETtfYuabwrs8HaiU VlmyfvI/7SgOn+CIsakzFY8etOyk9bi3XL3sgFTPXA6IPmZby2wPqHQ9/awUASD1/9ZWKn Fvg5YIjnZ06Qo9FuvF1iwtOoNw7vS7tOOhIoPsGmq/BrK2fgoHPElkaFVYX0hS3reAhGqO I9anto9LBOPJV6N8jYXw5EWRaAdpieEGt6fEfFL4YcgyPWLdYu7D3u8AU2R40A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 2.37 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: 8C44D141AF X-Spam-Score: 2.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: okvuseStg5ck On 17/11/2022 14:18, Jean Louis wrote: > > I am using reliable org-protocol extension, Out of curiosity, can you quickly capture let say 20 tabs (a second per tab)? Is the extension able to detect that scheme handler is not properly configured at the level of desktop environment? > that can "store" link and > "capture", it is programmed by Wojciech Siewierski, > https://github.com/vifon/org-protocol-for-firefox I do not think that the tabs.update() method from WebExtensions API https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/update is unambiguously better than launching external handler from a content script by assigning URI to window.location https://developer.mozilla.org/en-US/docs/Web/API/Window/location The latter method is used by https://github.com/sprig/org-capture-extension/ Launching external scheme handler from a web page or from an extension is a shoot and forget method. Even if an error is reported to browser console, it is inaccessible for JavaScript. It is a grey zone even though enough applications relies on custom URI schemes. There are a couple of tricks, but they do not always work. Browsers isolates web pages and host system to prevent attacks. Protection causes enough inconveniences already while I would not call it perfect. I do not think that changing of extension will help Samuel. Looking into the code I do not see real difference in respect to reliability. Either there is a problem with desktop-wide protocol handler or browser blocks attempts to launch it.