contextBridge.exposeInMainWorld: prototype loss and origin‑agnostic access
Goal Expose a class instance from a preload script to the renderer using contextBridge.exposeInMainWorld while retaining its prototype methods and restricting calls to the current origin. Constraints The bridge performs a shallow, enumerable own‑property copy; prototype methods, getters, setters, and non‑enumerable properties are omitted. Values are structur