Commit Graph
12 Commits
Author SHA1 Message Date
Sylvestre Ledru 9eb1a31a98 Bug 2023419 - Remove Emacs/Vim modelines from dom/ r=emilio,media-playback-reviewers,webidl,padenot
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287843
2026-03-16 21:02:32 +00:00
Ed Guloien 54eb0aae95 Bug 2016192 - Make UrlPatternGlue repr(transparent) instead of repr(C) r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D282871
2026-02-12 15:53:20 +00:00
Ed Guloien c92c25963c Bug 2013644 - rename all variants of urlp prefixes to urlpattern for better readability r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D282727
2026-02-11 20:10:47 +00:00
Ed Guloien bb8fd8d7fb Bug 1984171 - Added spidermonkey regex into URLPattern by integrating with urlpattern crate r=necko-reviewers,valentin,iain,smaug
This patch integrates spidermonkey regex into urlpattern crate so the URLPattern
API uses EcmaScript regex instead of rust's regex.
The dom URLPattern holds onto an opaque pointer to the urlpattern::URLPattern<R>
from the crates lib.rs. Where we implement SpiderMonkeyRegexp for RegExp (R).
We use an ffi api to access SpiderMonkey parsing for pattern construction
and exec for matching. During parsing, SpiderMonkey produces a regexp object
that can be held by our SpiderMonkeyRegExp, which is kept alive ultimately by the dom's URLPattern.

It's a bit clunky because Spidermonkey works with UTF-16, while our WebAPI and rust works with UTF-8
but it seems to work.

Also I got rid of some unnecessary Urlp types and their associated funcions and tests by using more opaque pointers.

Differential Revision: https://phabricator.services.mozilla.com/D278548
2026-01-29 00:57:22 +00:00
Atila Butkovits a47d3d7422 Revert "Bug 1984171, Bug 2011767 - Added spidermonkey regex into URLPattern by integrating with urlpattern crate r=necko-reviewers,valentin,iain,smaug" for causing failures complaining about regexResult.
This reverts commit 3fe7170728.

Revert "Bug 2011767 - urlpattern crate version bump to fix CI bustage and some perf fixes r=necko-reviewers,supply-chain-reviewers,kershaw"

This reverts commit 34fe02635a.
2026-01-22 20:49:27 +00:00
Ed Guloien 3fe7170728 Bug 1984171 - Added spidermonkey regex into URLPattern by integrating with urlpattern crate r=necko-reviewers,valentin,iain,smaug
This patch integrates spidermonkey regex into urlpattern crate so the URLPattern
API uses EcmaScript regex instead of rust's regex.
The dom URLPattern holds onto an opaque pointer to the urlpattern::URLPattern<R>
from the crates lib.rs. Where we implement SpiderMonkeyRegexp for RegExp (R).
We use an ffi api to access SpiderMonkey parsing for pattern construction
and exec for matching. During parsing, SpiderMonkey produces a regexp object
that can be held by our SpiderMonkeyRegExp, which is kept alive ultimately by the dom's URLPattern.

It's a bit clunky because Spidermonkey works with UTF-16, while our WebAPI and rust works with UTF-8
but it seems to work.

Also I got rid of some unnecessary Urlp types and their associated funcions and tests by using more opaque pointers.

Differential Revision: https://phabricator.services.mozilla.com/D278548
2026-01-22 14:54:40 +00:00
Cristina Horotan d5adac594c Revert "Bug 1984171 - Added spidermonkey regex into URLPattern by integrating with urlpattern crate r=necko-reviewers,valentin,iain,smaug" for causing build bustages
This reverts commit ed54d1409d.

Revert "Bug 1984171 - Vendor in urlpattern 0.5.0 crate r=necko-reviewers,supply-chain-reviewers,valentin"

This reverts commit 35fa66706d.
2026-01-20 22:14:22 +00:00
Ed Guloien ed54d1409d Bug 1984171 - Added spidermonkey regex into URLPattern by integrating with urlpattern crate r=necko-reviewers,valentin,iain,smaug
This patch integrates spidermonkey regex into urlpattern crate so the URLPattern
API uses EcmaScript regex instead of rust's regex.
The dom URLPattern holds onto an opaque pointer to the urlpattern::URLPattern<R>
from the crates lib.rs. Where we implement SpiderMonkeyRegexp for RegExp (R).
We use an ffi api to access SpiderMonkey parsing for pattern construction
and exec for matching. During parsing, SpiderMonkey produces a regexp object
that can be held by our SpiderMonkeyRegExp, which is kept alive ultimately by the dom's URLPattern.

It's a bit clunky because Spidermonkey works with UTF-16, while our WebAPI and rust works with UTF-8
but it seems to work.

Also I got rid of some unnecessary Urlp types and their associated funcions and tests by using more opaque pointers.

Differential Revision: https://phabricator.services.mozilla.com/D278548
2026-01-20 20:15:35 +00:00
Emilio Cobos Álvarez 791917d8af Bug 1976665 - Sort headers in dom/. r=dom-core,media-playback-reviewers,webrtc-reviewers,dom-storage-reviewers,padenot,janv,smaug,jesup,jib
Most changes are automated. Relevant bit is dom/.clang-format. I had to
manually disable clang-format in a few places where importing external
files and so on that aren't self-contained, and fix a couple includes /
forward declarations.

Differential Revision: https://phabricator.services.mozilla.com/D256800
2025-08-05 11:47:34 +00:00
edgul 3ed1f00f66 Bug 1731418 - Added URLPattern webIDL r=necko-reviewers,webidl,smaug,valentin
Differential Revision: https://phabricator.services.mozilla.com/D251664
2025-06-24 22:12:15 +00:00
Alexandru Marc 869c4d8b54 Revert "Bug 1731418 - Expose URLPattern to worker and service worker interface. r=smaug" for causing gtest failures @ TestURLPatternGlue
This reverts commit b631be8020.

Revert "Bug 1731418 - Put URLPattern api behind a pref r=webidl,smaug"

This reverts commit de9f4d3b13.

Revert "Bug 1731418 - Update wpt expectations r=jesup"

This reverts commit 2fb1dba8ca.

Revert "Bug 1731418 - Added URLPattern webIDL r=necko-reviewers,webidl,smaug,valentin"

This reverts commit 003514784b.

Revert "Bug 1948330 - Added urlpattern glue wrapper r=necko-reviewers,valentin,jesup"

This reverts commit 83a1d7ad95.

Revert "Bug 1948330 - Added urlpattern crate r=jesup,supply-chain-reviewers,valentin"

This reverts commit 12b30dbf00.

Revert "Bug 1972851 - Update ohttp to 0.6.0 r=supply-chain-reviewers,necko-reviewers,valentin"

This reverts commit 3e7b9b63b5.
2025-06-20 09:08:06 +00:00
edgul 003514784b Bug 1731418 - Added URLPattern webIDL r=necko-reviewers,webidl,smaug,valentin
Differential Revision: https://phabricator.services.mozilla.com/D251664
2025-06-19 21:08:39 +00:00