[tbb-commits] [tor-browser] 36/72: Bug 21830: Copying large text from web console leaks to /tmp

gitolite role git at cupani.torproject.org
Wed Aug 3 13:05:26 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.12.0esr-12.0-1
in repository tor-browser.

commit 206660ef6ee6aad36f534176e52dfd5126e1a956
Author: Georg Koppen <gk at torproject.org>
AuthorDate: Fri Aug 4 05:55:49 2017 +0000

    Bug 21830: Copying large text from web console leaks to /tmp
    
    Patch written by Neill Miller
    
    Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1768907
---
 widget/nsTransferable.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/widget/nsTransferable.cpp b/widget/nsTransferable.cpp
index c82549a4d1d14..f8ecfbff0983a 100644
--- a/widget/nsTransferable.cpp
+++ b/widget/nsTransferable.cpp
@@ -33,6 +33,7 @@ Notes to self:
 #include "nsILoadContext.h"
 #include "nsXULAppAPI.h"
 #include "mozilla/UniquePtr.h"
+#include "mozilla/Preferences.h"
 
 using namespace mozilla;
 
@@ -195,6 +196,11 @@ nsTransferable::Init(nsILoadContext* aContext) {
 
   if (aContext) {
     mPrivateData = aContext->UsePrivateBrowsing();
+  } else {
+    // without aContext here to provide PrivateBrowsing information,
+    // we defer to the active configured setting
+    mPrivateData =
+        mozilla::Preferences::GetBool("browser.privatebrowsing.autostart");
   }
 #ifdef DEBUG
   mInitialized = true;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tbb-commits mailing list