nsStringKey key(aName);
const nsPromiseFlatString& flatString = PromiseFlatString(aName); nsStringKey key(flatString);
nsPresState::GetStatePropertyAsSupports(const nsAString& aName, nsISupports** aResult){  // Retrieve from hashtable.  nsCOMPtr<nsISupports> supp;  if (mPropertyTable) {    nsStringKey key(aName);    supp = dont_AddRef(NS_STATIC_CAST(nsISupports*, mPropertyTable->Get(&key)));  }  *aResult = supp;  NS_IF_ADDREF(*aResult);  return NS_OK;}