Skip to content

fix: extension refuses New Quizzes pages and pages under an assignment (#191) - #198

Merged
savvides merged 1 commit into
mainfrom
claude/191-new-quizzes
Nov 13, 2026
Merged

savvides merged 1 commit into
mainfrom
claude/191-new-quizzes

Conversation

@savvides

Copy link
Copy Markdown
Owner

Closes #191.

The guard in extension/content/extractor.js named each bad route, so every unnamed New Quizzes route stayed readable. It now refuses by rule:

  • a URL whose host contains quiz-lti. The New Quizzes LTI tool runs on *.quiz-lti-<region>-prod.instructure.com (Instructure domain list). The region varies, so the match is loose.
  • every page under /courses/<id>/assignments/<id>/ except edit and build (taking, observing, exports, settings, peer_reviews, and routes I did not name).
  • a doubled slash in the path is collapsed before the test, so assignments/5//taking is refused. This also closes the same gap for the older routes.

An independent review found three problems, all fixed here: a sub-path of edit or build was readable, the doubled-slash bypass, and one sentence in PRIVACY.md that became too long.

Tests: new blocked and still-readable URLs in test/test-extractor.mjs (each new refusal fails on the old regex); mutation cases 69c (rewritten) and 69d (new), 29d anchor updated; all 218 anchors valid. Extension suite, smoke 655/655 and the doc check pass. Version stays 1.2.6: its CHANGELOG entries are still under Unreleased.

Not verified: no live Canvas test. The host pattern comes from Instructure's domain list, and the Rails behaviour for // is from memory. The extension reads only the top frame of a tab, so a quiz inside a Canvas page was never read. Uploading the extension to the Web Store is a separate step.

🤖 Generated with Claude Code

#191)

The guard now refuses a host that contains quiz-lti and every page under
/courses/<id>/assignments/<id>/ except edit and build, and it collapses a
doubled slash before it tests the URL. Tests, mutation cases 69c and 69d,
PRIVACY.md and CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@savvides
savvides merged commit 70ba54e into main Nov 13, 2026
6 checks passed
@savvides
savvides deleted the claude/191-new-quizzes branch November 13, 2026 19:16
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.

Extension still reads New Quizzes pages that show student data

1 participant