Use spidermonkey regex in URLPattern
Categories
(Core :: Networking, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: edgul, Assigned: edgul)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged][necko-priority-queue])
Attachments
(1 file, 10 obsolete files)
There is at least one WPT failure that should be addressed by supplying the SpiderMonkey regex to the URLPattern crate:
Pattern: [{"pathname":"*{}**?"}] Inputs: [{"pathname":"foobar"}]
Let's fix this as a followup to the URLPattern interop 2025 project.
Updated•4 months ago
|
Quick status update for anyone following:
The above patch contains an almost working prototype where we provide a rust implementation of Spidermonkey Regex functionality to the urlpattern crate. We create C-API for the necessary SM calls and invoke from rust. Note that the current approach is one that creates the SM RegExp object on demand rather than handling any GC problems created by passing SM GC-controlled objects through rust. This has obvious performance issues that hopefully we can resolve after we get the POC working.
Note that the above patch depends on upstreaming a small amount of changes to the urlpattern crate. So far the necessary changes are shown here: https://github.com/denoland/rust-urlpattern/compare/main...edgul:rust-urlpattern:tmp
Updated•4 months ago
|
Comment 3•4 months ago
|
||
Updated•2 months ago
|
The interop aspect of this project is closing, moving this into queue to be handled as maintenance
| Assignee | ||
Comment 10•1 month ago
|
||
| Assignee | ||
Comment 11•1 month ago
|
||
| Assignee | ||
Comment 12•1 month ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 13•1 month ago
|
||
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
| Assignee | ||
Comment 14•1 month ago
|
||
This patch adds Trace functions so that when incremental GC happens we can Trace down to the spidermonkey regexp obj that is stored in the urlpattern::component. It's seems a bit complicated because of having to pass through the ffi boundary.
Comment 15•1 month ago
|
||
Comment 16•1 month ago
|
||
Comment on attachment 9538010 [details]
Bug 1984171 - Add URLPattern GC incremental slicing for spidermonkey regexp obj r?iain,smaug
Revision D279222 was moved to bug 2011529. Setting attachment 9538010 [details] to obsolete.
Comment 17•1 month ago
|
||
Comment 18•1 month ago
|
||
Updated•1 month ago
|
Comment 19•1 month ago
|
||
Comment 20•1 month ago
|
||
Comment 21•1 month ago
|
||
Backed out for causing failures complaining about regexResult.
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/d8594f11efadec8cbad9c477e149b65e4444d330
Push where failures started: https://treeherder.mozilla.org/jobs?repo=autoland&selectedTaskRun=P7sPJKPyThSZ5Pa3n272Tg.0&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel&revision=9a8624999ab9dfd0e34d53f4fd6dfe90bfadc9c6
Failure log: https://treeherder.mozilla.org/logviewer?job_id=544954988&repo=autoland&task=P7sPJKPyThSZ5Pa3n272Tg.0&lineNumber=4836
Comment 22•1 month ago
|
||
Comment 23•1 month ago
|
||
| bugherder | ||
Updated•15 days ago
|
Updated•10 days ago
|
Description
•