Skip to content

Implement upstream PR #14824: adds extension realms API#3403

Merged
kblok merged 6 commits into
masterfrom
implement-upstream-change-14824
Apr 21, 2026
Merged

Implement upstream PR #14824: adds extension realms API#3403
kblok merged 6 commits into
masterfrom
implement-upstream-change-14824

Conversation

@kblok

@kblok kblok commented Apr 20, 2026

Copy link
Copy Markdown
Member

Implements changes from puppeteer/puppeteer#14824

Summary

  • Adds ExtensionRealms() to Page and Frame returning extension content-script realms
  • Adds Origin property and ExtensionAsync() to Realm
  • Tracks extension worlds in CdpFrame via ExtensionWorlds dictionary
  • FrameManager detects extension origins and routes them to extension worlds
  • BiDi throws NotSupportedException for unsupported methods
  • Adds RealmsTests with 3 tests matching upstream cdp/realms.spec

🤖 Generated with Claude Code

kblok and others added 6 commits April 20, 2026 13:30
Ports puppeteer/puppeteer#14824 to PuppeteerSharp.
Adds ExtensionRealms() to Page/Frame, Origin and ExtensionAsync() to Realm,
and extension world tracking in CdpFrame/FrameManager.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ibutes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Move members to comply with ordering rules: properties before methods (SA1201),
public before internal members (SA1202).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kblok kblok merged commit 65a659d into master Apr 21, 2026
15 of 16 checks passed
@kblok kblok deleted the implement-upstream-change-14824 branch April 21, 2026 20:46
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