Closed Bug 1764610 Opened 3 years ago Closed 3 years ago

Context menu offset in Responsive Design Mode

Categories

(DevTools :: Responsive Design Mode, defect)

Firefox 99
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1759962

People

(Reporter: pacoalamosal, Unassigned)

Details

Attachments

(1 file)

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

Steps to reproduce:

  1. Enter Responsive Design Mode on any website.
  2. Select any of the Device presets from the Devices dropdown menu.
  3. Right click anywhere on the website viewport.

Tested under the following system:
OS: Ubuntu 21.10 64-bit
GNOME 40.4.0
Wayland windowing system
Latest updates installed

Actual results:

The secondary click context menu appears with its horizontal and vertical positions dramatically offset to the right and downwards. Its horizontal position is bound by the display boundary but vertically the offset remains constant and the menu may appear below the bottom edge of the display and thus not be visible.

The issue occurs regardless of the state of zoom, viewport rotation, or touch simulation. It becomes less dramatic as the aspect ratio of the selected Device preset approaches the actual aspect ratio of the display output, and disappears completely when both match. In a 1080p 16:9 display, the issue disappears under the 720p, 1080p and 4k presets.

The issue can be circumvented by switching from a Device preset to Responsive mode, even if the viewport dimensions remain unchanged. However, if any preset is selected again the issue recurs.

The following are reports of similar or identical issues:

https://bugzilla.mozilla.org/show_bug.cgi?id=1461796
https://bugzilla.mozilla.org/show_bug.cgi?id=1488991
https://bugzilla.mozilla.org/show_bug.cgi?id=1556962

However, they all appear to have been resolved in previous versions of Firefox and I could not find one for the current version.

Expected results:

The context menu should appear with its top-left position aligned to the location of the click.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Component: Widget: Gtk → Responsive Design Mode
Product: Core → DevTools

Yeah this slipped on 99 but should be fixed in beta and nightly, can you confirm?

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

I can confirm it is resolved on beta and nightly. Thank you very much.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: