Open Bug 379272 Opened 17 years ago Updated 2 years ago

Dragging and dropping a non-button element leaves it matching :active

Categories

(Core :: Layout, defect)

defect

Tracking

()

People

(Reporter: xavier, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 XPCOMViewer/0.9.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 XPCOMViewer/0.9.5

I've set up a drag and drop handler on a label, and used css styles so that the label has a different color when it's ":hover" and ":active"

When I click and hold, it turns to the ":active" defined color, then I move the pointer and drop it anywhere (on the location bar for instance).

The color of the label remains the one defined in the ":active" style (and in DOM inspector, the css rule shows that :active is still taken into account.

Reproducible: Always

Steps to Reproduce:
1. set up and startdrag handler on an element with an :active style
2. Drag and drop the element
3. 
Actual Results:  
The active style remains even when element is no longer selected

Expected Results:  
The element should be reset to its default style
can you please attach a minimal testcase that shows this problem? ('Add an attachment' above)
install the xpi, restart, then call URI chrome://test/chrome/test.xul
Drag the label, drop it, it remains red, as defined in the :active style

(style are declared with a data: protocol, but it is the same with a separate style sheet, I just made it as compact as possible).
Component: General → Drag and Drop
Product: Firefox → Core
QA Contact: general → drag-drop
I'm not sure what component this bug should be in.
Blocks: 225434
Status: UNCONFIRMED → NEW
Component: Drag and Drop → Layout
Ever confirmed: true
OS: Windows XP → All
QA Contact: drag-drop → layout
Hardware: PC → All
Version: unspecified → Trunk
Flags: wanted1.9.2?
Summary: Drag and dropping an non-button element does not reset the :active pseudo class → Dragging and dropping a non-button element leaves it matching :active
Whatever component owns nsEventStateManager.cpp :-)
Flags: wanted1.9.2?
Flags: wanted1.9.2-
Flags: blocking1.9.2-
Bug 593959 should fix attachment 323590 [details], at least on Linux. Haven't tested
OSX/Windows
Depends on: 593959
It should block bug 675925, just like bug 666864 does.
oops, read bug 675925 as bug 674925
See Also: → 666864

There is a very old patch in bug 851103 for this but it got stuck on lack of tests.

Severity: normal → S3

The severity field for this bug is relatively low, S3. However, the bug has 8 duplicates.
:dholbert, could you consider increasing the bug severity?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dholbert)

The last needinfo from me was triggered in error by recent activity on the bug. I'm clearing the needinfo since this is a very old bug and I don't know if it's still relevant.

Flags: needinfo?(dholbert)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: