From nobody Fri Nov 21 03:27:04 2025 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dCLHX5PWlz6GPY4 for ; Fri, 21 Nov 2025 03:27:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dCLHX3JyXz3SQv for ; Fri, 21 Nov 2025 03:27:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763695624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z0Adm4HLYcAav84uuHkGvDXdAtF2k19V6agENtQNrMs=; b=notUzYLVKaxjhNI7c6sPPFgCHRIJ9f23hSay8SuKTUAWi2aZ0lUO7jU8VqC8z6EouhI700 dbsuHDA4hi4oZFGjqFTZoZMRALtsj1/WSaHl7iT90+FiQfKpwKyoPrhcpekKGD98shXWSR 5MGymwipbbD88UugXcRAq7ZAeKYruXUj+7Ku3KyHh1J66XPP6sUY/xjHVIZtw9OTL8D2ZX 4v02mt5+cuomKEt11jVd5MnGunT31hLwn84KqmE4A7OWSg65k7brlg5X/cChpfkuoLArB3 usbQ43vFlKk1/nPl78pe6RrPxyAcjrO2h11nNCuaEATPKYrFFEZfCk2T01nqRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763695624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z0Adm4HLYcAav84uuHkGvDXdAtF2k19V6agENtQNrMs=; b=OLp1cguuV2Gt/SJjsRlr5RwWPxQ0GFvTLe1v5JSUYBI4Wt5mmiCu6tDWr+RwffoQ+QkTA0 SRhIfXwSeyGLXAG68HfPf/bNAGOf5VwO3NOFypnuVr8wzBsd8H9Zvgmwuzq2KuRtO7YM0f BC/FdDaCQ0tbZEpK8CmBBb2gUuv2RibamVriCWmK7srr9Zrj75VpykEWgeDpo+x1xbUsjF glKAbt7Z4buBi/+uoFzAhJzeEDsNar+rMtWlROnv4Cs0z1luGqlg2zo7xB+7fJynCpsBYE Dc/CZ7n46VIJzAr7FtBfYNod0b0FtidDVPmAuwHe2EVjOq8vzvv149F0J94W2w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763695624; a=rsa-sha256; cv=none; b=BCQJ051QELHlGGUVOl4xYr+6mBKQXpjF0XDllgSTVtyQvaOuQtAZn9vZxwYfjG8IwXCL48 YEb1+SZTdKJ53oepNz/cAxQui6LeETBq+AJaai0m/auatQO78TplCMVWYlPaWk+klarU/I NNEhIlN7AdDpv4SfQ7sG8oWNBjEK0f3aeZjDAlo7wbMq+ZUXeUR0nt/TIG5uUbcWiqqRp+ VZG5GUd8Lnla1bJUxvueuj6KCBvpw+mktkG0adWjtqd0vVYVn/iAdBkT3JD37c7fRVg1J0 eeGDcpSEVz5gpV62aA4mSWyX10ANNaw2PPk+dCwEV6An/IqGzD/UO+hifJ7Mmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4dCLHX2v0Czvl3 for ; Fri, 21 Nov 2025 03:27:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5AL3R40C072682 for ; Fri, 21 Nov 2025 03:27:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5AL3R4el072681 for ports-bugs@FreeBSD.org; Fri, 21 Nov 2025 03:27:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 291122] www/firefox: initial window is 500x120 pixels; profile's xulstore.json is getting absurd values written on exit Date: Fri, 21 Nov 2025 03:27:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: david@catwhisker.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D291122 Bug ID: 291122 Summary: www/firefox: initial window is 500x120 pixels; profile's xulstore.json is getting absurd values written on exit Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: gecko@FreeBSD.org Reporter: david@catwhisker.org Flags: maintainer-feedback?(gecko@FreeBSD.org) Assignee: gecko@FreeBSD.org I started noticing the behavior a couple of weeks ago, and after my usual d= aily updates didn't seem to help, I finally poked around enough to determine that the profile's xulstore.json file is being rewritten as firefox exits (as expected), but with seriously bogus values. My environment (as of today): FreeBSD g1-120.catwhisker.org 14.3-STABLE FreeBSD 14.3-STABLE #602 stable/14-n272914-fa1337393b84: Thu Nov 20 11:45:05 UTC 2025=20=20=20=20 root@g1-120.catwhisker.org:/common/S1/obj/usr/src/amd64.amd64/sys/CANARY am= d64 1403506 1403506 Installed ports are all updated as of the ports tree at main-n726256-41c4cade8808. In particular, firefox is: g1-120(14.3-S)[15] pkg info -o firefox\* firefox-145.0.1,2 www/firefox The window manager I am using is www/piewm (based on an early version of tv= twm, which is what I had been using in SunOS ca. 1993 or so, and continued when I started using FreeBSD in 1998, until I discovered piewm a few years later). After starting firefox, and manually re-sizing the window so it's actually usable, the xulstore.json file looks like: {"chrome://browser/content/browser.xhtml":{"main-window":{"screenX":"0","sc= reenY":"-1080","width":"1380","height":"1051","sizemode":"normal"},"sidebar= -title":{"value":"Bookmarks"},"toolbar-menubar":{"autohide":"-moz-missing\n= "}},"chrome://browser/content/places/bookmarksSidebar.xhtml":{"place:Cqewro= xEONFH0b8ILWSXYA=3D=3D":{"open":"true"},"place:Zb6FJ+zKg63cESydVyD3sQ=3D=3D= ":{"open":"true"},"place:U223EZSYgg2CPFnv/86HPg=3D=3D":{"open":"true"}}} Feeding it to jq, we get: { "chrome://browser/content/browser.xhtml": { "main-window": { "screenX": "0", "screenY": "-1080", "width": "1380", "height": "1051", "sizemode": "normal" }, "sidebar-title": { "value": "Bookmarks" }, "toolbar-menubar": { "autohide": "-moz-missing\n" } }, "chrome://browser/content/places/bookmarksSidebar.xhtml": { "place:CqewroxEONFH0b8ILWSXYA=3D=3D": { "open": "true" }, "place:Zb6FJ+zKg63cESydVyD3sQ=3D=3D": { "open": "true" }, "place:U223EZSYgg2CPFnv/86HPg=3D=3D": { "open": "true" } } } The important part for this issue is the chrome://browser/content/browser.xhtml{main-window} part: that has the wind= ow geometry. When I quit firefox (gracefully), that file gets overwritten, and the geome= try part gets: "main-window": { "screenX": "1", "screenY": "-2", "width": "0", "height": "0", "sizemode": "normal" }, I managed to "catch it in the act" via ktrace: 55049 BgIOThreadPool #7 RET _umtx_op 0 55049 BgIOThreadPool #7 CALL access(0x1672d93d0f08,0) 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json" 55049 BgIOThreadPool #7 RET access 0 55049 BgIOThreadPool #7 CALL=20 mkdir(0x1672c0d4aa48,0755) 55049 BgIOThreadPool #7 NAMI "/home/david/.mozilla/firefox/ikr1zr7v.defau= lt" 55049 BgIOThreadPool #7 RET mkdir -1 errno 17 File exists 55049 BgIOThreadPool #7 CALL=20 openat(AT_FDCWD,0x1672d09f0008,0x601,0666) 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json.tmp" 55049 BgIOThreadPool #7 RET openat 92/0x5c 55049 BgIOThreadPool #7 CALL write(0x5c,0x1672c0d30408,0x20c) 55049 BgIOThreadPool #7 GIO fd 92 wrote 524 bytes =20=20=20=20=20=20 "{"chrome://browser/content/browser.xhtml":{"main-window":{"screenX":"1","s= creenY":"-2","width":"0","height":"0","sizemode":"normal"},"sidebar-title":= {"value":"Bookmarks"},"toolbar-menubar":{"autohide":"-moz-missing\\n"}},"ch= rome://browser/content/places/bookmarksSidebar.xhtml":{"place:CqewroxEONFH0= b8ILWSX\ =20=20=20=20=20=20=20 YA=3D=3D":{"open":"true"},"place:Zb6FJ+zKg63cESydVyD3sQ=3D=3D":{"open":"tru= e"},"place:U223EZSYgg2CPFnv/86HPg=3D=3D":{"open":"true"},"place:5RxX05RMJ2I= Xs2jwAFaagA=3D=3D":{"open":"true"},"place:QOzH1kYvvT/L8EpVMDI82w=3D=3D":{"o= pen":"true"}}}" 55049 BgIOThreadPool #7 RET write 524/0x20c 55049 BgIOThreadPool #7 CALL close(0x5c) 55049 BgIOThreadPool #7 RET close 0 55049 BgIOThreadPool #7 CALL=20 fstatat(AT_FDCWD,0x1672d93d0f08,0x1672c9fdd510,0) 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json" 55049 BgIOThreadPool #7 STRU struct stat {dev=3D168, ino=3D14025176, mode=3D0100644, nlink=3D1, uid=3D1001, gid=3D0, rdev=3D18446744073709551615, atime=3D1763690823.309314000, mtime=3D1763690823.309347000, ctime=3D1763690823.309387000, birthtime=3D1763690823.309313000, size=3D533, blksize=3D32768, blocks=3D8, flags=3D0x0 } 55049 BgIOThreadPool #7 RET fstatat 0 55049 BgIOThreadPool #7 CALL access(0x1672d09f0008,0) 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json.tmp" 55049 BgIOThreadPool #7 RET access 0 55049 BgIOThreadPool #7 CALL=20 fstatat(AT_FDCWD,0x1672d93d0f08,0x1672c9fdd510,0) 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json" 55049 BgIOThreadPool #7 STRU struct stat {dev=3D168, ino=3D14025176, mode=3D0100644, nlink=3D1, uid=3D1001, gid=3D0, rdev=3D18446744073709551615, atime=3D1763690823.309314000, mtime=3D1763690823.309347000, ctime=3D1763690823.309387000, birthtime=3D1763690823.309313000, size=3D533, blksize=3D32768, blocks=3D8, flags=3D0x0 } 55049 BgIOThreadPool #7 RET fstatat 0 55049 BgIOThreadPool #7 CALL=20 fstatat(AT_FDCWD,0x1672d09f0008,0x1672cee67d10,0) 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json.tmp" 55049 BgIOThreadPool #7 STRU struct stat {dev=3D168, ino=3D14025128, mode=3D0100644, nlink=3D1, uid=3D1001, gid=3D0, rdev=3D18446744073709551615, atime=3D1763692594.914967000, mtime=3D1763692594.914987000, ctime=3D1763692594.914987000, birthtime=3D1763692594.914967000, size=3D524, blksize=3D32768, blocks=3D8, flags=3D0x0 } 55049 BgIOThreadPool #7 RET fstatat 0 55049 BgIOThreadPool #7 CALL access(0x1672c0d4aa48,0) 55049 BgIOThreadPool #7 NAMI "/home/david/.mozilla/firefox/ikr1zr7v.defau= lt" 55049 BgIOThreadPool #7 RET access 0 55049 BgIOThreadPool #7 CALL=20 fstatat(AT_FDCWD,0x1672c0d4aa48,0x1672cc9d0910,0) 55049 BgIOThreadPool #7 NAMI "/home/david/.mozilla/firefox/ikr1zr7v.defau= lt" 55049 BgIOThreadPool #7 STRU struct stat {dev=3D168, ino=3D14027414, mode= =3D040700, nlink=3D27, uid=3D1001, gid=3D0, rdev=3D18446744073709551615, atime=3D17629= 55742, mtime=3D1763692594.914972000, ctime=3D1763692594.914972000, birthtime=3D176= 2920197, size=3D4096, blksize=3D32768, blocks=3D8, flags=3D0x0 } 55049 BgIOThreadPool #7 RET fstatat 0 55049 BgIOThreadPool #7 CALL rename(0x1672d09f0008,0xdd07d4801fc) 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json.tmp" 55049 BgIOThreadPool #7 NAMI=20 "/home/david/.mozilla/firefox/ikr1zr7v.default/xulstore.json" 55049 BgIOThreadPool #7 RET rename 0 So I *think* this is probably a bug in firefox, rather than FreeBSD, but I'm not at all familiar with the process of reporting bugs there... and there i= s at least a plausibility(?) that there's some weird interaction between firefox= and ancient concepts like "window managers" (vs. "Desktop Environments") that someone may have overlooked, because... who would use such an archaic thing= in this day and age? And writing this up might at least give someone else who= is experiencing the issue a fighting chance. And yes, I even tried moving ~/.mozilla/firefox aside (wholesale), but the symptoms persisted. In the mean time, I have saved "good" copies of the xulstore.json file & written a script to run before firing up firefox, which restores the file f= rom the saved copy. Which is a bit klunky, but at least it makes firefox's handling of windows no worse than it historically has been. If I should be reporting this to Mozilla, I'd appreciate a wee bit of guida= nce. Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.=