Skip to content

Privacy: stop the code editor fetching icons from Google's servers - #32

Merged
maidulcu merged 1 commit into
mainfrom
claude/great-davinci-5u45cq
Nov 10, 2026
Merged

maidulcu merged 1 commit into
mainfrom
claude/great-davinci-5u45cq

Conversation

@maidulcu

Copy link
Copy Markdown
Contributor

Why

Found in the pre-beta privacy audit. Opening Bit's code editor made the browser request https://blockly-demo.appspot.com/static/media/sprites.png, because Blockly's default media path points at Google's demo server. Every player who opened the editor sent their IP address and browser details to Google. It also contradicted the README's "no external requests" claim and would show broken trash/zoom icons offline.

What

  • Bundle vendor/media/sprites.png (from blockly@10.4.3, 2.6 KB) and set Blockly's media option to it (src/robotui.js).
  • Precache it in sw.js (bumped to v20) so the editor works offline.
  • New smoke check: the test fails if the game ever requests a host other than the one serving it.

Verified

  • Before: a real-browser audit showed one external request (blockly-demo.appspot.com). After: all requests are same-origin and sprites.png loads from /vendor/media/.
  • node tests/smoke.mjs on Node 22: all checks pass, including the new privacy check and offline start.

Needs a redeploy (tools/deploy-site.sh) to reach portal.dynamicweblab.com; GitHub Pages updates on merge.


Generated by Claude Code

Blockly's default media path is blockly-demo.appspot.com, so opening Bit's code
editor sent every player's IP address and browser details to Google (and showed
broken trash/zoom icons offline). Bundle sprites.png (blockly@10.4.3), point the
editor at it with the media option, and precache it (sw.js v20).

The smoke test now fails if the game ever requests a host outside the one serving
it, so this can't come back unnoticed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012T3WxfAesenfyvWRXYdNKy
@maidulcu
maidulcu marked this pull request as ready for review November 10, 2026 06:44
@maidulcu
maidulcu merged commit 15282a1 into main Nov 10, 2026
1 check passed
@maidulcu
maidulcu deleted the claude/great-davinci-5u45cq branch November 10, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants