Skip to content

fix(trace): should survive ping as the first command after restart#37656

Merged
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:sw-restart-ping
Sep 30, 2025
Merged

fix(trace): should survive ping as the first command after restart#37656
pavelfeldman merged 1 commit intomicrosoft:mainfrom
pavelfeldman:sw-restart-ping

Conversation

@pavelfeldman
Copy link
Copy Markdown
Member

No description provided.

const url = request.url.startsWith(self.registration.scope) ? new URL(unwrapPopoutUrl(request.url)) : undefined;
const relativePath = url?.pathname.substring(scopePath.length - 1);

if (relativePath !== '/contexts' && !clientIdToTraceUrls.has(event.clientId)) {
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.

Do we need it when url is undefined?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, for the urls out of the scope the code lower will work.

@github-actions

This comment has been minimized.

@pavelfeldman pavelfeldman merged commit bd15c84 into microsoft:main Sep 30, 2025
33 of 35 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 failed
❌ [playwright-test] › reporter-html.spec.ts:2999 › created › execSync doesnt produce a second stdout attachment @macos-latest-node18-2

3 flaky ⚠️ [chromium-page] › page/page-history.spec.ts:95 › goBack/goForward should work with bfcache-able pages `@chromium-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1079 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node18`
⚠️ [chromium] › headerView.spec.tsx:49 › should toggle filters `@web-components-html-reporter`

46941 passed, 821 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.

2 participants