Files
brave-core/components/brave_new_tab_ui
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
..