Commit 80fcc83f authored by Michael Schloh von Bennewitz's avatar Michael Schloh von Bennewitz Committed by Mike Perry
Browse files

Bug #9701: Prevent ClipBoardCache from writing to disk.

This disables the disk activity entirely. It seems as though there is no
reason in to write backup copies of clipboard data to disk, as the clipboard
code does not release the related memory upon disk writes anyway.

See https://trac.torproject.org/projects/tor/ticket/9701.
parent 90a820bc
......@@ -58,6 +58,7 @@ DataStruct::~DataStruct()
void
DataStruct::SetData ( nsISupports* aData, uint32_t aDataLen )
{
#if 0 // Remove unnecessary disk caching to accommodate https://www.torproject.org/projects/torbrowser/design/#disk-avoidance
// Now, check to see if we consider the data to be "too large"
if (aDataLen > kLargeDatasetSize) {
// if so, cache it to disk instead of memory
......@@ -66,6 +67,7 @@ DataStruct::SetData ( nsISupports* aData, uint32_t aDataLen )
else
NS_WARNING("Oh no, couldn't write data to the cache file");
}
#endif // #if 0
mData = aData;
mDataLen = aDataLen;
......
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