Skip to content

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

Closed
Lisa Patel (lp07) wants to merge 1 commit into
microsoft:mainfrom
lp07:fix-ignore-default-args-bool
Closed

Fix handling of ignore_default_args when passed as a boolean.#3020
Lisa Patel (lp07) wants to merge 1 commit into
microsoft:mainfrom
lp07:fix-ignore-default-args-bool

Conversation

@lp07

Copy link
Copy Markdown
Contributor

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

@microsoft-github-policy-service agree

@Skn0tt Simon Knott (Skn0tt) left a comment

Copy link
Copy Markdown
Member

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.

@Skn0tt

Copy link
Copy Markdown
Member

merged via #3058

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