Closed Bug 586147 Opened 15 years ago Closed 15 years ago

Restore visible tabs (and hide hidden ones)

Categories

(Firefox :: Session Restore, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 4.0b4

People

(Reporter: Mardak, Assigned: Mardak)

References

Details

Attachments

(1 file, 1 obsolete file)

With bug 582116, m-c will have an api to hide/show tabs. tabcandy-central has augmented sessionstore to restore that information with bug 583306.
(In reply to comment #1) > Should this block bug 574217? Yes.
Mardak, do you think you can take this? It should be pretty simple (the code change is already there, you only need to write a test for it.) I'm trying to work on debugging the leaks...
Attached patch v1 (obsolete) — Splinter Review
Assignee: ehsan → edilee
Status: NEW → ASSIGNED
Attachment #464698 - Flags: review?(paul)
Comment on attachment 464698 [details] [diff] [review] v1 >+ browser_hidden_tabs.js \ Please name the test browser_586147.js. While it would be great to have a filename that indicates a feature it's testing, we don't roll like that. It looks fine, it's just missing something. My concern is that the tab loading order is going to be wrong now - that is, the order we load history into tabs & actually kick off the requests is going to include !visible tabs, and those should be last. As is, if you have 50 !visible tabs "first" and then your other tabs, it's quite possible that those 50 !visible tabs are going to load first or at least before some of your visible tabs, which is suboptimal. The tests for bug 480148 don't do any checks for !visible tabs, but we should probably add at least one.
Attachment #464698 - Flags: review?(paul) → review-
Blocks: 586211
Comment on attachment 464698 [details] [diff] [review] v1 I said as much on IRC, but I'll say it here for a nice record. It's not the worst thing to break (temporarily). Bug 586211 has been filed for a followup and Aza has assured me it will be fixed in a week. r=zpao with test file name change.
Attachment #464698 - Flags: review- → review+
Attached patch v1.1Splinter Review
Attachment #464698 - Attachment is obsolete: true
Attachment #464734 - Flags: approval2.0?
(In reply to comment #5) > Please name the test browser_586147.js. While it would be great to have a > filename that indicates a feature it's testing, we don't roll like that. Why shouldn't we roll like that, for new tests? I don't think consistency in test file naming is important.
Comment on attachment 464734 [details] [diff] [review] v1.1 a=beltzner, a momentous occasion!
Attachment #464734 - Flags: approval2.0? → approval2.0+
(In reply to comment #8) > (In reply to comment #5) > > Please name the test browser_586147.js. While it would be great to have a > > filename that indicates a feature it's testing, we don't roll like that. > > Why shouldn't we roll like that, for new tests? I don't think consistency in > test file naming is important. Meh, it's not important - I opted for consistency. I could do with some boat rocking though. If you leave it as is, just make sure you add a comment in the test file indicating which bug it originated in to save having to look at hg annotate.
http://hg.mozilla.org/mozilla-central/rev/90b492f96ceb Port (copy) sessionstore changes from bug 583306 and add tests.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: