Closed Bug 192635 Opened 22 years ago Closed 1 month ago

Moving tab to new window doesn't copy/keep session history

Categories

(Camino Graveyard :: Tabbed Browsing, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: bugzilla, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.0.1) Gecko/20030204 Chimera/0.6+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.0.1) Gecko/20030204 Chimera/0.6+

After using the "Move Tab to New Window" contextual menu command, there's only
one item in the Go menu.  We haven't really moved the Tab, just created a new
window and loaded the same page.

Remember: "Those who forget their history are doomed to repeat it."

Reproducible: Always

Steps to Reproduce:
1. Have several tabs in a browser window.
2. Click a few links to build a history -- you'll have several items in the "Go"
menu.
3. Control-click on the tab and select "Move Tab to New Window" -- a new window
opens with the currently viewed page in it.
4. Look at the "Go" menu -- there's no history.

Actual Results:  
The history is lost.

Expected Results:  
The new window should have the same "Go" menu that was visible before moving the
tab.
Confirmed using Chimera/2003021707. History does not follow the document during
the "Move Tab to New Window" operation.
Status: UNCONFIRMED → NEW
Ever confirmed: true
This behaviour is also annoying when using "open in new window/tab". It happens
quite often that I open several tabs from a search page and find myself
accidently closing the one which has the correct history attached to it. I guess
copying the history to all tabs/windows which are openend from a page doesn't do
any harm. Should I file an RFE for that?
i'm not sure if gecko allows us this feature, though it's reasonable.
Target Milestone: --- → Future
This bug is no longer valid with the Go menu now showing global history.

However, I'm leaving it open and updating the description to show a very related
problem:

The back button has no history attached to it when moving a tab into a new window.

(CCing Simon to look at)
Summary: "Move Tab to New Window" CM item forgets history → After "Move Tab to New Window", back button forgets history
This will be tricky to fix.
Targeting for 2.0 based on some Gecko work being done which may help with this.
QA Contact: bugzilla → tabbed.browsing
Summary: After "Move Tab to New Window", back button forgets history → Moving tab to new window doesn't copy/keep session history
Target Milestone: Future → Camino2.0
Why does this need any core work? Simon, is there some reason we couldn't just just move the BrowserWrapper to a new window?
(In reply to comment #7)
> Why does this need any core work? Simon, is there some reason we couldn't just
> just move the BrowserWrapper to a new window?

That would involve ripping the whole view hierarchy out of one window, and inserting it into another. I'm not even sure if AppKit supports that, but if it does, I bet there's stuff in nsChildView that would break (like i18n text input). It's worth a try, but my guess is that you'll run into hard-to-find bugs. 
Target Milestone: Camino2.0 → ---
I'm not sure what is the status with this bug (as it is quite old), but current Firefox (not Camino) has this feature working well.
(In reply to comment #9)
> I'm not sure what is the status with this bug (as it is quite old), but current
> Firefox (not Camino) has this feature working well.

Since this is specifically a Camino bug, that's expected.
Hardware: PowerPC → All
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.