Where to find the code files for the Brave://downloads

I’m coding an implementation to help solve an issue on the github of brave but i’m unable to find where are the files for the brave://downloads page located in the git. In the same time, if possible i’m also looking for the files for the pop up download icon that appears after downloading a file while using brave. Thanks in advance !

@AlexisSkynner

Brave Browser Stable Releases:

https://github.com/brave/brave-browser/blob/master/CHANGELOG_DESKTOP.md

Brave Browser Beta:

https://github.com/brave/brave-browser/releases?q=beta&expanded=true

Brave Browser Nightly:

https://github.com/brave/brave-browser/releases?q=nightly&expanded=true

Brave Browser Dev:

https://github.com/brave/brave-browser/releases?q=dev&expanded=true




Hi ! I don’t really understand the reason why you sent me those links… Can you unlighten me please ?

@AlexisSkynner

Probably, you are at the wrong location for the answers that you seek . . . unless another “git guy” comes along.

Probably, you will do better, beginning your search for answers, at:

https://github.com/brave/brave-browser


Why I posted what I posted:

Brave Support prefers that member of the Brave Community, use the Brave Community search feature.

People searching for where to download the Brave Browser installer, are likely to use search terms including:

  • files
  • Brave
  • downloads

Those who search, are likely to find your Original Post. Some of the new members of the forum, will try to find the Brave Browser installer at . . . what you wrote in your Description:

  • brave://downloads

I replied (what I wrote) in order for the new or unaware members, to have a chance of finding specific files - installers - that they could download from github.com . . . and . . .

I figured - given that you apparently already have some git [and GitHub, and GitLab] abilities - you could click on one of the github.com links, and head to github.com for a lot of digging around, asking questions there, aiming toward the webpages at github.com of interest to you.

Here are the results of a Brave Community search - criteria: "gitlab’

https://community.brave.com/search?q=gitlab%20order%3Alatest

Not much of anything there for you.

Here are the results of a Brave Community search - criteria: "github’

https://community.brave.com/search?q=github%20order%3Alatest

Tons of results. 99.9999% are about, where Brave Community members can find one or both of:

  • an issue related to the difficulties they are having with Brave Browser
  • where they can download the Brave Browser installer for their computing device

Wish you luck, finding what you need; and probably will get there faster, at:

https://github.com/brave/brave-browser


Probably what you want is in chromium.
Brave Core has this: https://github.com/brave/brave-core/blob/master/browser/download/brave_download_item_model.cc

But most of the ones that contain specific logic for managing and representing download items are in Chromium itself: https://chromium.googlesource.com/chromium/src.git/+/refs/heads/main/chrome/browser/download/

Your starting point is Brave’s own github.

Alright,
Thanks for the explanations, I’ve already looked in the github repository but i might continue digging in it to find the files I’m looking for.
I went asking over here because some discords modo of brave told me I might found what I needed more over here.
Have a nice day !

Yes that’s what I was starting to imagine, unfortunately… I know there is the same in chromium with chromium://donwloads type of page but i was thinking brave might have implemented its own download page as it has 4 or 5 pages like that with wallet/parameters …
Thanks for the response, I’ll continue looking into the github.

Hey!

  1. brave://downloads page:
    It’s based on Chromium’s UI, so check here:

swift

chromium/src/chrome/browser/ui/webui/downloads/

For Brave-specific code, look in:

bash

brave-browser/src/brave/
  1. Download popup icon (shelf bubble):
    In Chromium, look in:

swift

chromium/src/chrome/browser/download/

For Brave customizations, check:

brave-browser/src/brave/browser/download/

Use git grep downloads_ui to search for related files!

Let me know if you need more help.

2 Likes

Hey ! Thanks for the answer ! I had quite figured this out while digging into the build of brave/chromium, I managed to find some cpp and html code related to it but there are so much interconnexions between every files that working on a simple thing become really hard :(. What i’d like to be able to to begin with is to be able to modify the files downloaded rectangles that appears in the brave://downloads but modifying the downloads.html doesn’t change anything after rebuild…

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.