No bug - Add WebCompat feature.
parent
f71ec8928b
commit
5577470d0b
|
@ -402,6 +402,7 @@ dependencies {
|
|||
implementation Deps.mozilla_feature_readerview
|
||||
implementation Deps.mozilla_feature_tab_collections
|
||||
implementation Deps.mozilla_feature_sendtab
|
||||
implementation Deps.mozilla_feature_webcompat
|
||||
|
||||
implementation Deps.mozilla_service_firefox_accounts
|
||||
implementation Deps.mozilla_service_fretboard
|
||||
|
|
|
@ -29,6 +29,7 @@ import mozilla.components.feature.media.MediaFeature
|
|||
import mozilla.components.feature.media.RecordingDevicesNotificationFeature
|
||||
import mozilla.components.feature.media.state.MediaStateMachine
|
||||
import mozilla.components.feature.session.HistoryDelegate
|
||||
import mozilla.components.feature.webcompat.WebCompatFeature
|
||||
import org.mozilla.fenix.AppRequestInterceptor
|
||||
import org.mozilla.fenix.FeatureFlags
|
||||
import org.mozilla.fenix.ext.components
|
||||
|
@ -59,7 +60,9 @@ class Core(private val context: Context) {
|
|||
allowAutoplayMedia = context.settings.isAutoPlayEnabled
|
||||
)
|
||||
|
||||
GeckoEngine(context, defaultSettings, GeckoProvider.getOrCreateRuntime(context))
|
||||
GeckoEngine(context, defaultSettings, GeckoProvider.getOrCreateRuntime(context)).also {
|
||||
WebCompatFeature.install(it)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -132,6 +132,7 @@ object Deps {
|
|||
const val mozilla_feature_readerview = "org.mozilla.components:feature-readerview:${Versions.mozilla_android_components}"
|
||||
const val mozilla_feature_tab_collections = "org.mozilla.components:feature-tab-collections:${Versions.mozilla_android_components}"
|
||||
const val mozilla_feature_sendtab = "org.mozilla.components:feature-sendtab:${Versions.mozilla_android_components}"
|
||||
const val mozilla_feature_webcompat = "org.mozilla.components:feature-webcompat:${Versions.mozilla_android_components}"
|
||||
|
||||
const val mozilla_service_firefox_accounts = "org.mozilla.components:service-firefox-accounts:${Versions.mozilla_android_components}"
|
||||
const val mozilla_service_fretboard = "org.mozilla.components:service-fretboard:${Versions.mozilla_android_components}"
|
||||
|
|
Loading…
Reference in New Issue