fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Crash on adding custom search engine

Open ValentinTimisica opened this issue 7 years ago • 0 comments

Steps to reproduce

  1. Stop internet connection.
  2. Go to Settings -> Search -> Add search engine.
  3. Select Custom.
  4. Type a name and the search string (in my example I used yandex.com/search/?text=%s).
  5. 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

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

ValentinTimisica avatar Dec 02 '19 13:12 ValentinTimisica