Commit 1d8a30b6 authored by coderus's avatar coderus

Do not use json for unicode strings. Light workaround.

parent 57aedd56
......@@ -125,10 +125,7 @@ nsEmbedClipboard::Observe(nsISupports *aSubject, const char *aTopic, const PRUni
{
if (!strcmp(aTopic, "embedui:clipboard")) {
mObserverService->RemoveObserver(this, "embedui:clipboard");
nsCOMPtr<nsIEmbedLiteJSON> json = do_GetService("@mozilla.org/embedlite-json;1");
nsCOMPtr<nsIPropertyBag2> root;
NS_ENSURE_SUCCESS(json->ParseJSON(nsDependentString(aData), getter_AddRefs(root)), NS_ERROR_FAILURE);
root->GetPropertyAsAString(NS_LITERAL_STRING("clipboard"), mBuffer);
mBuffer.Assign(aData);
mModalDepth--;
}
else if (!strcmp(aTopic, "outer-window-destroyed")) {
......
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