Bug 1728267 - Remove implicit ToResult from QM_TRY when no extra argument is passed in dom/localstorage; r=dom-storage-reviewers,jstutte,jari

Differential Revision: https://phabricator.services.mozilla.com/D125321
This commit is contained in:
Jan Varga 2021-09-24 13:08:31 +00:00
parent ebf956bd02
commit 2fd705fb88
2 changed files with 225 additions and 196 deletions

File diff suppressed because it is too large Load Diff

View File

@ -128,7 +128,7 @@ Result<std::pair<nsCString, nsCString>, nsresult> GenerateOriginKey2(
attrs.CreateSuffix(originAttrSuffix);
RefPtr<MozURL> specURL;
QM_TRY(MozURL::Init(getter_AddRefs(specURL), spec));
QM_TRY(MOZ_TO_RESULT(MozURL::Init(getter_AddRefs(specURL), spec)));
nsCString host(specURL->Host());
uint32_t length = host.Length();