Bug 221045

Summary: [macOS] WebContent sandbox regex incorrect
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Per Arne Vollan
Reported 2021-01-27 08:57:20 PST
When the regex is intended to match the character '.', the pattern '\.' should be used.
Attachments
Patch (1.91 KB, patch)
2021-01-27 08:58 PST, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2021-01-27 08:57:43 PST
Per Arne Vollan
Comment 2 2021-01-27 08:58:53 PST
Brent Fulgham
Comment 3 2021-01-27 09:47:26 PST
Comment on attachment 418551 [details] Patch r=me. I'm embarrassed because I think I introduced those years ago. We might also consider switching away from regex, as the Sandbox team told us there are performance costs to using them.
Per Arne Vollan
Comment 4 2021-01-27 10:03:46 PST
(In reply to Brent Fulgham from comment #3) > Comment on attachment 418551 [details] > Patch > > r=me. I'm embarrassed because I think I introduced those years ago. We might > also consider switching away from regex, as the Sandbox team told us there > are performance costs to using them. These are easily mixed up in regex :) Yes, we should also look into switching away from regex. Thanks for reviewing!
EWS
Comment 5 2021-01-27 10:07:22 PST
Committed r271963: <https://trac.webkit.org/changeset/271963> All reviewed patches have been landed. Closing bug and clearing flags on attachment 418551 [details].
Note You need to log in before you can comment on or make changes to this bug.