Repository navigation
Milestone 1: spike and Zen 1.24.3b fixtures - #2
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
Milestone 1 (spike and fixtures). Adds a read-only Browser Console snippet, run with
npm run spike(seedocs/spike.md), that reports Zen's media card DOM, media controller metadata, the browser window CSP andgZenMediaControllermember names. The maintainer ran it on Zen 1.24.3b and the report is saved astest/fixtures/zen-1.24.3b.json.test/zen-fixture.test.jspins the facts the mod relies on.Verified findings, now recorded in
CLAUDE.md:getMetadata()throwsNS_ERROR_NOT_AVAILABLEon inactive controllers.img-src.Also updates the roadmap (milestone 1 Done, milestone 2 Next),
CHANGELOG.md,CONTRIBUTING.md, and thespikeglobs ineslint.config.jsandpackage.json. The bundlezen-media-viz.uc.jsis unchanged.How was it tested?
npm test: unit tests for the collector intest/spike-report.test.jsand fixture tests intest/zen-fixture.test.js.npm run lintandnpm run format:checkpass.Checklist
npm test)npm run lintandnpm run format:checkpassnpm run build) if anything insrc/changed. N/A: nosrc/change.docs/manual-testing.mdchecked in a real Zen + Sine install. N/A: Sine integration arrives in Milestone 5.CHANGELOG.mdupdated under Unreleased