Drag and drop into a window should focus the window

NEW
Unassigned

Status

()

Core
Event Handling
13 years ago
5 years ago

People

(Reporter: Martijn Wargers (zombie), Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
To reproduce:
- Focus the url bar
- Drag and drop some html file from outside Mozilla into Mozilla


Expected result:
The window is focused

Actual result:
The url bar is focused

IE6 is doing this correctly.

I have a patch in bug 280635 that handles this in the eventstatemanager.cpp by trying to focus the dropped content (when it is focusable, otherwise it moves up in the content).
Not sure yet, whether I'm using that, since there is a problem with it.
But I think the principle of focusing the content when dropping something (when it is droppable and focusable) is a correct one.
(Reporter)

Comment 1

13 years ago
Created attachment 216833 [details] [diff] [review]
patch

Actually, this should probably be handled here.
This works nicely for Firefox, but I'm not sure if it works for embedding. I don't know how to check that.
Assignee: events → nobody
QA Contact: ian → events

Comment 2

5 years ago
I think this bug is more common:
Firefox does not get focus if I drag and drop a file.
Firefox does not get focus if I drag and drop an image into images.google.com
Firefox does not get focus if I drag and drop a text into a textarea.
Firefox does not get focus if I drag and drop an url link.

Can anybody verify and review proposed patch? Is it outdated?
You need to log in before you can comment on or make changes to this bug.