Closed Bug 1618411 Opened 4 years ago Closed 4 years ago

Incorrect installed file set on non-Linux OS's using gtk

Categories

(Core :: Widget: Gtk, defect)

73 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: mforney, Assigned: mforney)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

Built firefox on several operating systems through pkgsrc (Linux, NetBSD), all of which use GTK, then compared the installed file lists.

Actual results:

The list of installed files unexpectedly differed in several places (see https://github.com/NetBSD/pkgsrc/commit/578023c8cbcb59b197d696977e0c029aaefc0e9b). This indicates that some files were installed when they shouldn't be, or not installed when they should be.

Installed on NetBSD, but not Linux:

/usr/lib/firefox/browser/chrome/browser/skin/classic/browser/import-export.svg
/usr/lib/firefox/browser/chrome/browser/skin/classic/browser/sort.svg

Installed on Linux, but not NetBSD:

/usr/lib/firefox/fonts/TwemojiMozilla.ttf
/usr/lib/firefox/browser/features/formautofill@mozilla.org/chrome/res/autocomplete-item.css
/usr/lib/firefox/browser/features/formautofill@mozilla.org/chrome/res/editDialog.css

Expected results:

/usr/lib/firefox/browser/chrome/browser/skin/classic/browser/import-export.svg
/usr/lib/firefox/browser/chrome/browser/skin/classic/browser/sort.svg

These files are referenced only by browser/themes/osx/places/organizer.css and browser/themes/windows/places/organizer.css, which are only used when MOZ_WIDGET_TOOLKIT is cocoa or windows. However, they are installed when XP_LINUX is not defined. Instead, they should be installed when MOZ_WIDGET_GTK is not defined.

/usr/lib/firefox/fonts/TwemojiMozilla.ttf

TwemojiMozilla.ttf is needed for gfx/thebes/gfxPlatformGtk.cpp (built when MOZ_WIDGET_TOOLKIT is gtk) and gfx/thebes/gfxWindowsPlatform.cpp (built when MOZ_WIDGET_TOOLKIT is windows). However, it is installed only when OS_ARCH is WINNT or Linux. Instead, it should be installed when MOZ_WIDGET_TOOLKIT is windows or gtk.

/usr/lib/firefox/browser/features/formautofill@mozilla.org/chrome/res/autocomplete-item.css
/usr/lib/firefox/browser/features/formautofill@mozilla.org/chrome/res/editDialog.css

I'm not sure about these. I believe they are needed by other non-Linux operating systems using GTK, but I'm not sure if the conditions in browser/extensions/formautofill/moz.build should be switched to use MOZ_WIDGET_TOOLKIT. I believe this depends on whether the linux formautofill skin is used on Android as well as GTK.

TwemojiMozilla.ttf is used on all GTK platforms, not just Linux.

import-export.svg and sort.svg aren't used on GTK platforms, so
they shouldn't be installed for non-Linux GTK platforms.

autocomplete-item.css and editDialog.css are used on all GTK
platforms, not just Linux.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Assignee: nobody → mforney
Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cc20bf1a0087
Fix installed file conditions on non-Linux platforms using GTK r=dao
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: