Repository navigation
test: verify AddStyleTagAsync does not mutate options when a path is used - #3797
Conversation
…ppeteer#15757) Upstream stopped mutating the options passed to addStyleTag when a path is provided. PuppeteerSharp already reads the file into a local variable and never mutates AddTagOptions, so only the upstream test is ported. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Ports puppeteer/puppeteer#15757 ("do not modify the options passed to addStyleTag").
Upstream fixed Frame.addStyleTag overwriting
options.contentwhenpathwas provided. PuppeteerSharp's CdpFrame/BidiFrame already read the file into a local variable and never mutateAddTagOptions, so no library change is needed. This PR adds the upstream test ("should work with a path when the options are reused") to guard that behavior.Note: the test could not be executed locally (build of the test project was still running / environment issues with the dev certificate), so CI should verify it.
🤖 Generated with Claude Code
Summary by CodeRabbit