Closed
Bug 461755
Opened 16 years ago
Closed 16 years ago
Error console should be cleared when leaving the private browsing mode
Categories
(Firefox :: Private Browsing, defect)
Firefox
Private Browsing
Tracking
()
VERIFIED
FIXED
Firefox 3.1b2
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
(Keywords: privacy)
Attachments
(1 file, 2 obsolete files)
6.15 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
Based on email conversation with mconnor, we need to clear the error console when leaving the private browsing mode.
Patch forthcoming.
Assignee | ||
Comment 1•16 years ago
|
||
Patch plus a browser chrome test.
Attachment #344970 -
Flags: review?(mconnor)
Comment 2•16 years ago
|
||
Comment on attachment 344970 [details] [diff] [review]
Patch (v1)
this is the wrong place to call this. This would get called once for every window that's open, which doesn't make a lot of sense to me...
you should just call it in _onPrivateBrowsingModeChanged right before we restore the previous session
Attachment #344970 -
Flags: review?(mconnor) → review-
Assignee | ||
Comment 3•16 years ago
|
||
You're right. I moved the code to the private browsing service, and updated the unit test to use the pref in this patch.
Attachment #344970 -
Attachment is obsolete: true
Attachment #345460 -
Flags: review?(mconnor)
Updated•16 years ago
|
Attachment #345460 -
Flags: review?(mconnor) → review+
Comment 4•16 years ago
|
||
Comment on attachment 345460 [details] [diff] [review]
Patch (v1.1)
Please use an nsITimer, not a setTimeout, for unit tests. setTimeout is... flaky, see sdwilsh since he's the de facto "guy to talk to about not using setTimeout"
Assignee | ||
Comment 5•16 years ago
|
||
Updated the patch to use nsITimer inside the unit test.
Attachment #345460 -
Attachment is obsolete: true
Attachment #345800 -
Flags: review+
Updated•16 years ago
|
Flags: in-litmus?
Assignee | ||
Comment 6•16 years ago
|
||
Marcia: please note that the patch includes an automated test. I'm not sure how useful a Litmus test can be here, because what this bug tries to cover is relatively a small issue which is easy to test automatically...
Anyway, I'm not clearing in-litmus? for now...
Flags: in-testsuite?
Assignee | ||
Updated•16 years ago
|
Whiteboard: [pb-ready-for-landing]
Assignee | ||
Comment 7•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Whiteboard: [pb-ready-for-landing]
Target Milestone: --- → Firefox 3.1b2
Comment 8•16 years ago
|
||
Ehsan: I am noticing when testing today's build that the error console does not clear when I switch out of Private Browsing mode. My STR are:
1. Have a regular session going. Console errors appear.
2. Switch to PB mode. Console errors still there.
3. Switch out of PB mode. Console error still there.
I am not sure if you intend to clear the whole console or just any errors that are logged in the PB session.
Assignee | ||
Comment 9•16 years ago
|
||
(In reply to comment #8)
> Ehsan: I am noticing when testing today's build that the error console does not
> clear when I switch out of Private Browsing mode. My STR are:
>
> 1. Have a regular session going. Console errors appear.
> 2. Switch to PB mode. Console errors still there.
> 3. Switch out of PB mode. Console error still there.
Oh, that's weird. Can I ask what platform are you on? Also, what happens if you close and re-open the console? What if you manually clear the console?
> I am not sure if you intend to clear the whole console or just any errors that
> are logged in the PB session.
No, the whole console should be cleared (including errors logged both during and before the PB mode).
Comment 10•16 years ago
|
||
https://litmus.mozilla.org/show_test.cgi?id=7396 added to Litmus FFT. Even though we have an automated test for this, I have been seeing a little flakiness here (see Comment 8), so it won't hurt to have a manual test for this as well.
Flags: in-litmus? → in-litmus+
Comment 11•16 years ago
|
||
verified fixed using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b2pre) Gecko/20081118 Minefield/3.1b2pre and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2pre) Gecko/20081118 Minefield/3.1b2pre
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 12•16 years ago
|
||
Mass moving of all Firefox::General private browsing bugs to Firefox::Private Browsing.
Component: General → Private Browsing
Assignee | ||
Updated•16 years ago
|
QA Contact: general → private.browsing
You need to log in
before you can comment on or make changes to this bug.
Description
•