Skip to content

Fix handling of ignore_default_args when passed as a boolean.#3020

Open
lp07 wants to merge 1 commit intomicrosoft:mainfrom
lp07:fix-ignore-default-args-bool
Open

Fix handling of ignore_default_args when passed as a boolean.#3020
lp07 wants to merge 1 commit intomicrosoft:mainfrom
lp07:fix-ignore-default-args-bool

Conversation

@lp07
Copy link
Copy Markdown
Contributor

@lp07 lp07 commented Dec 27, 2025

Problem:
Passing ignore_default_args=False was sent over the wire as a boolean, but the server expects an array for ignoreDefaultArgs, resulting in:

"expected array, got boolean".

Fix:

  • ignore_default_args=True → send ignoreAllDefaultArgs=True
  • ignore_default_args=False → do not send ignoreDefaultArgs at all
  • ignore_default_args=list → unchanged

Tests:
Added unit tests covering bool True/False and list cases across
chromium, firefox, and webkit.

Related issue: #3005

@lp07
Copy link
Copy Markdown
Contributor Author

lp07 commented Dec 27, 2025

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Member

@Skn0tt Skn0tt left a comment

Choose a reason for hiding this comment

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

The tests seem to not be in the right place. I'll take a look later.

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.

2 participants