Open Bug 1595272 Opened 5 years ago Updated 2 years ago

open javascript dialogs at mouse position

Categories

(Core :: DOM: Core & HTML, enhancement)

72 Branch
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: maggus.staab, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

open a javascript dialog using alert() confirm() or prompt() in a website

Actual results:

the dialog getting opened is centered within the whole screen.

Expected results:

the dialog should be nearer to the point where the user activiy happened, e.g. besides the button/link/element beeing clicked (like a context menu opens directly at mouse position).

that way the dialog appears in the near of the point where the user is already focused on. also the distance which the user needs to move with the mouse pointer would be way shorter.

same is true after the user interacted with the dialog.. after the user took action within the dialog the position of the user focus and input-device/cursor is near the actual flow the user was working thru. so switching back from the dialog into the context the user was in before is way more intuitive.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.