Skip to content

Conversation

@Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Aug 5, 2025

Closes #36483

@Skn0tt Skn0tt requested a review from dgozman August 5, 2025 07:13
@Skn0tt Skn0tt self-assigned this Aug 5, 2025
title.push(chunk);

const param = formatProtocolParam(action.params, quotedText);
if (!param) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make formatProtocolParam return undefined for failures, so we can differentiate between an empty string and a missing param.

We should also update renderTitleForCall.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. I also had to change the title in protocol.yml to remove our "{a}{b}" syntax of optionality, since it's clashing with this change.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.


clockFastForward:
title: Fast forward clock "{ticksNumber}{ticksString}"
title: Fast forward clock "{ticks}"
Copy link
Contributor

Choose a reason for hiding this comment

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

How about {ticksNumber|ticksString}?

if (param === undefined) {
elements.push(fullMatch);
title.push(fullMatch);
currentIndex = match.index + fullMatch.length;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd prefer this line to not be repeated, perhaps if () {} else if () {} else {} would be better?

return params[name];
return urlObject.pathname + urlObject.search;
} catch (error) {
return params[name];
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return params[name];
if (params[name] !== undefined)
return params[name];

if (name === 'timeNumber') {
// eslint-disable-next-line no-restricted-globals
return new Date(params[name]).toString();
return new Date(params[name]).toString();
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return new Date(params[name]).toString();
if (params[name] !== undefined)
return new Date(params[name]).toString();

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Test results for "tests 1"

1 failed
❌ [playwright-test] › runner.spec.ts:118:5 › should ignore subprocess creation error because of SIGINT @macos-latest-node18-1

7 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1079:7 › cli codegen › should not throw csp directive violation errors @firefox-ubuntu-22.04-node18
⚠️ [firefox-library] › library/inspector/cli-codegen-aria.spec.ts:76:7 › should update aria snapshot highlight @firefox-ubuntu-22.04-node18
⚠️ [firefox-library] › library/page-clock.spec.ts:264:3 › stubTimers › replaces global performance.now @firefox-ubuntu-22.04-node18
⚠️ [firefox-page] › page/page-emulate-media.spec.ts:144:3 › should keep reduced motion and color emulation after reload @firefox-ubuntu-22.04-node18
⚠️ [firefox-page] › page/page-event-request.spec.ts:182:3 › should return response body when Cross-Origin-Opener-Policy is set @firefox-ubuntu-22.04-node18
⚠️ [chromium-library] › library/inspector/cli-codegen-3.spec.ts:492:7 › cli codegen › should generate getByTestId @ubuntu-22.04-chromium-tip-of-tree
⚠️ [webkit-page] › page/page-screenshot.spec.ts:345:5 › page screenshot › should work while navigating @webkit-ubuntu-22.04-node18

46578 passed, 806 skipped
✔️✔️✔️

Merge workflow run.

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.

[Regression]: trace viewer mangles collapsible group names that include text such as double curly braces (e.g. {{ stuff }})

2 participants