nsStringKey key(aName);
const nsPromiseFlatString& flatString = PromiseFlatString(aName); nsStringKey key(flatString);
nsPresState::SetStateProperty(const nsAString& aName, const nsAString& aValue){  if (!mPropertyTable) {    mPropertyTable = new nsSupportsHashtable(8);    NS_ENSURE_TRUE(mPropertyTable, NS_ERROR_OUT_OF_MEMORY);  }  // Add to hashtable  nsStringKey key(aName);  nsCOMPtr<nsISupportsString> supportsStr(do_CreateInstance(NS_SUPPORTS_STRING_CONTRACTID));  NS_ENSURE_TRUE(supportsStr, NS_ERROR_OUT_OF_MEMORY);  supportsStr->SetData(NS_ConvertUCS2toUTF8(aValue).get());  mPropertyTable->Put(&key, supportsStr);  return NS_OK;}