[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1115851: firefox-esr: screen size fencepost regression



Package: firefox-esr
Version: 140.3.0esr-1~deb11u2
Severity: minor
X-Debbugs-Cc: tg@mirbsd.de, debian-lts@lists.debian.org

Having had to update from 128.14.0esr-1~deb11u1 I notice a
regression with regards to the size of the Firefox window.

My setup is a laptop with 1024×768 px resolution running
evilwm, a window manager that adds only a one-pixel border
around windows but allows the border to be offscreen.

What I want, for Firefox, is for the window to be as big
as possible, that is, 1024×768 content and the border offscreen.

I can get that by wm-fullscreening with Ctrl-Alt-X, but
unfortunately, Firefox has always interpreted that as the
same as F11 for firefox-fullscreening with menu bar hiding,
which I decidedly do *not* want in the normal case (and
trigger manually if needed).

‣‣‣ if there’s a way to disable t̲h̲a̲t̲, I’ll consider it an
    even better fix for my real issue

Up to 128, I could get the window to a good size and
position with:

$ xdotool selectwindow windowmove 0 0 windowsize 1024 768

However, with 140, something is wrong, but I cannot find
the rhyme or reason with it. Even if I toy with things like
windowmove -1 -1 or windowsize 1025 769 or 1026 770, it
either draws a border or hides one column of pixels from the
window content. And, funnily enough, sometimes if I move to
a different virtual workspace and back, it doesn’t even draw
the border so a row and a column of background shine through.

(Mostly, I want it as large as possible, so that I get the
maximum viewport into websites, and flush with the right and
bottom margin of the screen so I can move the mouse there to
the very end and consistently click the scrollbar. If it has
a window border at the top and left, I’d accept that.)

When I hold Ctrl-Alt-I to obtain window geometry, Firefox
reports nonsensical values (574x648+0+0).

Even after starting, it renders the window in a weird state:
window border top and left, shine-through of the background
(one pixel) bottom and right. In that state we get…

tg@x61p:~ $ xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x1800014 "Mozilla Firefox"

  Absolute upper-left X:  1
  Absolute upper-left Y:  1
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1023
  Height: 767
  Depth: 24
  Visual: 0xe1
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x1800002 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1+1  -0+1  -0-0  +1-0
  -geometry 1023x767+0+0

If I then do the xdotool, the window decoration vanishes and
the window moves a pixel to the top left, but the bottom right
is still shine-through. In that state, we have:

tg@x61p:~ $ xwininfo                                                                                            

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window.

xwininfo: Window id: 0x1800014 "Mozilla Firefox"

  Absolute upper-left X:  0
  Absolute upper-left Y:  0
  Relative upper-left X:  0
  Relative upper-left Y:  0
  Width: 1024
  Height: 768
  Depth: 24
  Visual: 0xe1
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x1800002 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +0+0  -0+0  -0-0  +0-0
  -geometry 1024x768+-1+-1

I suspect there to be an off-by-one (fencepost) in where the
browser draws its window, somewhere, that is new compared to
earlier versions.


-- Package-specific info:


-- Addons package information

-- System Information:
Debian Release: 11.11
  APT prefers oldoldstable-updates
  APT policy: (500, 'oldoldstable-updates'), (500, 'oldoldstable-security'), (500, 'oldoldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-35-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages firefox-esr depends on:
ii  debianutils          4.11.2
ii  fontconfig           2.13.1-4.2
ii  libasound2           1.2.4-1.1
ii  libatk1.0-0          2.36.0-2
ii  libc6                2.31-13+deb11u13
ii  libcairo-gobject2    1.16.0-5
ii  libcairo2            1.16.0-5
ii  libdbus-1-3          1.12.28-0+deb11u1
ii  libevent-2.1-7       2.1.12-stable-1
ii  libffi7              3.3-6
ii  libfontconfig1       2.13.1-4.2
ii  libfreetype6         2.10.4+dfsg-1+deb11u2
ii  libgcc-s1            10.2.1-6
ii  libgdk-pixbuf-2.0-0  2.42.2+dfsg-1+deb11u3
ii  libglib2.0-0         2.66.8-1+deb11u6
ii  libgtk-3-0           3.24.24-4+deb11u4
ii  libpango-1.0-0       1.46.2-3
ii  libstdc++6           10.2.1-6
ii  libx11-6             2:1.7.2-1+deb11u2
ii  libx11-xcb1          2:1.7.2-1+deb11u2
ii  libxcb-shm0          1.14-3
ii  libxcb1              1.14-3
ii  libxcomposite1       1:0.4.5-1
ii  libxdamage1          1:1.1.5-2
ii  libxext6             2:1.3.3-1.1
ii  libxfixes3           1:5.0.3-2
ii  libxrandr2           2:1.5.1-1
ii  procps               2:3.3.17-5
ii  zlib1g               1:1.2.11.dfsg-2+deb11u2

Versions of packages firefox-esr recommends:
ii  libavcodec58  7:4.3.9-0+deb11u1

Versions of packages firefox-esr suggests:
ii  fonts-lmodern          2.004.5-6.1
ii  fonts-stix [otf-stix]  1.1.1-4.1
pn  libcanberra0           <none>
ii  libgssapi-krb5-2       1.18.3-6+deb11u7
pn  pulseaudio             <none>

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/lib/firefox-esr/browser/omni.ja (from firefox-esr package)
debsums: changed file /usr/lib/firefox-esr/omni.ja (from firefox-esr package)

Reply to: