Open Bug 1819668 Opened 3 years ago Updated 3 years ago

firefox.exe.manifest not properly embedded in resulting binary if using non-default $(MOZ_APP_NAME) when built with mingw toolchain.

Categories

(Firefox Build System :: General, defect, P5)

Firefox 102
Desktop
Windows
defect

Tracking

(Not tracked)

People

(Reporter: morgan, Unassigned)

Details

Ran into this issue when experimenting with renaming Tor Browser fromfirefox.exe to torbrowser.exe . There isn't any machinery which will properly rename/move the checked-in firefox.exe.manifest file (and update assemblyIdentity's name attribute) if $(MOZ_APP_NAME) is something other than 'firefox'.

As a result, Windows assumes the resulting build is some legacy application, and helpfully reports the wrong native screen dpi when using a hi-dpi screens (among potentially other back-compat related problems). This results in scrollbars that are 2x as large as they should be.

Swapping in a good Manifest entry to the renamed build executable using the windows tool 'Resource Hacker' fixes the issue, as does renaming the underlying manifest (and updating moz.build and Makefile.in in the same directory) results in a executable with the manifest properly embedded.

This is confirmed broken on the ESR102 series (when built with the mingw toolchain at least) but a quick look through searchfox indicates the relevant source hasn't changed in latest. I have not tried building with MSVC.

I would expect this build machinery to update itself when $(MOZ_APP_NAME) is changed and properly embed the manifest.

Moving to build system component.

Product: Firefox → Firefox Build System

The severity field is not set for this bug.
:ahochheiden, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ahochheiden)
Severity: -- → S4
Flags: needinfo?(ahochheiden)
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.