Bug 1373109 - Don't call MaybeCloseWindow twice when diverting. r=mconley

nsExternalHelperAppService::OnStartRequest calls MaybeCloseWindow
unconditionally after it finishes looking at the request headers. The call
from DidDivertRequest is redundant (and possibly left over from when we didn't
call OnStartRequest properly).

MozReview-Commit-ID: Cm5YhCt5XLY

--HG--
extra : rebase_source : 628100c860459d338cbabc65f557d7058b91f26d
This commit is contained in:
Blake Kaplan 2017-06-20 17:37:24 -07:00
Родитель aa46f0a793
Коммит 0fd11e5185
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -1287,7 +1287,6 @@ nsExternalAppHandler::DidDivertRequest(nsIRequest *request)
MOZ_ASSERT(XRE_IsContentProcess(), "in child process");
// Remove our request from the child loadGroup
RetargetLoadNotifications(request);
MaybeCloseWindow();
}
NS_IMETHODIMP nsExternalAppHandler::SetWebProgressListener(nsIWebProgressListener2 * aWebProgressListener)