Open Bug 1630856 Opened 5 years ago Updated 1 years ago

Developer Tools overlap page contents by 1 pixel when docked to the bottom of the window

Categories

(Core :: Widget: Gtk, defect, P3)

75 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: interfect, Unassigned)

Details

(Keywords: X11)

Attachments

(1 file)

Attached image side-by-side.png

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

Steps to reproduce:

On Ubuntu 18.04, under the default Gnome Shell, with Firefox 75.0, on a normal (non-high-DPI) monitor, when you have the developer tools open at the bottom of the window, the developer tools overlap the web page content by 1 pixel. Equivalently (as far as I can tell), window.innerHeight is reported as 1 pixel larger than it actually is.

To reproduce:

  1. Go to http://example.com
  2. Open the developer tools and make sure they are docked at the bottom of the window.
  3. In the console, ask for window.innerHeight
  4. Take a screenshot
  5. In your image editor, measure the height of the web page, from the bottom of the grey border under the URL bar, to the top of the grey border above the developer tools. Those borders are both part of the browser chrome and not the page itself.
  6. See that window.innerHeight is reported as 1 pixel larger than the actual rendered height of the page in the screenshot.

I've included a side-by-side screenshot of Firefox and Chromium, both with developer tools docked to the bottom of the window. When resized to exactly the same size on screen (300 pixels tall), Firefox reports a height 1 pixel taller (301).

Actual results:

The reported window inner height is 1 pixel taller than it actually is on screen.

Expected results:

The reported window inner height should equal the size of the page on the screen.

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

Resetting severity to default of --.

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --
Severity: -- → S4
Keywords: X11
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: