---
title: "Tracing Notion Desktop's Electron Clipboard Bridge"
description: "Resolving window.__electronApi.clipboard.write through preload wrappers, ipcRenderer.invoke, and main-process sender checks without source code."
canonical: "https://askgina-blog.pages.dev/posts/notion-clipboard-bridge"
---

# Tracing Notion Desktop's Electron Clipboard Bridge

[HTML version](https://askgina-blog.pages.dev/posts/notion-clipboard-bridge)

Published August 19, 2026 · REA JavaScript Team

Resolving window.\_\_electronApi.clipboard.write through preload wrappers, ipcRenderer.invoke, and main-process sender checks without source code.

**Abstract.** Desktop Electron apps split privilege across renderer bundles, preload bridges, and main-process IPC handlers. Using REA’s static JavaScript application graph on Notion Desktop 7.6.1’s `app.asar` (Electron ASAR inspection runs purely statically in REA without launching Ghidra, Hopper, or executing the target app. Source: [rea.tools/showcase/notion](https://rea.tools/showcase/notion/).), we trace `window.__electronApi.clipboard.write` across all four hops without launching a native disassembler.

## Four-Hop IPC Trace

Select each hop to inspect the adapted bundle excerpt, REA static observation, and provenance boundary (The preload API and invoke ranges come from Notion Desktop 7.6.1 app.asar. The showcase follows the wrappers in the bundled desktop code, separately from the cached web probes. Source: [rea.tools/showcase/notion](https://rea.tools/showcase/notion/).), distinguishing verified desktop archive reads from separate cached web-asset probes.

Interactive figure: [Notion Desktop 7.6.1 Clipboard Write IPC Chain](https://askgina-blog.pages.dev/posts/notion-clipboard-bridge#notion-hops).

## Sender Trust Boundary

Before touching Electron’s native `clipboard.write`, the main process checks the sender WebContents with `isNotionWebContents(event.sender)` (The guard checks event.sender in the privileged main process before forwarding the clipboard data. Source: [rea.tools/showcase/notion](https://rea.tools/showcase/notion/).). If the check fails, the handler returns without calling the clipboard API.

## Notes & References

1.  Vercel Labs (2026). UI SDK agent docs, project settings screen benchmark (vercel-labs/ui, benchmarks/agent). [ui-sdk.dev/docs/agents](https://ui-sdk.dev/docs/agents)
2.  REA Project (2026). “Reverse Engineer Anything: One MCP for reverse engineering across binaries, applications, and runtime behavior (v6.8.0, 229 tools).” [github.com/morluto/rea](https://github.com/morluto/rea)
3.  REA Showcase. DX-Ball 1.07 project checkpoint, 7 October 2026 (REA 4.1.0). [rea.tools/showcase/dx-ball](https://rea.tools/showcase/dx-ball/)
4.  REA Showcase (2026). Notion Desktop 7.6.1 clipboard IPC trace (REA 4.1.0) and separate cached web-asset probes. [rea.tools/showcase/notion](https://rea.tools/showcase/notion/)
5.  Editorial design reference: SID-2 Technical Report (three-column reading grid, inline figure toggles, margin sidenotes). [sid.ai/research/sid-2-technical-report](https://www.sid.ai/research/sid-2-technical-report)
