2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00

[fenix] No bug - Add WebCompat feature.

This commit is contained in:
Dennis Schubert 2019-09-19 20:36:22 +02:00 committed by Emily Kager
parent 35f3c30032
commit ebee89cc0f
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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)
}
}
/**

View File

@ -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}"