Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
Tor Browser
Commits
1f796c1e
Commit
1f796c1e
authored
Aug 04, 2017
by
Georg Koppen
Committed by
Matthew Finkel
Mar 24, 2021
Browse files
Bug 21830: Copying large text from web console leaks to /tmp
Patch written by Neill Miller
parent
e60cd85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
widget/nsTransferable.cpp
View file @
1f796c1e
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment