nsStringKey key(aName);
const nsPromiseFlatString& flatString = PromiseFlatString(aName); nsStringKey key(flatString);
nsPresState::SetStatePropertyAsSupports(const nsAString& aName, nsISupports* aValue){  if (!mPropertyTable) {    mPropertyTable = new nsSupportsHashtable(8);    NS_ENSURE_TRUE(mPropertyTable, NS_ERROR_OUT_OF_MEMORY);  }  // Add to hashtable  nsStringKey key(aName);  mPropertyTable->Put(&key, aValue);  return NS_OK;}