Bug 272277 - www/firefox: about:support (Troubleshooting Information) is almost completely without information
Summary: www/firefox: about:support (Troubleshooting Information) is almost completely...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Graham Perrin
URL: https://github.com/freebsd/freebsd-po...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-29 05:11 UTC by Graham Perrin
Modified: 2023-07-31 00:05 UTC (History)
5 users (show)

See Also:


Attachments
text from about:support (1.71 KB, text/plain)
2023-06-29 05:11 UTC, Graham Perrin
no flags Details
about:support text from a clean installation of 115.0.1 on Windows 10 22H2 (25.97 KB, text/plain)
2023-07-09 20:07 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2023-06-29 05:11:43 UTC
Created attachment 243069 [details]
text from about:support

From bug 270642 comment 15: 

> … Since 114, the about:support page has gone …

Confirmed with firefox-114.0.2,2 on FreeBSD 14.0-CURRENT

Whilst the page does offer links out to things such as about:plugins, it seems that the page lacks values; fields are empty.
Comment 1 Andrew "RhodiumToad" Gierth 2023-06-29 06:21:58 UTC
Also confirmed in 115.0,2 on 13-STABLE.
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-07-09 20:07:34 UTC
Created attachment 243322 [details]
about:support text from a clean installation of 115.0.1 on Windows 10 22H2

Not reproducible with 115.0.1 build 20230706202047 on Windows 10, viewed via RDP. 

about:buildconfig shows, built from <https://hg.mozilla.org/releases/mozilla-release/rev/a8863781080622b6a7ee902a464d1bbdf065341e>.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2023-07-09 20:18:23 UTC
(In reply to Graham Perrin from comment #2)

> … on Windows 10 22H2, viewed via RDP. …

Correction: whilst I did (also) have a remote view of Firefox 22H2, the about:support attached to comment 2 was from a remote view of Firefox on Windows Server (installed without admin privileges).
Comment 4 (intentionally left blank) 2023-07-20 16:29:31 UTC
gecko-dev $ git bisect bad
f993f9a58b626c3f370b330148788b1909647c53 is the first bad commit

https://github.com/mozilla/gecko-dev/commit/f993f9a58b62
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2023-07-20 23:08:01 UTC
Re: comment 4

Thanks

Through conversation under <https://matrix.to/#/!lrZtdjyLpBmoKbMdyx:mozilla.org/$uDhcDoWDBnWo3D16ioMyxcKhMUURe4syK__ZDQyZJwA?via=mozilla.org&via=matrix.org&via=igalia.com> in Mozilla's developers room, partly with reference to <https://paste.ee/p/k36Hl>, @emilio:mozilla.org observes: 

> It seems you're hitting this
– <https://searchfox.org/mozilla-central/rev/d35b3fe3d8230a255b988afb0ebda1176fc2f50b/dom/base/ChromeUtils.cpp#1443>
Comment 6 Emilio Cobos Álvarez 2023-07-21 01:39:57 UTC
FWIW, that means that this probably failed to get any process info, somehow... https://searchfox.org/mozilla-central/rev/d35b3fe3d8230a255b988afb0ebda1176fc2f50b/toolkit/components/processtools/ProcInfo_bsd.cpp#42
Comment 7 Jan Beich freebsd_committer freebsd_triage 2023-07-21 23:48:25 UTC
ProcInfo_bsd.cpp is OpenBSD-only per https://searchfox.org/mozilla-central/rev/d35b3fe3d8230a255b988afb0ebda1176fc2f50b/toolkit/components/processtools/moz.build#42-43
- OpenBSD KERN_PROC_SHOW_THREADS is DragonFly KERN_PROC_FLAG_LWP, NetBSD KERN_LWP and not necessary on FreeBSD
- OpenBSD p_tid (kinfo_proc) is DragonFly kl_tid (kinfo_lwp), FreeBSD ki_tid (kinfo_proc), NetBSD l_lid (kinfo_lwp)
- NetBSD/OpeNBSD mib[4] (size of kinfo_proc) + mib[5] (number of kinfo_proc) are not supported on DragonFly/FreeBSD

If someone wants to work on this they'd need:
- Create VM for each BSD
- Extract Firefox code into a standalone easily testable program
- Fill the missing support, wrap with ifdefs and reduce superfluous difference
- Copy the modified code back to Firefox
- Adjust moz.build
Comment 8 (intentionally left blank) 2023-07-25 00:42:04 UTC
Resolved locally after ports 57ca3177d2a5 "www/firefox: update to 116.0 (rc1)"
Comment 9 Graham Perrin freebsd_committer freebsd_triage 2023-07-31 00:05:52 UTC
Pinpointing the fix: 

patch-toolkit_compontents_processtools_procinfo__bsd.c