Open
Bug 597989
Opened 14 years ago
Updated 2 years ago
dragging a tab to a new window should focus that window before drop
Categories
(Firefox :: Tabbed Browser, enhancement)
Tracking
()
REOPENED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | - |
People
(Reporter: eyalgruss, Unassigned)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
(4 keywords)
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
dragging a tab to a new window should focus that window before drop, in order to allow inserting the tab in the desired place.
Reporter | ||
Updated•14 years ago
|
Blocks: cuts-focus
Whiteboard: parity-chrome
Comment 1•14 years ago
|
||
It's very difficult to drag and drop a tab from one window onto another, because when you do that, you have to look for the tiny bit of chrome in the other window and drop the tab there. Then you have to switch to that window and re-arrange the way you intended to.
blocking2.0: --- → ?
OS: Windows XP → All
Comment 2•14 years ago
|
||
You can drag over the task bar to raise a different window. This is standard behavior among various window managers.
Comment 3•14 years ago
|
||
While true Dao, it's an inferior UE. This bug should be fixed, but it's not a regression nor is it a blocker.
blocking2.0: ? → -
Comment 4•13 years ago
|
||
Updated•13 years ago
|
Attachment #539673 -
Flags: review?(Olli.Pettay)
Comment 5•13 years ago
|
||
Comment on attachment 539673 [details] [diff] [review]
Patch v1
This needs tests. Also, focusing should happen only when handling
trusted events.
And, which dom window do we want to focus? The content window or the chrome window? I would guess the content window. The patch would end up calling
focus on the content window and when on the chrome window, I think.
Attachment #539673 -
Flags: review?(Olli.Pettay) → review-
Comment 6•13 years ago
|
||
So, would it work if you'd test that
if aVisitor.mEvent->mOriginalTarget is nsIContent, and it's
GetOwnerDoc == mDoc
Comment 7•13 years ago
|
||
I don't think this should be used for every drag. It should only be applicable to tab dragging. Thus, it should be handled in tabbrowser.xml or somewhere close by.
Comment 8•13 years ago
|
||
As per Neil's comment, I've moved the focus-changing code to the browser.xml level and made it apply only to tabs. Working on writing tests for it now.
Attachment #539673 -
Attachment is obsolete: true
Comment 9•13 years ago
|
||
Last patch killed a newline.
Attachment #542368 -
Attachment is obsolete: true
Comment 10•13 years ago
|
||
Patch has been updated and tests have been added.
Attachment #542369 -
Attachment is obsolete: true
Attachment #542966 -
Flags: review?(dao)
Comment 11•13 years ago
|
||
Comment on attachment 542966 [details] [diff] [review]
Patch v3
This patch seems to conflict with bug 455694...
Comment 12•13 years ago
|
||
(In reply to comment #11)
> Comment on attachment 542966 [details] [diff] [review] [review]
> Patch v3
>
> This patch seems to conflict with bug 455694...
Yes. Could we wait for bug 455694 before spending more time on this?
In its latest revision, the patch for bug 455694 eschews the drag and drop API for tab dragging altogether due to performance issues.
Comment 14•13 years ago
|
||
Fixed by patch in bug 455694.
Assignee: nobody → fryn
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 8
Updated•13 years ago
|
Attachment #542966 -
Flags: review?(dao)
Comment 15•13 years ago
|
||
verified on Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 16•13 years ago
|
||
this is broken in 12.0b1, probably due to 455694 backout
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Updated•13 years ago
|
Assignee: fryn → nobody
Target Milestone: Firefox 8 → ---
Comment 17•11 years ago
|
||
In Firefox 23, an accepting dragging tab window is not get focused even after drop.
Moreover, any drop (links, files, text etc) do not cause window activation (at least on Windows7) (https://bugzilla.mozilla.org/show_bug.cgi?id=332346)
Comment 18•7 years ago
|
||
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-chrome
Whiteboard: parity-chrome
Updated•5 years ago
|
Type: defect → enhancement
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•