Skip to content

chore: roll to v1.49.0#2660

Merged
mxschmitt merged 5 commits intomicrosoft:mainfrom
mxschmitt:roll/v1.49
Nov 22, 2024
Merged

chore: roll to v1.49.0#2660
mxschmitt merged 5 commits intomicrosoft:mainfrom
mxschmitt:roll/v1.49

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

@mxschmitt mxschmitt commented Nov 21, 2024

Fixes #2606
Fixes #1949

match = glob_to_regex(match)
if isinstance(match, Pattern):
return bool(match.search(url_string))
return match(url_string)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For some reason Python does not have this code:

https://github.com/microsoft/playwright/blob/f43b86fea43aeb99cfea4a0773c577dd9801b35d/packages/playwright-core/src/utils/isomorphic/urlMatch.ts#L110-L118

The "past path" seems an optimisation while the 'parseURL path matching' seems not implemented at all?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems like js has some dead code. match cannot be a string there because we do match = globToRegex(match); before.

Comment thread playwright/_impl/_page.py
Comment thread playwright/_impl/_page.py
match = glob_to_regex(match)
if isinstance(match, Pattern):
return bool(match.search(url_string))
return match(url_string)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems like js has some dead code. match cannot be a string there because we do match = globToRegex(match); before.

@mxschmitt mxschmitt merged commit f45782e into microsoft:main Nov 22, 2024
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.

[Ports]: Backport client side changes for 1.49 [Feature] ability group outputs in the trace viewer

2 participants