diff --git a/app/src/main/java/org/mozilla/fenix/AppRequestInterceptor.kt b/app/src/main/java/org/mozilla/fenix/AppRequestInterceptor.kt index 35c3a903ca..fc5b87e665 100644 --- a/app/src/main/java/org/mozilla/fenix/AppRequestInterceptor.kt +++ b/app/src/main/java/org/mozilla/fenix/AppRequestInterceptor.kt @@ -9,8 +9,14 @@ import mozilla.components.browser.errorpages.ErrorPages import mozilla.components.browser.errorpages.ErrorType import mozilla.components.concept.engine.EngineSession import mozilla.components.concept.engine.request.RequestInterceptor +import org.mozilla.fenix.ext.components class AppRequestInterceptor(private val context: Context) : RequestInterceptor { + override fun onLoadRequest(session: EngineSession, uri: String): RequestInterceptor.InterceptionResponse? { + // Accounts uses interception to check for a "success URL" in the sign-in flow to finalize authentication. + return context.components.services.accountsAuthFeature.interceptor.onLoadRequest(session, uri) + } + override fun onErrorRequest( session: EngineSession, errorType: ErrorType,