fenix
fenix copied to clipboard
[Bug] Crash on adding custom search engine
Steps to reproduce
- Stop internet connection.
- Go to
Settings->Search->Add search engine. - Select
Custom. - Type a name and the search string (in my example I used
yandex.com/search/?text=%s). - Press the icon from the top right of the screen to add the custom search engine.
Expected behavior
- The custom search engine is added.
Actual behavior
- The app crashes.
Device information
- Android device: Samsung Galaxy Note 10 (Android 9).
- Fenix version: Nightly from 11/27, Also reproducible on latest Nightly from 12/1.
Additional details
- Video with the crash.
Crashlog
java.io.IOException: org.mozilla.geckoview.WebRequestError: Request failed, error=0x25, category=0x5
at mozilla.components.browser.engine.gecko.fetch.GeckoViewFetchClient.fetch(GeckoViewFetchClient.kt:62)
at org.mozilla.fenix.settings.search.SearchStringValidator.isSearchStringValid(SearchStringValidator.kt:18)
at org.mozilla.fenix.settings.search.AddSearchEngineFragment$createCustomEngine$1$result$1.invokeSuspend(AddSearchEngineFragment.kt:186)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:241)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:740)
Caused by: org.mozilla.geckoview.WebRequestError: Request failed, error=0x25, category=0x5
at org.mozilla.gecko.mozglue.GeckoLoader.nativeRun(Native Method)
at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:476)
┆Issue is synchronized with this Jira Task