Open Bug 332346 Opened 18 years ago Updated 2 years ago

Drag and drop into a window should focus the window

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: martijn.martijn, Unassigned)

References

Details

Attachments

(1 file)

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.
Attached patch patchSplinter Review
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
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?
Component: Event Handling → User events and focus handling

Bump

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: