Claudio DeSouza a31fb1f6bc [cr146] Mojo typemap added for ts Urls
This is just to make the URL type more intuitive when used with strings.
This change corrects the url uses in our end.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a2622a33efbcdc7e4bcf72510775f7f93970fce8

commit a2622a33efbcdc7e4bcf72510775f7f93970fce8
Author: Fred Shih <ffred@chromium.org>
Date:   Wed Jan 21 17:07:46 2026 -0800

    Add mojo typemap for ts Url

    Currently URLs are a object type of {url: string}. This is annoying
    because there is a stutter when using it, for example:

    myObj.url.url

    This change maps the Url object directly to a string. So one can simply
    say:

    myObj.url <-- string type!

    The URL type wasn't used because url as a string is effectively
    calcified at this point. It's (probably) too risky to change all the
    callsites to url (and probably won't give us that much...).

    Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
    Bug: 40615900
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7018797
    Commit-Queue: Fred Shih <ffred@chromium.org>
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Michael Cui <mlcui@google.com>
    Reviewed-by: Roman Arora <romanarora@chromium.org>
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1572659}
2026-02-26 13:47:46 +00:00
2026-02-26 12:33:15 +00:00
2026-02-26 12:33:15 +00:00

Brave Core

Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make the Brave browser. Please also check https://github.com/brave/brave-browser

Follow @brave on Twitter for important announcements.

Resources

Community

You can ask questions and interact with the community in the following locations:

S
Description
No description provided
Readme MPL-2.0
3.8 GiB
Languages
C++ 36.9%
HTML 31.6%
Swift 9.4%
TypeScript 9%
Java 4.8%
Other 8.1%