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

Speedup WebExtensionMatchPattern::matchesAllHosts() to avoid makeString(). #11370

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

xeenon
Copy link
Contributor

@xeenon xeenon commented Mar 10, 2023

f112de9

Speedup WebExtensionMatchPattern::matchesAllHosts() to avoid makeString().
https://webkit.org/b/253722
rdar://106052464

Reviewed by Brian Weinstein.

* Source/WebCore/page/UserContentURLPattern.cpp:
(WebCore::UserContentURLPattern::originalHost const): Use matchAllHosts().
* Source/WebCore/page/UserContentURLPattern.h:
(WebCore::UserContentURLPattern::matchAllHosts const): Added.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionMatchPatternCocoa.mm:
(WebKit::WebExtensionMatchPattern::matchesAllHosts const): Use matchAllHosts() instead of host().

Canonical link: https://commits.webkit.org/261510@main

066d494

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style   πŸ›  ios   πŸ›  mac βœ… πŸ›  wpe   πŸ›  wincairo
❌ πŸ§ͺ bindings βœ… πŸ›  ios-sim   πŸ›  mac-AS-debug   πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2   πŸ§ͺ api-mac βœ… πŸ›  gtk
  πŸ§ͺ api-ios   πŸ§ͺ mac-wk1   πŸ§ͺ gtk-wk2
  πŸ›  tv   πŸ§ͺ mac-wk2   πŸ§ͺ api-gtk
  πŸ›  tv-sim   πŸ§ͺ mac-AS-debug-wk2
  πŸ›  watch   πŸ§ͺ mac-wk2-stress
  πŸ›  watch-sim
βœ… πŸ›  πŸ§ͺ unsafe-merge

@xeenon xeenon self-assigned this Mar 10, 2023
@xeenon xeenon added the WebKit Extensions Bugs related to extension support. label Mar 10, 2023
@xeenon xeenon added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 10, 2023
…ng().

https://webkit.org/b/253722
rdar://106052464

Reviewed by Brian Weinstein.

* Source/WebCore/page/UserContentURLPattern.cpp:
(WebCore::UserContentURLPattern::originalHost const): Use matchAllHosts().
* Source/WebCore/page/UserContentURLPattern.h:
(WebCore::UserContentURLPattern::matchAllHosts const): Added.
* Source/WebKit/UIProcess/Extensions/Cocoa/WebExtensionMatchPatternCocoa.mm:
(WebKit::WebExtensionMatchPattern::matchesAllHosts const): Use matchAllHosts() instead of host().

Canonical link: https://commits.webkit.org/261510@main
@webkit-commit-queue
Copy link
Collaborator

Committed 261510@main (f112de9): https://commits.webkit.org/261510@main

Reviewed commits have been landed. Closing PR #11370 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit f112de9 into WebKit:main Mar 10, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Mar 10, 2023
@xeenon xeenon deleted the bug/253722 branch September 5, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Extensions Bugs related to extension support.
Projects
None yet
4 participants