[Webkit-unassigned] [Bug 207539] New: Add unsupported regular expressions in Content Blocker url-filter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 11 06:31:00 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=207539

            Bug ID: 207539
           Summary: Add unsupported regular expressions in Content Blocker
                    url-filter
           Product: WebKit
           Version: Other
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: khickinson at brave.com

The Content Blocker url-filter string is very limiting in terms of available regex syntax. As seen here: https://developer.apple.com/documentation/safariservices/creating_a_content_blocker, it specifies that `url-filter` can be used to match more than just a specific URL, using regular expressions. However the then listed supported characters is only a very limited subset of regular expressions. The API should allow use of all or most of the regex language as seen here: https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference

At Brave we use a combination of blocklists and many rules include basic regex such as logical or's. This makes it very difficult to convert rules written for AdBlock Plus or uBlock Origin without changing the underlying rule or splitting them into multiple rules.

rdar://FB7557881

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200211/446e60e2/attachment.htm>


More information about the webkit-unassigned mailing list