Commit 2dfd8339 authored by Mugurell's avatar Mugurell
Browse files

For #10844 - Fennec page shortcuts will open in normal tabs

This comes to resolve a small regression in which they were opened in new
custom tab.
parent d3672880
......@@ -75,6 +75,7 @@ class IntentReceiverActivity : Activity() {
return listOf(components.intentProcessors.migrationIntentProcessor) +
components.intentProcessors.externalAppIntentProcessors +
components.intentProcessors.fennecPageShortcutIntentProcessor +
modeDependentProcessors +
NewTabShortcutIntentProcessor()
}
......
......@@ -42,6 +42,7 @@ fun IntentProcessors.getType(processor: IntentProcessor?) = when {
customTabIntentProcessor == processor ||
privateCustomTabIntentProcessor == processor -> IntentProcessorType.EXTERNAL_APP
intentProcessor == processor ||
privateIntentProcessor == processor -> IntentProcessorType.NEW_TAB
privateIntentProcessor == processor ||
fennecPageShortcutIntentProcessor == processor -> IntentProcessorType.NEW_TAB
else -> IntentProcessorType.OTHER
}
......@@ -69,11 +69,14 @@ class IntentProcessors(
store = customTabsStore
),
WebAppIntentProcessor(sessionManager, sessionUseCases.loadUrl, manifestStorage),
FennecBookmarkShortcutsIntentProcessor(sessionManager, sessionUseCases.loadUrl),
FennecWebAppIntentProcessor(context, sessionManager, sessionUseCases.loadUrl, manifestStorage)
)
}
val fennecPageShortcutIntentProcessor by lazy {
FennecBookmarkShortcutsIntentProcessor(sessionManager, sessionUseCases.loadUrl)
}
val migrationIntentProcessor by lazy {
MigrationIntentProcessor(migrationStore)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment