Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improved handling of requests from workers: #562

Merged
merged 1 commit into from
May 6, 2024

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented May 6, 2024

on sites with regular workers, requests from workers were being skipped as there was no match for the worker frameId

  • add recorder.hasFrame() frameId to match not just service-worker frameIds but also other frame ids already tracked in the in frameIdToExecId map

Tests:
Fixes 'Skipping URL from unknown frame' on sites such as https://www.stadttunnel-zug-nein.ch/
Without this fix, many URLs result in this error, and this should eliminate that.

- add recorder.hasFrame() frameId to match not just service-worker frameIds but all frameIds, store in frameIdToExecId on the worker data
@ikreymer ikreymer requested a review from tw4l May 6, 2024 10:11
foundRecorder = recorder;
break;
}
}

if (!foundRecorder) {
logger.debug(
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure if this should be a warning.. means something is getting skipped, but maybe debug is ok for that?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the switch to warn here is good, we don't want this getting lost in debug logs

Copy link
Contributor

@tw4l tw4l left a comment

Choose a reason for hiding this comment

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

Tested and working, thanks very much!

foundRecorder = recorder;
break;
}
}

if (!foundRecorder) {
logger.debug(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the switch to warn here is good, we don't want this getting lost in debug logs

@tw4l tw4l merged commit ddc3e10 into main May 6, 2024
4 checks passed
@tw4l tw4l deleted the check-all-frameids-for-worker branch May 6, 2024 15:04
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.

None yet

2 participants