Commit 2b27c665 authored by Georg Koppen's avatar Georg Koppen Committed by Matthew Finkel
Browse files

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

Patch written by Neill Miller
parent 5b960b35
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment