Skip to content

feat: add Path and Enabled metadata to Extension class - #3427

Merged
kblok merged 1 commit into
masterfrom
implement-upstream-change-14870
Apr 27, 2026
Merged

kblok merged 1 commit into
masterfrom
implement-upstream-change-14870

Conversation

@kblok

@kblok kblok commented Apr 27, 2026

Copy link
Copy Markdown
Member

Summary

Implements upstream Puppeteer PR #14870: adds path and enabled metadata to the Extension object.

Changes

  • Extension base class: added Path (file system path) and Enabled (whether the extension is enabled) properties
  • CdpExtension: updated constructor to accept and forward path and enabled to base class
  • ExtensionInfo (CDP messaging): added Path and Enabled deserialization fields to receive values from Extensions.getExtensions CDP response
  • CdpBrowser: passes info.Path and info.Enabled when constructing CdpExtension
  • ExtensionsTests: added ShouldListExtensionsAndTheirProperties test matching upstream extensions.spec > extensions > should list extensions and their properties

Test plan

  • New test ShouldListExtensionsAndTheirProperties asserts extension.Path == extensionPath and extension.Enabled == true
  • All changed files compile without errors
  • New test passes locally with Chrome CDP

🤖 Generated with Claude Code

…14870)

Implements puppeteer/puppeteer#14870 which adds
`path` and `enabled` properties to the Extension API, exposing the file
system path and enabled state of installed browser extensions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kblok
kblok merged commit 7262801 into master Apr 27, 2026
15 of 16 checks passed
@kblok
kblok deleted the implement-upstream-change-14870 branch April 27, 2026 17:37
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