Skip to content
Snippets Groups Projects
Commit b894f994 authored by Makoto Kato's avatar Makoto Kato
Browse files

Bug 1750142 - Don't return nullptr for LockScreenOrientation. r=geckoview-reviewers,calu

We should return rejected promise instead of `nullptr` to make simple.

Differential Revision: https://phabricator.services.mozilla.com/D135980
parent ab7030d6
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,8 @@ RefPtr<MozPromise<bool, bool, false>> LockScreenOrientation(
}
}
default:
return nullptr;
NS_WARNING("Unsupported screen orientation type");
return MozPromise<bool, bool, false>::CreateAndReject(false, __func__);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment