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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user