Closed
Bug 814275
Opened 11 years ago
Closed 11 years ago
Private browsing not work correctly after opening new window with clicking dock icon
Categories
(Firefox :: Private Browsing, defect)
Tracking
()
RESOLVED
FIXED
Firefox 20
Tracking | Status | |
---|---|---|
firefox17 | --- | unaffected |
firefox18 | --- | unaffected |
firefox19 | --- | unaffected |
firefox20 | + | verified |
People
(Reporter: tetsuharu, Assigned: jdm)
References
Details
(Keywords: regression)
Attachments
(1 file)
2.16 KB,
patch
|
ehsan.akhgari
:
review+
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #813533 +++ I find a special case which is not fixed in Bug #813533 Enviroment: *Firefox Nightly 20. http://hg.mozilla.org/mozilla-central/rev/4f19e7fd8bea *Intel Mac OS X 10.8 Step to reproduce: 1) open window 'A' & turn on Private-browsing. 2) close window 'A' (but keep running Firefox in dock). 3) open a new window 'B' with "clicking dock icon". if you opened one with context-menu or menubar, this bug does not appear. 4) open a URL in window 'B'. Result: The opened URL is recorded in browsing history.
Reporter | ||
Updated•11 years ago
|
status-firefox19:
fixed → ---
status-firefox20:
fixed → ---
tracking-firefox19:
+ → ---
tracking-firefox20:
+ → ---
Assignee | ||
Comment 1•11 years ago
|
||
My suspicion is that this now works in builds compiled from mozilla-aurora tip, given the backout we performed there.
tracking-firefox20:
--- → ?
Assignee | ||
Comment 2•11 years ago
|
||
Sigh. There are a nontrivial amount of places in nsBrowserContentHandler.js that open windows directly and will cause similar breakage (including other situations such as performing a search from the Windows 7 start menu). I'm putting together a patch that sets the privacy status of new windows in nsWindowWatcher based on the global service value.
Assignee | ||
Comment 3•11 years ago
|
||
I have come to the conclusion that there are far too many ways new windows can be opened in Firefox.
Comment 4•11 years ago
|
||
Comment on attachment 684423 [details] [diff] [review] When the global service matters, force all new windows to conform to the global private browsing state. Review of attachment 684423 [details] [diff] [review]: ----------------------------------------------------------------- Sigh. ::: embedding/components/windowwatcher/src/nsWindowWatcher.cpp @@ +914,5 @@ > + do_GetService(NS_PRIVATE_BROWSING_SERVICE_CONTRACTID); > + if (pbs) { > + bool inPrivateBrowsing = false; > + pbs->GetPrivateBrowsingEnabled(&inPrivateBrowsing); > + isPrivateBrowsingWindow |= inPrivateBrowsing; Nit: please use if(...)foo=bar; instead of the bit-op here.
Attachment #684423 -
Flags: review+
Assignee | ||
Comment 5•11 years ago
|
||
Comment on attachment 684423 [details] [diff] [review] When the global service matters, force all new windows to conform to the global private browsing state. I was actually looking for bz's review on this, but thanks.
Attachment #684423 -
Flags: review?(bzbarsky)
Comment 6•11 years ago
|
||
(In reply to comment #5) > Comment on attachment 684423 [details] [diff] [review] > --> https://bugzilla.mozilla.org/attachment.cgi?id=684423 > When the global service matters, force all new windows to conform to the global > private browsing state. > > I was actually looking for bz's review on this, but thanks. Fine, I won't give you generous drive-by reviews any more. :P
Reporter | ||
Comment 7•11 years ago
|
||
(In reply to Josh Matthews [:jdm] from comment #3) > Created attachment 684423 [details] [diff] [review] > When the global service matters, force all new windows to conform to the > global private browsing state. > > I have come to the conclusion that there are far too many ways new windows > can be opened in Firefox. I tried your patch. This patch fixes the case which I reported, and following case: opening a new window via opening links other applications when Firefox is in OSX dock. This patch will fix well. Thank you! (if I find other pattern, then I'll report it immediately.)
![]() |
||
Comment 8•11 years ago
|
||
Comment on attachment 684423 [details] [diff] [review] When the global service matters, force all new windows to conform to the global private browsing state. r=me
Attachment #684423 -
Flags: review?(bzbarsky) → review+
Reporter | ||
Comment 9•11 years ago
|
||
I reproduce this bug on Aurora (http://hg.mozilla.org/releases/mozilla-aurora/rev/4e0a8f234a6d).
Comment 10•11 years ago
|
||
(In reply to comment #9) > I reproduce this bug on Aurora > (http://hg.mozilla.org/releases/mozilla-aurora/rev/4e0a8f234a6d). Hmm, that's not expected... Josh?
Reporter | ||
Comment 11•11 years ago
|
||
(In reply to Tetsuharu OHZEKI [:saneyuki_s] from comment #9) > I reproduce this bug on Aurora > (http://hg.mozilla.org/releases/mozilla-aurora/rev/4e0a8f234a6d). Sorry, I mistake the bug which I commented.
Comment 12•11 years ago
|
||
(In reply to comment #11) > (In reply to Tetsuharu OHZEKI [:saneyuki_s] from comment #9) > > I reproduce this bug on Aurora > > (http://hg.mozilla.org/releases/mozilla-aurora/rev/4e0a8f234a6d). > > Sorry, I mistake the bug which I commented. Phew! :-)
Comment 14•11 years ago
|
||
Josh, we don't need this for Aurora, right?
Assignee | ||
Comment 15•11 years ago
|
||
Correct.
Comment 16•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c8766443985c
Assignee: nobody → josh
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Updated•11 years ago
|
Comment 17•11 years ago
|
||
Verified fixed on Firefox 20 Beta 5 – 20130313170052: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:20.0) Gecko/20100101 Firefox/20.0
You need to log in
before you can comment on or make changes to this bug.
Description
•