use original context for view creation

This commit is contained in:
Fabian Freund
2025-11-29 07:34:48 +01:00
parent 75bc8f0b3d
commit d117ab4356
@@ -18,8 +18,8 @@ import mozilla.components.support.base.feature.UserInteractionHandler
*/
class BrowserFragment() : BaseBrowserFragment(), UserInteractionHandler {
override fun createEngine(components: Components): EngineView {
val profileContext = ProfileContext(requireContext(), components.profileApplicationContext.relativePath)
return components.core.engine.createView(profileContext).apply {
//We cannot introduce here our wrapped context since a activity type is required to make features work correctly like context menu
return components.core.engine.createView(requireContext()).apply {
selectionActionDelegate = components.selectionAction
}
}