Kaoru0822 and Claude Opus 5.5
fe574c0c9f
fix(javascript): recover Electron APIs through default imports and optional calls ( #1673 )
...
`import electron from "electron"` bound the module with a leading `default`
export segment, so `electron.ipcMain.handle(...)`, `new
electron.BrowserWindow(...)` and destructuring from that binding matched no
Electron API. Electron's CommonJS exports define no `default` member, so the
segment can only denote the module object; drop it when classifying
Electron bindings.
The binding classifier already recorded optional-call roots, but the IPC,
context-bridge, utility-process and sender-validation visitors accepted only
plain calls. `ipcMain?.handle(...)`, `contextBridge?.exposeInMainWorld(...)`
and the common `event.senderFrame?.url.startsWith(...)` check were dropped
without a limitation.
Refs #1656
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-11 10:31:08 +08:00
..
2026-10-09 20:18:52 +08:00
2026-10-10 01:54:42 +08:00
2026-10-07 17:16:58 +08:00
2026-10-09 20:18:52 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 10:31:08 +08:00
2026-10-11 10:31:08 +08:00
2026-10-11 10:31:08 +08:00
2026-10-11 00:03:20 +08:00
2026-10-11 08:27:46 +08:00
2026-10-11 01:36:12 +08:00
2026-10-11 08:27:46 +08:00
2026-10-08 13:24:24 +08:00
2026-10-08 13:24:24 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 07:22:50 +08:00
2026-10-10 03:14:37 -07:00
2026-10-10 14:02:02 +08:00
2026-10-10 13:21:13 +08:00
2026-10-10 03:52:13 +08:00
2026-10-10 14:02:02 +08:00
2026-10-10 15:09:18 +08:00
2026-10-11 07:22:50 +08:00
2026-10-09 20:18:52 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 04:43:02 +08:00
2026-10-10 06:34:21 +08:00
2026-10-10 06:34:21 +08:00
2026-10-11 04:43:02 +08:00
2026-10-11 00:03:20 +08:00
2026-10-10 02:07:30 +08:00
2026-10-07 17:57:33 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 07:59:47 +08:00
2026-10-11 09:25:32 +08:00
2026-10-11 10:31:08 +08:00
2026-10-09 18:30:31 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 18:30:31 +08:00
2026-10-09 20:18:52 +08:00
2026-10-10 05:11:38 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-11 08:27:46 +08:00
2026-10-07 17:16:58 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 05:11:38 +08:00
2026-10-09 23:35:19 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 00:03:20 +08:00
2026-10-11 05:17:10 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 02:21:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-11 01:54:36 +08:00
2026-10-10 03:52:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 03:52:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 17:14:47 +08:00
2026-10-08 04:03:23 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 22:46:08 +08:00
2026-10-07 17:16:58 +08:00
2026-10-09 23:35:19 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 09:46:53 +08:00
2026-10-11 01:00:30 +08:00
2026-10-11 08:20:39 +08:00
2026-10-07 17:16:58 +08:00
2026-10-07 23:53:41 +08:00
2026-10-07 19:08:45 +08:00
2026-10-10 12:03:13 +08:00
2026-10-09 22:46:09 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 03:20:05 +08:00
2026-10-10 01:45:00 +08:00
2026-10-11 09:47:41 +08:00
2026-10-11 10:31:08 +08:00
2026-10-10 01:45:01 +08:00
2026-10-11 08:27:46 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 15:46:24 +08:00
2026-10-10 05:56:01 +08:00
2026-10-11 03:20:05 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 01:45:01 +08:00
2026-10-10 01:45:01 +08:00
2026-10-10 20:27:41 +08:00
2026-10-11 07:22:50 +08:00
2026-10-10 20:27:41 +08:00
2026-10-11 07:22:50 +08:00
2026-10-11 04:05:35 +08:00
2026-10-10 00:13:34 -07:00
2026-10-07 17:16:58 +08:00
2026-10-11 04:05:35 +08:00
2026-10-09 23:35:19 +08:00
2026-10-10 13:47:15 +08:00
2026-10-11 09:46:53 +08:00
2026-10-10 06:53:42 +08:00
2026-10-10 07:40:25 +08:00
2026-10-10 14:04:31 +08:00
2026-10-11 09:46:53 +08:00
2026-10-11 03:20:05 +08:00
2026-10-10 01:45:00 +08:00
2026-10-11 09:47:41 +08:00
2026-10-10 01:45:01 +08:00
2026-10-11 09:25:32 +08:00
2026-10-10 01:45:00 +08:00
2026-10-11 03:36:35 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 03:53:50 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 03:52:35 +08:00
2026-10-10 01:45:01 +08:00
2026-10-09 20:18:52 +08:00
2026-10-09 22:46:09 +08:00
2026-10-10 20:53:47 +08:00
2026-10-11 03:20:05 +08:00
2026-10-09 23:35:19 +08:00
2026-10-11 10:10:59 +08:00
2026-10-07 17:16:58 +08:00
2026-10-10 20:27:41 +08:00
2026-10-11 08:27:46 +08:00
2026-10-09 20:18:52 +08:00
2026-10-11 07:22:50 +08:00
2026-10-10 06:38:47 +08:00
2026-10-10 05:56:01 +08:00
2026-10-11 07:59:47 +08:00
2026-10-11 08:27:46 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 01:36:12 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 01:36:12 +08:00
2026-10-10 05:56:01 +08:00
2026-10-07 17:16:58 +08:00
2026-10-11 01:36:12 +08:00
2026-10-10 10:24:38 +08:00
2026-10-11 10:28:52 +08:00
2026-10-11 01:36:12 +08:00
2026-10-11 08:27:46 +08:00
2026-10-09 23:35:19 +08:00
2026-10-09 23:35:19 +08:00
2026-10-07 17:16:58 +08:00
2026-10-10 05:56:01 +08:00