Bug 1653729 - Part 1: Generalize do_QueryActor API, r=kmag

This changes the set of types which can be passed as the second argument to
do_QueryActor to ones which can be unambiguously converted to a JSActorManager,
and combines nsCOMPtr_helper implementations.

Differential Revision: https://phabricator.services.mozilla.com/D84067
This commit is contained in:
Nika Layzell
2020-08-04 21:34:29 +00:00
parent 51c6855bda
commit 6174cf47c9
10 changed files with 90 additions and 123 deletions

View File

@@ -1909,7 +1909,7 @@ nsDocShell::GetLoadURIDelegate(nsILoadURIDelegate** aLoadURIDelegate) {
already_AddRefed<nsILoadURIDelegate> nsDocShell::GetLoadURIDelegate() {
if (nsCOMPtr<nsILoadURIDelegate> result =
do_QueryActor("LoadURIDelegate", GetWindow())) {
do_QueryActor("LoadURIDelegate", GetDocument())) {
return result.forget();
}