Skip to content

Milestone 1: spike and Zen 1.24.3b fixtures - #2

Merged
rodzy merged 5 commits into
mainfrom
milestone-1-spike
Nov 27, 2026
Merged

rodzy merged 5 commits into
mainfrom
milestone-1-spike

Conversation

@rodzy

@rodzy rodzy commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

What does this change?

Milestone 1 (spike and fixtures). Adds a read-only Browser Console snippet, run with npm run spike (see docs/spike.md), that reports Zen's media card DOM, media controller metadata, the browser window CSP and gZenMediaController member names. The maintainer ran it on Zen 1.24.3b and the report is saved as test/fixtures/zen-1.24.3b.json. test/zen-fixture.test.js pins the facts the mod relies on.

Verified findings, now recorded in CLAUDE.md:

  • Card title path is deeper than the previous notes said; use descendant selectors.
  • Cards carry no controller or browser id, so cards are matched to controllers by title and artist.
  • getMetadata() throws NS_ERROR_NOT_AVAILABLE on inactive controllers.
  • The browser window CSP has no img-src.

Also updates the roadmap (milestone 1 Done, milestone 2 Next), CHANGELOG.md, CONTRIBUTING.md, and the spike globs in eslint.config.js and package.json. The bundle zen-media-viz.uc.js is unchanged.

How was it tested?

  • npm test: unit tests for the collector in test/spike-report.test.js and fixture tests in test/zen-fixture.test.js.
  • npm run lint and npm run format:check pass.
  • Run by hand in Zen 1.24.3b (Gecko 160.0.1) on macOS, Browser Console. Sine not involved yet.

Checklist

  • Tests were written first and cover the change (npm test)
  • npm run lint and npm run format:check pass
  • Bundle rebuilt and committed (npm run build) if anything in src/ changed. N/A: no src/ change.
  • Relevant items in docs/manual-testing.md checked in a real Zen + Sine install. N/A: Sine integration arrives in Milestone 5.
  • CHANGELOG.md updated under Unreleased

npm run spike bundles spike/console.js into a Browser Console snippet
that reports Zen's media card DOM, media controller metadata, the
browser window CSP and gZenMediaController member names. The collector
only reads; it changes nothing in the page.
Saves the spike report recorded on Zen 1.24.3b (Gecko 160.0.1, macOS)
and adds tests that pin the card DOM path, controller matching, the
inactive-controller error and the CSP facts the mod depends on.
Explains how to run the snippet and how to read its report. CLAUDE.md
now records the verified Zen APIs: the deeper card DOM path, cards
carrying no controller id, NS_ERROR_NOT_AVAILABLE on inactive
controllers and a CSP with no img-src. Marks milestone 1 done.
A tab whose media controller throws while being described used to abort the whole report. It now yields { browserId, error } and the other tabs are still reported.
Mark the card, frontCard and private-map facts as taken from Zen's source rather than verified by the spike, note that the CSP image claim still needs confirming in Zen, describe spike/ in CONTRIBUTING.md and add a Spike checklist item to manual testing.
@rodzy
rodzy merged commit b0e9eb9 into main Nov 27, 2026
1 check passed
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.

1 participant