Brave shield UI bug


#62

To add more, I encountered this bug in Oct 2018 (brave-beta-bin-0.55.10-2), then I switched back to muon and It was displaying correcting in the old version.
I gave another try to the chromium based build recently and this bug persist.
So it should be lead by some old code before Oct last year. In case you’re trying to locate the bug.

This thread list all of the installed font on my system: Missing content in the Brave Shield


#63

As best I can tell, as far as root causes go:
(please forgive me if I’m off base as I started using Brave yesterday)

  1. This issue appears for users who are using the linux zip distribution, the source for arch/slackware/manjaro etc all appear to be built by third parties but based on the official zip distribution.

  2. This issue does not appear in the official packages buildt for distros such as Ubuntu

  3. Inspecting the zip distribution for dev version 0.60.16 and the corresponding Ubuntu package there are a number of differences. Several directories and files are omitted in the zip version. I don’t know enough about Brave to understand if they are all significant yet.

Zip:

Ubuntu Package:

  1. The resources directory in the Ubuntu package is missing from the zip file.

  2. If this resources directory is extracted to the same location as the official Brave zip has been extracted to and Brave is run this issue is resolved. (Shields has text and Rewards has the localised strings)

Specifically brave_extension resources and brave_rewards locales seem to be missing or packaged in a way they’re not being sourced correctly and loaded in the zip distribution.

I am unsure how to fix this in the build.

There are a number of conditionals and nested scripts in the build (source: https://github.com/brave/brave-core/blob/master/BUILD.gn etc) and I can’t work out which line or file is wrong/missing to correctly include this with the zip distribution.

(edit: sorry my screenshots are jank, some hidpi issue, but you should get the idea - please let me know if you want further information)


What is the full list of flags that Brave Browser accepts?
#64

Thanks for narrowing it down the issue. We will fix this up soon


#65

Confirming that a copy of the “resources” directory solves it for arch linux.


#66

Is there a bug or milestone in Github that we can track?


#67

There’s a couple of them but #3104 should fix all UI related issue on Manjaro



#68

finally the solution to get the text in the brave shield, well done rjocoleman!
:smiley:


closed #69

opened #70