Commit 9aa34816 authored by Georg Koppen's avatar Georg Koppen
Browse files

Bug 21830: Copying large text from web console leaks to /tmp

Patch written by Neill Miller
parent 82f4a607
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ Notes to self:
#include "nsIWeakReferenceUtils.h"
#include "nsILoadContext.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/Preferences.h"

NS_IMPL_ISUPPORTS(nsTransferable, nsITransferable)

@@ -219,6 +220,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;