How to open links directly in Firefox full browser?


Question

In some apps (Google News, Read - Simple RSS Reader) when I tap on a link, it won't directly open in Firefox but in a simplistic viewer, supposedly also by Firefox. From there I only have two choices, close the viewer (which brings me back into the app) or open the actual Firefox browser. The problem is that all plugins are disabled in this viewer, so I always need two taps to open a link from those apps. How can I disable this viewer?





I have Firefox 68.3.0 installed, but the problem has existed for a long time.


Answer

Some app developers prefer to keep user within the app as much as possible, even when visiting external links. WebView embeds external web content seamlessly in an app activity so that it looks a part of it. However large contents like complete webpages which cannot fit inside app layout require a minimal browser to show them. Some apps have their own in-app browsers. A relatively recent addition is the ability of standalone browsers (including Chrome and Firefox) to show Custom Tabs inside other apps the same way an in-app browser looks.



When you tap a link, app may fire an explicit intent.action.VIEW to web browser or an implicit intent with URL as data. In latter case if there are more than one apps which can handle the given scheme in URL (e.g. https://) and a default app isn't selected already, system activity resolver (com.android.internal.app.ResolverActivity) shows Open With dialogue (with help from package manager which shows last selected app on top (see more details in this answer):





Then an explicit intent is forwarded to user selected app. So here if you select a browser (or other app) which doesn't provide Custom Tabs functionality, full browser is launched. But if the intent is a CustomTabsIntent (with EXTRAs) and the selected app (e.g. browser) supports Custom Tabs, the URL is opened within the calling app. Browser may start a CustomTabsService in background to receive intents with ACTION_CUSTOM_TABS_CONNECTION:



~$ dumpsys package | grep CustomTabsService
android.support.customtabs.action.CustomTabsService:
b5a09c8 org.mozilla.firefox/org.mozilla.gecko.customtabs.GeckoCustomTabsService


Firefox, at least, provides an option in settings to disable Custom Tabs:





Similarly some apps can provide a configuration option to open links externally, disabling in-app browser and/or custom tabs. Or you can customize the custom tabs behavior using third party apps like Lynket - an open source project (I have no affiliation). Theoretically the same approach can be used to disable custom tabs by selecting such app when "Open with" dialog is shown.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes