Closed
Bug 603721
Opened 13 years ago
Closed 12 years ago
Creating a new tab in a tab group which only contains app tabs sometimes causes the group to be deleted
Categories
(Firefox Graveyard :: Panorama, defect, P2)
Tracking
(blocking2.0 final+)
VERIFIED
FIXED
Firefox 4.0b8
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: justin.lebar+bug, Assigned: mitcho)
References
Details
(Keywords: dataloss, Whiteboard: [softblocker][fx4-fixed-bugday])
Attachments
(1 file, 2 obsolete files)
1.16 MB,
video/ogg
|
Details |
STR: * Create two app tabs. * Create a new tab pointing to google.com. * Open Panorama, create a new tab group, and focus it by clicking the favicon of one of your two app tabs. Now you should only see your two app tabs. * Press ctrl+t to open a new tab. Close it with ctrl+w. * Press ctrl+t again. Expected results: * Same as the first time you pressed ctrl+t, the new tab (and only the new tab) appears. Panorama shows that we still have two tab groups. Actual results: * The new tab appears along with the tab pointing to google.com. Panorama shows that we only have one tab group.
Comment 1•13 years ago
|
||
While using the latest nightly from 10/12, I can reproduce almost identically, except that in * 3 I see my two app tabs and the google tab as well.
blocking2.0: --- → ?
Comment 2•13 years ago
|
||
When there are app tabs, we shouldn't have groups with no tabs die.
Comment 3•13 years ago
|
||
(In reply to comment #2) > When there are app tabs, we shouldn't have groups with no tabs die. I disagree; this is covered by bug 596781.
Updated•13 years ago
|
Assignee: nobody → ian
Comment 4•13 years ago
|
||
(In reply to comment #3) > (In reply to comment #2) > > When there are app tabs, we shouldn't have groups with no tabs die. > > I disagree; this is covered by bug 596781. Actually, I believe they shouldn't auto-close if you're in the group, but they should if you're in the Panorama UI.
Updated•13 years ago
|
Status: NEW → ASSIGNED
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Comment on attachment 487430 [details] [diff] [review] patch v1 >- if (!this._children.length && !this.locked.close && !this.getTitle() && !options.dontClose) { >+ if (!this._children.length && >+ !this.locked.close && >+ !this.getTitle() && >+ !options.dontClose && >+ (UI._isTabViewVisible() || !gBrowser._numPinnedTabs)) { That last line is the crux of the fix. The rest of the patch is some overdue cleanup that was necessary in order to get the test to pass.
Attachment #487430 -
Flags: feedback?(raymond)
Comment 7•13 years ago
|
||
Comment on attachment 487430 [details] [diff] [review] patch v1 Looks good. Not related to this bug. I don't see the locked.close would be TRUE in the code. Does we still need that? + !this.locked.close &&
Attachment #487430 -
Flags: feedback?(raymond) → feedback+
Comment 8•13 years ago
|
||
(In reply to comment #7) > Not related to this bug. I don't see the locked.close would be TRUE in the > code. Does we still need that? > + !this.locked.close && In fact, locked isn't used at all any more. Filed bug 609163.
Updated•13 years ago
|
Attachment #487430 -
Flags: review?(dolske)
Updated•13 years ago
|
blocking2.0: ? → final+
Comment 10•13 years ago
|
||
Comment on attachment 487430 [details] [diff] [review] patch v1 >+ this._eventListeners.attrModified = function(tab) { >+ if (tab.ownerDocument.defaultView != gWindow) >+ return; Hmm, I see this in a few spots (in existing code). How would the tab's window not be the browser's window? Seems like that would imply event listeners in one window are getting events from another window, which shouldn't ever happen?
Attachment #487430 -
Flags: review?(dolske) → review+
Comment 11•13 years ago
|
||
(In reply to comment #10) > Comment on attachment 487430 [details] [diff] [review] > patch v1 > > >+ this._eventListeners.attrModified = function(tab) { > >+ if (tab.ownerDocument.defaultView != gWindow) > >+ return; > > Hmm, I see this in a few spots (in existing code). How would the tab's window > not be the browser's window? Seems like that would imply event listeners in one > window are getting events from another window, which shouldn't ever happen? We're using AllTabs.jsm which by design gives you events from all windows.
Comment 12•13 years ago
|
||
Beta8 has 1 bug left on it, moving our blockers to b9
No longer blocks: 597043
Updated•12 years ago
|
Whiteboard: [softblocker]
Updated•12 years ago
|
Severity: critical → normal
Comment 17•12 years ago
|
||
So I wrote this patch on top of bug 600665, but it's pretty evident that that bug isn't going to land for Fx4, so now it needs to be made to be independent to that patch. In addition it's pretty old, so there's probably some good old fashioned rot as well. At any rate, I'm obviously not getting around to it (currently buried in reviews for the foreseeable future), so I'm attaching the current state in the hopes that someone (tim?) can take it on home.
Attachment #487430 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Status: ASSIGNED → NEW
Comment 19•12 years ago
|
||
We believe this bug will be fixed by bug 612470.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → mitcho
Assignee | ||
Comment 22•12 years ago
|
||
Taking this, just so it's not lonely, but if someone wants it, let me know.
Assignee | ||
Comment 23•12 years ago
|
||
I verified that the patch to bug 612470 (which should be ready to land soon) fixes this. What should we do in this situation? Should we dupe this bug to that one, or create just a test with this bug's STR?
Attachment #505468 -
Attachment is obsolete: true
Comment 24•12 years ago
|
||
Going to mark this fixed now that bug 612470 has landed. Please reopen if the bug resurfaces. http://hg.mozilla.org/mozilla-central/rev/ea8bf490e66d
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 25•12 years ago
|
||
Verified fixed with Firefox 4b11build3
Status: RESOLVED → VERIFIED
Whiteboard: [softblocker] → [softblocker][fx4-fixed-bugday]
Updated•7 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•