Closed
Bug 828349
Opened 12 years ago
Closed 12 years ago
Tab count indicator not indicative of private tab count
Categories
(Firefox for Android Graveyard :: Toolbar, defect)
Tracking
(firefox20 verified, firefox21 verified, firefox22 verified)
VERIFIED
FIXED
Firefox 22
People
(Reporter: aaronmt, Assigned: bnicholson)
References
Details
Attachments
(1 file)
(deleted),
patch
|
mfinkle
:
review+
bajaj
:
approval-mozilla-aurora+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
This might be intentional. The tab count indicator showcases the regular tab count and not the private tab count.
Reporter | ||
Comment 1•12 years ago
|
||
(When viewed from within a private tab or in about:privatebrowsing)
Comment 2•12 years ago
|
||
One solution might be to only show the count for the kind of tabs you are currently in. So for example if you have 10 normal tabs and 2 private tabs open, the counter should change from 10 to 2 if you toggle from a normal tab to a private one.
Updated•12 years ago
|
Assignee: nobody → sriram
Reporter | ||
Updated•12 years ago
|
status-firefox20:
--- → affected
status-firefox21:
--- → affected
Assignee | ||
Comment 3•12 years ago
|
||
Assignee: sriram → bnicholson
Status: NEW → ASSIGNED
Attachment #714134 -
Flags: review?(mark.finkle)
Assignee | ||
Comment 4•12 years ago
|
||
I did a grep of Tabs.getCount(), and it looks like we're only using it to update the browser toolbar count, so this patch should be safe. To make its behavior more clear, though, maybe we should rename it to getDisplayedCount?
Comment 5•12 years ago
|
||
Comment on attachment 714134 [details] [diff] [review]
Return the tab count of the current private state
I agree with the rename to getDisplayCount
Attachment #714134 -
Flags: review?(mark.finkle) → review+
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Comment 7•12 years ago
|
||
Backed out:
https://hg.mozilla.org/integration/mozilla-inbound/rev/00c09b326fee
https://hg.mozilla.org/integration/mozilla-inbound/rev/014e88baa216
for
02-16 00:24:34.748 E/GeckoAppShell( 1802): >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
02-16 00:24:34.748 E/GeckoAppShell( 1802): java.util.ConcurrentModificationException
02-16 00:24:34.748 E/GeckoAppShell( 1802): at java.util.HashMap$HashIterator.nextEntry(HashMap.java:795)
02-16 00:24:34.748 E/GeckoAppShell( 1802): at java.util.HashMap$ValueIterator.next(HashMap.java:827)
02-16 00:24:34.748 E/GeckoAppShell( 1802): at org.mozilla.gecko.Tabs.getDisplayCount(Tabs.java:105)
02-16 00:24:34.748 E/GeckoAppShell( 1802): at org.mozilla.gecko.BrowserToolbar.refresh(BrowserToolbar.java:1159)
Assignee | ||
Comment 9•12 years ago
|
||
Oops - this was landed with the wrong bug number.
The ConcurrentModificationException from comment 7 can still happen infrequently; once bug 844407 (which is r+'ed and mostly ready) lands, though, that should be fixed.
https://hg.mozilla.org/integration/mozilla-inbound/rev/cb2ccaf0b894
https://hg.mozilla.org/mozilla-central/rev/cb2ccaf0b894
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Target Milestone: --- → Firefox 22
Assignee | ||
Comment 10•12 years ago
|
||
Comment on attachment 714134 [details] [diff] [review]
Return the tab count of the current private state
Note that this must be uplifted with bug 844407 to fix the exception from comment 7.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 582244 (pb)
User impact if declined: tab count will show total number of tabs instead of number of tabs for the current private state
Testing completed (on m-c, etc.): m-c
Risk to taking this patch (and alternatives if risky): low risk
String or UUID changes made by this patch: none
Attachment #714134 -
Flags: approval-mozilla-beta?
Attachment #714134 -
Flags: approval-mozilla-aurora?
Comment 11•12 years ago
|
||
We'll wait for bug 844497 to be reviewed then.
Comment 12•12 years ago
|
||
(In reply to Lukas Blakk [:lsblakk] from comment #11)
> We'll wait for bug 844497 to be reviewed then.
Sorry, I meant bug 844407
Updated•12 years ago
|
Comment 13•12 years ago
|
||
Comment on attachment 714134 [details] [diff] [review]
Return the tab count of the current private state
Please make sure to land bug 844407 when landing this.
Attachment #714134 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Reporter | ||
Comment 14•12 years ago
|
||
Looks good on trunk (03/15)
Updated•12 years ago
|
Attachment #714134 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Assignee | ||
Comment 15•12 years ago
|
||
Assignee | ||
Comment 16•12 years ago
|
||
Reporter | ||
Updated•12 years ago
|
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•