Skip to content

fix(extension): restore page styles after removing blur - #3445

Open
vedanth-jadhav wants to merge 2 commits into
CapSoftware:mainfrom
vedanth-jadhav:fix/extension-blur-style-restore
Open

vedanth-jadhav wants to merge 2 commits into
CapSoftware:mainfrom
vedanth-jadhav:fix/extension-blur-style-restore

Conversation

@vedanth-jadhav

@vedanth-jadhav vedanth-jadhav commented Oct 27, 2026 •

Copy link
Copy Markdown

Clicking an element to unblur it currently removes its original inline user-select setting and drops the original filter's !important priority. The page can therefore behave or render differently after the blur is removed.

Save and restore both inline values and their priorities. Keep the saved state on the element while the tool is closed, and remove the extension's metadata after unblurring. Elements that originally had no inline declarations return to that state.

Validation: all 45 extension tests pass, including six new mounted DOM cases. Four new cases fail before the fix. Covers important/ordinary styles, two complete blur cycles, closing/reopening the tool, originally absent styles, unrelated declarations, and ignoring extension controls. Strict source/test TypeScript with noUncheckedIndexedAccess, scoped Biome and diff checks pass.

Reproduce: cd apps/chrome-extension && bun run test.

The new tests use real DOM style declarations in jsdom. Browser installation, physical screen recording and a full extension build were not run. No runtime dependencies or recording/message contracts change. The extension declares jsdom ^26.1.0 as a development dependency. Bun 1.4.4 regenerated the lockfile and normalized existing package aliases; the set of resolved package versions has no additions or removals. Frozen lockfile validation also passes.

RetriggerView in GreptileConfidence Score: 5/5

The current head appears safe to merge.

Summary

Restores original inline filter and user-select values and priorities after removing blur.

  • The blur tool restores each page element’s original styles when it is unblurred.

No new actionable issues found. Tests and browser checks were not rerun during this review.

Reviews (2) · Last reviewed commit: "test(extension): declare the blur test D..." · Reviewed by Greptile

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 27, 2026 01:38 Inactive
@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 27, 2026 1:38am UTC

Comment thread apps/chrome-extension/src/content/blur-overlay.test.tsx

Copy link
Copy Markdown
Author

@greptile review

Please review the current head, including the extension's direct jsdom dev dependency and regenerated lockfile.

@vercel

vercel Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Someone is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

This branch was previously deployed

1 inactive (outdated) deployment
Preview – cap-status — 5cc48133 Deployed Oct 27, 2026 by vercel[bot]
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