The global state is going away. Either the UI should not change based on the status, and the importing (http://mxr.mozilla.org/mozilla-central/source/browser/components/places/content/places.js#1405) should happen in such a way that no information is leaked, or there needs to be some window-level status that reflects the presence of PB docshells in a window.
http://mxr.mozilla.org/mozilla-central/source/browser/components/places/content/controller.js also uses PlacesUIUtils.privateBrowsing for these sorts of decisions.
Marco, do you know why we hide "Forget About This Site" and "Import From Another Browser" when in PB mode? Do you think we could just always allow those operations?
(In reply to Josh Matthews [:jdm] from comment #2) > Marco, do you know why we hide "Forget About This Site" and "Import From > Another Browser" when in PB mode? Do you think we could just always allow > those operations? See bug 463607 for the former, and bug 464736 for the latter. Basically we disabled these UIs because there was no easy way to make them work in the global private browsing mode. But they can both be re-enabled when we switch to per-window PB. The thing which sucks here is that we can't land a patch here until everything related is ready, which makes me think whether we should add an --enable-per-winodw-pb build time option and hide this kind of stuff behind that (and turn it on by default when per-window PB is ready).
yes, anything that removes information and doesn't store information automatically can be re-enabled once we don't use anymore the global PB status.
We don't need any special handling here, so the fix is really simple, just take all of the mentions of gPrivateBrowsingListener plus its definition and put them behind #ifndef MOZ_PER_WINDOW_PRIVATE_BROWSING chunks.
Assignee: chrislord.net → nobody
Assignee: nobody → andres
Status: NEW → ASSIGNED
Attachment #674798 - Flags: review?(ehsan)
Comment on attachment 674798 [details] [diff] [review] Patch v1 Review of attachment 674798 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #674798 - Flags: review?(ehsan) → review+
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
You need to log in before you can comment on or make changes to this bug.