Closed Bug 606192 Opened 15 years ago Closed 15 years ago

After drag & drop any link/text/image to contents area, mouse click chrome elements does not work

Categories

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

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: alice0775, Assigned: smaug)

References

(Depends on 1 open bug)

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101020 Firefox/4.0b8pre ID:20101020120347 After drag & drop any text/image to contents area, mouse click chrome elements does not work. Clicking is necessary twice. Reproducible: Always Steps to Reproduce: 1. Start Minefield with -P option 2. Open about:home or any web site 3. drag & drop any text/link/image to the contents area 4. try to click Menu, toolbarbutton and tab. Actual Results: mouse click chrome elements does not work Clicking is necessary twice. Expected Results: mouse click chrome elements should work Regression window: Works: http://hg.mozilla.org/mozilla-central/rev/f68f9d741b29 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101019 Firefox/4.0b8pre ID:20101019023906 Fails: http://hg.mozilla.org/mozilla-central/rev/154f493a36dc Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101018 Firefox/4.0b8pre ID:20101019014003 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=f68f9d741b29&tochange=154f493a36dc
blocking2.0: --- → ?
Keywords: regression
This problem does not happen on Linux. http://hg.mozilla.org/mozilla-central/rev/4788083ce564 Mozilla/5.0 (X11; Linux i686; rv:2.0b8pre) Gecko/20101021 Firefox/4.0b8pre ID:20101021030951
So where should I drag something to content area?
Ah, doesn't happen on Linux :(
Assignee: nobody → Olli.Pettay
But still, do I need to drag something from desktop to content area or from chrome? Or from a content page to another content page?
(In reply to comment #2) > So where should I drag something to content area? a link in the contents area to its own content area a link in the content area to desktop a link in the contents area to bookmarks tool bar a link in the contents area to tab bar etc etc etc
I pushed a patch to tryserver (244e65776b0c), which might help here.
blocking2.0: ? → betaN+
So far I haven't managed to reproduce this on Windows 7.
Attached patch possible patch (obsolete) — Splinter Review
This fixes the one problem I saw (active state was kept in a chrome element), but since I couldn't reproduce this bug, it is hard to say whether this fixes the reported bug too.
(In reply to comment #7) > So far I haven't managed to reproduce this on Windows 7. [STR1] 1.Open about:home 2.Drag a link "About Mozilla" to white area of contents (Of course nothing happen) 3.Click [+] New Tab Button [Actual] Nothing happens [Exected] Open New tab [STR2] 1.Open about:home 2.Drag a link "About Mozilla" to Desktop 3.Click [+] New Tab Button [Actual] Nothing happens [Exected] Open New tab [STR3] 1.Open https://wiki.mozilla.org/WeeklyUpdates 2.Select text 2.Drag selected text to contents body (Of course nothing happen) 3.Click [+] New Tab Button [Actual] Nothing happens [Exected] Open New tab (In reply to comment #8) > I do see one problem which this > http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/opettay@mozilla.com-244e65776b0c/tryserver-win32/ > fixes. > Alice, could you test that build? *This tryserver build breaks the following test case. https://bug603550.bugzilla.mozilla.org/attachment.cgi?id=483440 *One thing improved Drag & drop something to input of contents . *No thing changed(after following, fails to click chorom element) Drag & drop something to contents body Drag & drop something to desktop http://hg.mozilla.org/try/rev/244e65776b0c Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101021 Firefox/4.0b8pre ID:20101021111229 BTW, This problem happens on Windows XP too.
My bad. >*This tryserver build breaks the following test case. >https://bug603550.bugzilla.mozilla.org/attachment.cgi?id=483440 This testcase broken on last m-c nightly too http://hg.mozilla.org/mozilla-central/rev/4788083ce564 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8pre) Gecko/20101021 Firefox/4.0b8pre ID:20101021042123
(In reply to comment #13) > http://ftp.mozilla.org/pub/mozilla.org/firefox/tryserver-builds/opettay@mozilla.com-810712c8674a/ > works here. > Alice, could you perhaps try that? The tryserber build works fine! And I can not reproduce this problem any more on the tryserber build.
Attached patch patchSplinter Review
So when we're doing dragging, don't mark any ESM active. Also, when mousedown tries to set the active content, don't clear any existing active content. This way the patch doesn't break <button>'s active state. The patch is a bit hackish, but :active handling needs some bigger, post-FF4 clean-ups. And tests are still missing. Not all dnd can be tested automatically, but some can be. I'll write the tests.
Attachment #485149 - Attachment is obsolete: true
Attachment #485750 - Flags: review?(enndeakin)
Comment on attachment 485750 [details] [diff] [review] patch Could you add some more comments in general to the patch? > case NS_DRAGDROP_DROP: > { >+ ClearGlobalActiveContent(this); I assume it's ok to do this in-between this and the older dragdrop event? What effect would it have on some old addons?
Attachment #485750 - Flags: review?(enndeakin) → review+
Ah, right. I'll move that to happen after the older dragdrop.
Smaug asked me very nicely on IRC if this could get dispensation to go into beta7. I told him that: - if he wrote really good tests, - and if he passed the whole thing through tryserver, - then yes.
Attached patch +testsSplinter Review
I take it for granted that anybody who encountered this problem installed "Easy DragToGo" otherwise you drag text/link/image for what? Today I review this thread again finding out actually nobody has mentioned this addon. Maybe this why somebody claimed they don't have the problem.
I never use such addon. As a default function of firefox: Drag link/text/imagelink to textarea/desktop. Drag link/imagelink to bookmarks toolbar/bookmarks sidebar. Drag link/text/imagelink to body in order to cancel. This bug affect the above action.
Blocks: 607945
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
(In reply to comment #21) > I never use such addon. > > As a default function of firefox: > Drag link/text/imagelink to textarea/desktop. > Drag link/imagelink to bookmarks toolbar/bookmarks sidebar. > Drag link/text/imagelink to body in order to cancel. > > This bug affect the above action. I don't know that actually, I only drag link/image to force it open in new tab, drag text to search.
Depends on: 644964
Depends on: 851103
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: