Name Description Size
CommonView.kt Returns false if the view or any of its ancestors are not visible 740
Context.kt Get the FirefoxApplication object from a context. 1290
Fragment.kt Get the components of this application's context. @throws IllegalStateException if not currently associated with a context. 592
Js.kt Due to a bug in the Fire OS WebView (#2540, #2541), fullscreen mp4 videos will appear partially off screen if the page, before entering fullscreen, is at a scroll position greater than 0. We can correct these videos by caching the scroll position before the page was fullscreened and restoring this scroll position after entering fullscreen mode. This fix does not work for all sites. In particular, it does not help YouTube desktop. This fix has a side effect of sometimes changing the page scroll position after the user leaves fullscreen. webm videos were working fine before this fix and this fix does not appear to impact them; I have not tried other video types types because I don't know of any other supported ones. 14174
JSON.kt Map over the JSONArray, removing null values after [transform] and ignoring invalid data. An empty List will be returned if all the values are null or invalid. 939
KeyEvent.kt Returns true if the [KeyEvent] represents a SELECT event. The SELECT button on device (DPAD_CENTER) and on the emulator (ENTER) are different so it's preferred to use this method over checking the keys individually. 1294
LiveDataHelpers.kt 1535
Locale.kt Returns true if the following is true for _any_ of the elements in [allowedLocales]: 1) Language == [this] language 2) No country selected || [this] country is selected country 1240
OkHttp.kt Executes the given network call on the OkHttp client's dispatcher as a suspension function. This technique to wrap callbacks is taken from the official docs: https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md#wrapping-callbacks @throws [IOException] on call failure, as provided by OkHttp. 1297
ServiceLocator.kt 838
Session.kt Saving the state attached ot a session. Temporary solution until we can use the browser-engine component. Component upstream issue: https://github.com/mozilla-mobile/android-components/issues/408 1284
String.kt Beautify a URL by truncating it in a way that highlights important parts of the URL. Spec: https://github.com/mozilla-mobile/focus-android/issues/1231#issuecomment-326237077 2650
Uri.kt Return the truncated host of this Uri. The truncated host will only contain up to 2-3 segments of the original host. The original host will be returned if it's null or and empty String. Examples: mail.google.com -> google.com www.tomshardware.co.uk -> tomshardware.co.uk Spec: https://github.com/mozilla-mobile/focus-android/issues/1231#issuecomment-326237077 2367
WebBackForwardList.kt 557