Skip to content

fix(chromium): preserve fonts when connecting with noDefaults - #43773

Merged
Pavel Feldman (pavelfeldman) merged 2 commits into
mainfrom
triage/43715/40944916913-1
Oct 30, 2026
Merged

Pavel Feldman (pavelfeldman) merged 2 commits into
mainfrom
triage/43715/40944916913-1

Conversation

@microsoft-playwright-automation

Copy link
Copy Markdown
Contributor

The headless font override did not check noDefaults, so attaching over CDP changed font settings in the existing default context. Use the same guard as focus and media emulation, and document that font settings are preserved.

Extend the existing CD-034 test to verify that an existing page keeps its text width after reconnecting with noDefaults.

Verified the regression fails without the fix and passes with it. CDP and neighbouring worker connection suites: 38 passed, 1 existing fixme skipped. CD-034 and CD-035 also pass headed. Build and flint passed.

Fixes #43715

Prepared by the triage workflow.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

});

test('CD-034 should skip default overrides with noDefaults', async ({ browserType, mode, server }, testInfo) => {
test('CD-034 should skip default overrides with noDefaults', {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's undo the changes to the test, except for the annotation.

@github-actions

Copy link
Copy Markdown
Contributor

Hi, I'm the Playwright bot. I started to address the review comments on Linux: agent run

#43773 (comment): Restored the original CD-034 test body, keeping only the issue annotation; the font fix and documentation are unchanged.
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

23599 passed, 705 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5194 passed, 616 skipped


Merge workflow run.

@dgozman
Dmitry Gozman (dgozman) marked this pull request as ready for review October 30, 2026 16:37
@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit a6fb02f into main Oct 30, 2026
24 checks passed
@pavelfeldman
Pavel Feldman (pavelfeldman) deleted the triage/43715/40944916913-1 branch October 30, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: connectOverCDP({ noDefaults: true }) still overrides font families (Page.setFontFamilies) on headless browsers

2 participants