Closed Bug 1771831 Opened 3 years ago Closed 2 years ago

Make "List all tabs" item drag-reorder-able

Categories

(Firefox :: Tabbed Browser, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce:

  1. Open 20 tabs: https://en.wikipedia.org/wiki/0 to https://en.wikipedia.org/wiki/9 , twice
  2. click "List all tabs" drop down
  3. Drag "3 - Wikipedia" and drop below "6 - Wikipedia"

Expected result:
The tab for "3 - Wikipedia" is moved after "6 - Wikipedia"

Actual result:
Nothing happens

The tab list is handy for locating the tab, and making it possible to reorder within it would be handy.

Bug 506195 is related, that it's about drag/drop between the "List all tabs" list and the tab bar.
This bug is drag/drop within the "List all tabs" list.

The WIP patch above adds support for drag-and-drop within the "List all tabs".

Dragging the item outside of the list does nothing, because the data transfer has no generic data type, such as text/x-moz-text-internal.
This is intentional for this specific change, because setting it results in duplicating the tab if it's dropped onto the tab bar.

To properly support drag-and-drop between tab bar and tab list, both side needs to handle data type each other.

This becomes really necessary for me when handling many bugs at once (e.g. bug 1608279 and dependencies)

Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED

The following works:

  • When tab list item is dragged, start the actual tab's drag, with special flag
  • Accept the tab drag in the tab list
  • Tweak the tab container to receive the tab drag with the special flag

It achieves:

  • tab list item can be reordered within it
  • tab list item can be dragged to tab bar to reorder
  • tab list item can be detached by dragging to empty area

So far, given the tab list is automatically closed by clicking others, no need to accept drop from outside of the tab list

Attachment #9278862 - Attachment description: WIP: Bug 1771831 - WIP: Make it possible to reorder tabs in "List all tabs" list by drag-and-drop. → Bug 1771831 - Make it possible to reorder tabs in "List all tabs" list by drag-and-drop. r?dao
Blocks: tab-manager
Attachment #9278862 - Attachment description: Bug 1771831 - Make it possible to reorder tabs in "List all tabs" list by drag-and-drop. r?dao → Bug 1771831 - Make it possible to reorder tabs in "List all tabs" list by drag-and-drop. r?dao!
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/f47d9c27992d Make it possible to reorder tabs in "List all tabs" list by drag-and-drop. r=NeilDeakin
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/ad968b0af681 Make it possible to reorder tabs in "List all tabs" list by drag-and-drop. r=NeilDeakin
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
Flags: needinfo?(arai.unmht)
Blocks: 1788775
Blocks: 1788778
Blocks: 1788782
Regressions: 1790577
QA Whiteboard: [qa-106b-p2]
Depends on: 1923593
No longer depends on: 1923593
Regressions: 1923593
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: