liuhao1024
b08ec00a70
fix(desktop): hand preview guest links to the audited opener via a guest preload
...
Preview-pane guest pages (Streamlit's traceback "Ask Google" / "Ask …"
buttons, plain `<a target="_blank">` anchors) could not open anything: the
`<webview>` has no `allowpopups`, so Chromium drops the popup before any
handler runs. Opening from `setWindowOpenHandler` is banned
(GHSA-9f4c-93c8-jc8g, window-open-policy.ts), so this adds an explicit
click bridge instead:
- main.ts installs a guest preload through `will-attach-webview`, keyed on
the `persist:hermes-preview` partition only.
- The preload forwards a clicked `_blank` anchor's resolved href to the
host renderer via `ipcRenderer.sendToHost`; it opens nothing itself.
- PreviewPane admits the URL and routes it through the existing audited
`hermes:openExternal` IPC.
Salvaged from PR #112959 (squash of its two commits).
Fixes #112941
2026-09-17 09:05:24 -07:00
..
2026-09-16 23:53:00 -05:00
2026-09-17 20:36:03 +05:30
2026-09-10 11:18:16 -07:00
2026-09-11 15:45:43 +05:30
2026-09-13 06:50:57 -07:00
2026-09-07 05:06:39 -07:00
2026-09-08 21:53:33 -05:00
2026-09-08 21:53:33 -05:00
2026-09-16 13:55:13 -05:00
2026-09-07 12:03:25 +00:00
2026-09-06 19:22:04 +00:00
2026-09-14 10:18:17 -07:00
2026-09-16 17:47:26 -07:00
2026-09-16 17:47:26 -07:00
2026-09-09 12:11:25 -07:00
2026-09-09 12:11:25 -07:00
2026-09-15 00:41:14 +05:30
2026-09-16 13:55:13 -05:00
2026-09-16 13:55:13 -05:00
2026-09-16 17:47:26 -07:00
2026-09-13 06:50:57 -07:00
2026-09-13 06:50:57 -07:00
2026-09-13 06:50:57 -07:00
2026-09-13 06:50:57 -07:00
2026-09-07 04:57:11 -07:00
2026-09-07 04:57:11 -07:00
2026-09-15 20:44:42 +05:30
2026-09-15 20:44:42 +05:30
2026-09-15 20:44:42 +05:30
2026-09-11 15:45:43 +05:30
2026-09-13 21:10:27 -07:00
2026-09-14 05:29:08 -07:00
2026-09-15 00:41:14 +05:30
2026-09-14 06:02:05 -07:00
2026-09-15 00:41:14 +05:30
2026-09-13 05:42:31 -07:00
2026-09-13 05:42:31 -07:00
2026-09-09 12:13:14 -07:00
2026-09-09 12:13:14 -07:00
2026-09-16 17:13:17 -07:00
2026-09-16 17:13:17 -07:00
2026-09-16 13:55:13 -05:00
2026-09-16 13:55:13 -05:00
2026-09-10 10:35:07 -07:00
2026-09-13 21:10:27 -07:00
2026-09-13 21:10:27 -07:00
2026-09-17 09:04:38 -07:00
2026-09-16 02:49:21 -05:00
2026-09-17 21:18:30 +05:30
2026-09-17 21:18:30 +05:30
2026-09-07 12:03:25 +00:00
2026-09-12 10:00:06 +05:30
2026-09-07 06:10:28 -07:00
2026-09-15 13:00:12 +05:30
2026-09-12 08:34:43 -07:00
2026-09-12 08:34:43 -07:00
2026-09-07 07:11:36 -07:00
2026-09-07 07:11:36 -07:00
2026-09-12 14:05:36 -07:00
2026-09-14 06:12:19 -07:00
2026-09-13 06:11:49 -07:00
2026-09-13 06:11:49 -07:00
2026-09-11 15:45:43 +05:30
2026-09-16 15:54:47 -05:00
2026-09-16 15:54:47 -05:00
2026-09-17 09:05:24 -07:00
2026-09-17 09:05:24 -07:00
2026-09-07 04:57:11 -07:00
2026-09-07 04:57:11 -07:00
2026-09-15 16:07:43 +05:30
2026-09-16 13:55:13 -05:00
2026-09-13 06:50:57 -07:00
2026-09-13 06:50:57 -07:00
2026-09-15 00:41:14 +05:30
2026-09-08 21:53:33 -05:00
2026-09-09 03:02:27 +00:00
2026-09-15 20:44:42 +05:30
2026-09-10 01:27:32 +00:00
2026-09-09 20:22:22 -05:00
2026-09-12 12:52:19 -07:00
2026-09-13 17:58:46 +00:00
2026-09-13 06:50:57 -07:00
2026-09-07 06:21:44 -07:00
2026-09-07 11:25:20 -07:00
2026-09-15 00:41:14 +05:30
2026-09-14 05:29:08 -07:00
2026-09-13 23:50:45 -05:00
2026-09-13 23:50:45 -05:00
2026-09-11 10:23:35 +00:00
2026-09-12 02:19:48 +00:00