Bug 1210591, part 1 - Use nsVariantCC in various places. r=smaug

Most of these will end up in DataTransfer:mItems, so this is needed
for it to do anything useful.
This commit is contained in:
Andrew McCreight
2015-10-09 10:24:23 -07:00
parent 15ee03ca3e
commit 844e01aa14
8 changed files with 12 additions and 11 deletions

View File

@@ -808,7 +808,7 @@ UploadLastDir::StoreLastUsedDirectory(nsIDocument* aDoc, nsIFile* aDir)
aDir->GetPath(unicodePath);
if (unicodePath.IsEmpty()) // nothing to do
return NS_OK;
nsRefPtr<nsVariant> prefValue = new nsVariant();
nsRefPtr<nsVariantCC> prefValue = new nsVariantCC();
prefValue->SetAsAString(unicodePath);
// Use the document's current load context to ensure that the content pref