NS_IMETHODIMP DataTransfer::MozClearDataAt(const nsAString& aFormat, uint32_t aIndex) { ErrorResult rv; MozClearDataAt(aFormat, aIndex, Some(nsContentUtils::SubjectPrincipal()), rv); return rv.StealNSResult(); }
NS_IMETHODIMP DataTransfer::MozClearDataAt(const nsAString& aFormat, uint32_t aIndex) { ErrorResult rv; MozClearDataAt(aFormat, aIndex, rv); return rv.ErrorCode(); }
NS_IMETHODIMP nsDOMDataTransfer::ClearData(const nsAString& aFormat) { nsresult rv = MozClearDataAt(aFormat, 0); return (rv == NS_ERROR_DOM_INDEX_SIZE_ERR) ? NS_OK : rv; }