From 9941c96253f79cc448fdf31250f852d638c7cb98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Beaufort?= Date: Fri, 5 Jun 2026 16:13:28 +0200 Subject: [PATCH 1/2] Gate registerTool on document.domain being disabled --- index.bs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.bs b/index.bs index 50d688d..4750dc2 100644 --- a/index.bs +++ b/index.bs @@ -332,6 +332,9 @@ The registerTool(tool, options Date: Fri, 5 Jun 2026 17:26:46 +0200 Subject: [PATCH 2/2] Don't use getter and check file scheme --- index.bs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 4750dc2..45b4dce 100644 --- a/index.bs +++ b/index.bs @@ -92,11 +92,16 @@ spec:html; type:dfn; text:form-associated element text:browsing context group set text:unique internal value + text:is origin-keyed
 spec: SECURE-CONTEXTS; urlPrefix: https://w3c.github.io/webappsec-secure-contexts/
   type: abstract-op
     text: is origin potentially trustworthy?; url: is-origin-trustworthy
+spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/
+  type: dfn
+    text: surrounding agent; url: surrounding-agent
+    text: agent cluster; url: sec-agent-clusters
 

Introduction

@@ -332,8 +337,10 @@ The registerTool(tool, options"file", then [=exception/throw=] a "{{SecurityError}}" + {{DOMException}}. 1. If |tool owner| is not [=allowed to use=] the "{{tools}}" feature, then [=exception/throw=] a "{{NotAllowedError}}" {{DOMException}}.