Detaching tab doesn't re-wire its relation to the window
Bug #905759 reported by
mahmoud
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Midori Web Browser |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I use Midori 0.4.2 on openSUSE 12.1 Gnome 3
When i drag a tab to make it in a separate window then click on a link from that window to open in new tab the new tab open in the original window not in the new window
tags: | added: multiwindow tabs |
Changed in midori: | |
status: | Fix Committed → Fix Released |
Changed in midori: | |
status: | Fix Released → Fix Committed |
Changed in midori: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I'm interested in fixing this, but it'll take a little work because of how things are currently done.
_midori_ browser_ add_tab is the main culprit here: it connects numerous signals on the midoriview with the browser in which the view was originally created as a data argument. This means we need to disconnect all these signals when we add the view to a new browser. In addition, the function adds the view to the browser's set of items, so we'll have to undo that. I'd probably put these operations into a function, _midori_ browser_ remove_ tab (with the current function of that name becoming perhaps _midori_ browser_ destroy_ tab), which is more or less the inverse of the portion of _midori_ browser_ add_tab that attaches the midoriview to the midoribrowser.
These changes seem like they'd be sufficient to fix the problem of tabs not knowing that they no longer "belong" to their old owner when they get dragged into a new window. If there are no concerns I'll get to writing a patch along these lines soonish.