From 27f1ff4dd5cbe7baf36cfe3027e77a5ce628e621 Mon Sep 17 00:00:00 2001 From: Toni Biocic Date: Mon, 30 Nov 2026 13:32:03 +0100 Subject: [PATCH 1/4] Extensions: Arc's install sheet with Dia's "It can:" box, drawn from a made-up prompt until the engine hands Swift the real one (#998) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Victor's pick on #998: Arc 1.176.0's dialog ("Add the “Snake” extension to Arc?", "This extension requires no special permissions.", Cancel ESC and a blue Add Extension ↩, under Cra's icon with an arrow from the extension's) with Dia's "It can:" box listing the permissions in place of Arc's line. This is the sheet alone: Chromium's own prompt still shows, since the engine doesn't hand Swift the prompt yet. The engine's hook and the switch to this sheet come after. ExtensionInstallAsk (CraCore) is the prompt: Chromium's prompt type by what it asks, the name, the permission lines with the lines under them, and the parts this sheet doesn't draw. init?(bridge:) reads the dictionary the engine is to send, its keys in ExtensionInstallAsk.Key; a key of the wrong shape reads as no prompt, so that a line can't drop out of what the user agrees to. ExtensionInstallDialogText has the words and takes(_:): only a plain install with nothing past its permissions is Cra's to ask; turning an extension back on, a request for more permissions, an install from outside or another device, a repair, a request to an administrator and any prompt with an extra part stay Chromium's. Add Extension stays off for Chromium's 0.5 s (g_install_delay_in_ms on Chromium's main; Arc's own delay isn't measured). ExtensionInstallPrompts.offer shows it on AppDialog: the .extensionInstall icon row, DialogListBox for the box, and holdsDefault for the delay, on the app's Scheduler. Escape, Return, answerDialog= and the parent window are AppDialog's as before. It returns nil, leaving the prompt to Chromium, for a prompt it doesn't take or a window with a sheet up. cra://debug?extensionInstallAsk=[&lines=a|b] offers a made-up prompt through it, and extensionInstall=