
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 22 KiB |
@ -1,29 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
|
|||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<shortcut |
|||
android:shortcutId="open_new_tab" |
|||
android:enabled="true" |
|||
android:icon="@drawable/ic_static_shortcut_tab" |
|||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2" |
|||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2"> |
|||
<intent |
|||
android:action="org.mozilla.fenix.OPEN_TAB" |
|||
android:targetPackage="org.mozilla.fenix.beta" |
|||
android:targetClass="org.mozilla.fenix.IntentReceiverActivity" /> |
|||
</shortcut> |
|||
<shortcut |
|||
android:shortcutId="open_new_private_tab" |
|||
android:enabled="true" |
|||
android:icon="@drawable/ic_static_shortcut_private_tab" |
|||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2" |
|||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2"> |
|||
<intent |
|||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB" |
|||
android:targetPackage="org.mozilla.fenix.beta" |
|||
android:targetClass="org.mozilla.fenix.IntentReceiverActivity" /> |
|||
</shortcut> |
|||
</shortcuts> |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 21 KiB |
@ -1,29 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
|
|||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<shortcut |
|||
android:shortcutId="open_new_tab" |
|||
android:enabled="true" |
|||
android:icon="@drawable/ic_static_shortcut_tab" |
|||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2" |
|||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2"> |
|||
<intent |
|||
android:action="org.mozilla.fenix.OPEN_TAB" |
|||
android:targetPackage="org.mozilla.fenix.nightly" |
|||
android:targetClass="org.mozilla.fenix.IntentReceiverActivity" /> |
|||
</shortcut> |
|||
<shortcut |
|||
android:shortcutId="open_new_private_tab" |
|||
android:enabled="true" |
|||
android:icon="@drawable/ic_static_shortcut_private_tab" |
|||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2" |
|||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2"> |
|||
<intent |
|||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB" |
|||
android:targetPackage="org.mozilla.fenix.nightly" |
|||
android:targetClass="org.mozilla.fenix.IntentReceiverActivity" /> |
|||
</shortcut> |
|||
</shortcuts> |
@ -1,18 +0,0 @@ |
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
|||
xmlns:tools="http://schemas.android.com/tools" |
|||
package="org.mozilla.fenix"> |
|||
|
|||
<application> |
|||
|
|||
<service android:name=".customtabs.CustomTabsService"> |
|||
<!-- Trusted Web Activities are currently only supported in nightly. --> |
|||
<intent-filter tools:node="removeAll" /> |
|||
<intent-filter> |
|||
<action android:name="android.support.customtabs.action.CustomTabsService" /> |
|||
<category android:name="androidx.browser.trusted.category.TrustedWebActivities" /> |
|||
</intent-filter> |
|||
</service> |
|||
|
|||
</application> |
|||
|
|||
</manifest> |
@ -1,7 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
<resources> |
|||
<color name="ic_launcher_background">@color/nightly_launcher_background</color> |
|||
</resources> |
@ -1,8 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
<resources> |
|||
<!-- Name of the application --> |
|||
<string name="app_name" translatable="false">Firefox Nightly</string> |
|||
</resources> |
@ -1,8 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<background android:drawable="@color/ic_launcher_background"/> |
|||
<foreground android:drawable="@mipmap/ic_launcher_foreground_fennec_nightly"/> |
|||
</adaptive-icon> |
@ -1,8 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<background android:drawable="@color/ic_launcher_background"/> |
|||
<foreground android:drawable="@mipmap/ic_launcher_foreground_fennec_nightly"/> |
|||
</adaptive-icon> |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 22 KiB |
@ -1,7 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
<resources> |
|||
<color name="ic_launcher_background">@color/debug_launcher_background</color> |
|||
</resources> |
@ -1,8 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
<resources> |
|||
<!-- Name of the application --> |
|||
<string name="app_name" translatable="false">Firefox Nightly</string> |
|||
</resources> |
@ -1,28 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- 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 |
|||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|||
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<shortcut |
|||
android:shortcutId="open_new_tab" |
|||
android:enabled="true" |
|||
android:icon="@drawable/ic_static_shortcut_tab" |
|||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2" |
|||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2"> |
|||
<intent |
|||
android:action="org.mozilla.fenix.OPEN_TAB" |
|||
android:targetPackage="org.mozilla.fennec_aurora" |
|||
android:targetClass="org.mozilla.fenix.IntentReceiverActivity" /> |
|||
</shortcut> |
|||
<shortcut |
|||
android:shortcutId="open_new_private_tab" |
|||
android:enabled="true" |
|||
android:icon="@drawable/ic_static_shortcut_private_tab" |
|||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2" |
|||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2"> |
|||
<intent |
|||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB" |
|||
android:targetPackage="org.mozilla.fennec_aurora" |
|||
android:targetClass="org.mozilla.fenix.IntentReceiverActivity" /> |
|||
</shortcut> |
|||
</shortcuts> |
@ -0,0 +1,72 @@ |
|||
/* 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 |
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|||
|
|||
import android.content.Context |
|||
import android.os.Bundle |
|||
import mozilla.components.browser.engine.gecko.autofill.GeckoLoginDelegateWrapper |
|||
import mozilla.components.browser.engine.gecko.glean.GeckoAdapter |
|||
import mozilla.components.concept.engine.EngineSession.TrackingProtectionPolicy |
|||
import mozilla.components.concept.storage.LoginsStorage |
|||
import mozilla.components.lib.crash.handler.CrashHandlerService |
|||
import mozilla.components.service.sync.logins.GeckoLoginStorageDelegate |
|||
import org.mozilla.fenix.Config |
|||
import org.mozilla.fenix.ext.components |
|||
import org.mozilla.geckoview.GeckoRuntime |
|||
import org.mozilla.geckoview.GeckoRuntimeSettings |
|||
|
|||
object GeckoProvider { |
|||
var testConfig: Bundle? = null |
|||
private var runtime: GeckoRuntime? = null |
|||
|
|||
@Synchronized |
|||
fun getOrCreateRuntime( |
|||
context: Context, |
|||
storage: Lazy<LoginsStorage>, |
|||
trackingProtectionPolicy: TrackingProtectionPolicy |
|||
): GeckoRuntime { |
|||
if (runtime == null) { |
|||
runtime = createRuntime(context, storage, trackingProtectionPolicy) |
|||
} |
|||
|
|||
return runtime!! |
|||
} |
|||
|
|||
private fun createRuntime( |
|||
context: Context, |
|||
storage: Lazy<LoginsStorage>, |
|||
policy: TrackingProtectionPolicy |
|||
): GeckoRuntime { |
|||
val builder = GeckoRuntimeSettings.Builder() |
|||
|
|||
testConfig?.let { |
|||
builder.extras(it) |
|||
.remoteDebuggingEnabled(true) |
|||
} |
|||
|
|||
// Use meeee. |
|||
policy.hashCode() |
|||
|
|||
val runtimeSettings = builder |
|||
.crashHandler(CrashHandlerService::class.java) |
|||
.telemetryDelegate(GeckoAdapter()) |
|||
// TODO: Fix me! |
|||
// .contentBlocking(policy.toContentBlockingSetting()) |
|||
.aboutConfigEnabled(Config.channel.isBeta) |
|||
.debugLogging(Config.channel.isDebug) |
|||
.build() |
|||
|
|||
val settings = context.components.settings |
|||
if (!settings.shouldUseAutoSize) { |
|||
runtimeSettings.automaticFontSizeAdjustment = false |
|||
val fontSize = settings.fontSizeFactor |
|||
runtimeSettings.fontSizeFactor = fontSize |
|||
} |
|||
|
|||
val geckoRuntime = GeckoRuntime.create(context, runtimeSettings) |
|||
val loginStorageDelegate = GeckoLoginStorageDelegate(storage) |
|||
geckoRuntime.loginStorageDelegate = GeckoLoginDelegateWrapper(loginStorageDelegate) |
|||
|
|||
return geckoRuntime |
|||
} |
|||
} |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |