Notes
← All notes
·frontend·13 min

Electron 桌面交易應用:資深面試 Drill(下)——IPC 安全、RTL/CVD、focus、簽章 CSP

上篇談完框架選型與單多進程切換;本篇接資深面試剩下的橫切議題——三段 IPC 的安全邊界(`will-attach-webview` 反悔點)、RTL 跨 webview 邊界怎麼一致傳播、CVD 色盲方案的跨進程同步、多 symbol 自訂版面的 focus 與快捷鍵歸屬、macOS 公證 / Windows 2023 EV cert 新規 / 自動更新 / CSP 注入。內部使用。

#electron#interview-prep#system-design#ipc#accessibility#rtl#binance#面試系列#private

承接 上篇:框架選型、容器譜系、單多進程切換——已經回答了「為何用 Electron」、「為何 <webview>」、「單/多進程切換器怎麼設計」這三道架構級問題。

本篇接剩下五題,全都是「跨 webview 邊界怎麼一致」的橫切議題:

  1. 三段 IPC 的安全邊界:contextIsolation / sandbox / nodeIntegration 的演進、exposeInMainWorld 最小暴露、will-attach-webview 反悔點
  2. RTL 跨 webview 邊界:CSS logical properties、IPC broadcast 設計、Pool 復用的 dir 殘留
  3. CVD 色盲方案的跨進程套用:CSS variable 注入 + IPC broadcast vs nativeTheme 兩條路並存
  4. 多 symbol focus 與快捷鍵:host/guest focus 切換時誰拿鍵盤事件、版面 state 存哪裡、drag-resize 不 jank
  5. 分發、簽章、CSP:macOS 公證、Windows 2023 EV cert 新規、自動更新策略、CSP header 注入

本文導覽