AdwTabOverview mishandles tabs on a blank window
Description
When dragging one tab between a window with any amount of tabs and a blank window both in overview mode, AdwTabOverview
will crash if:
- there are >=2 tabs in the source window
- the source window will become blank on dropping of the tab
I have reproduced this with a development build, stable Epiphany, and stable kgx.
Instructions to Reproduce
- Open two windows of an app that uses
AdwTabOverview
- Put both windows into overview mode and close all tabs on one window
- Drag the remaining tab between the two windows and note how the thumbnail dissapears
- Drag it onto the source window and note how the app does not crash yet
- Drag it onto the other window and note that the app crashes
- Repeat step 1 and 2, except drag a tab from one window to the other, making one window blank. Note that the app crashes
- Repeat step 1 and 2, except have more than one tab open in one window and none in the other.
- Drag one tab over the blank window and back to its source, and note that the app crashes