Revision control
Copy as Markdown
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
package org.mozilla.focus.browser
import android.content.ContentResolver
import android.net.Uri
import org.mozilla.focus.ext.toUri
/**
* A collection of known URLs and parts of URLs.
*/
object URLs {
// We can't use "about:" because webview silently swallows about: pages,
// hence we use a custom scheme.
const val SCHEME_APP = "firefox"
const val SCHEME_FILE = ContentResolver.SCHEME_FILE // for convenience.
const val PATH_ANDROID_ASSET = "/android_asset"
val APP_STARTUP_HOME = "$SCHEME_APP:home".toUri() as Uri
@JvmField val APP_ABOUT = "$SCHEME_APP:about".toUri() as Uri
@JvmField val ABOUT_BLANK = "about:blank".toUri() as Uri
}