Questions tagged [geckoview]

Use for questions about using GeckoView, an open-source library that allows you to render web content on Android using the Gecko web engine. Created and maintained by Mozilla and the community open source community. More info https://geckoview.dev/

71 questions
1
vote
2 answers

Issues with Geckoview (Firefox webview) Graddle conflict (lollipop version)

I am referring https://wiki.mozilla.org/Mobile/GeckoView and also using Exo Player. which is creating a Gradle conflict. [Error image][1]https://i.stack.imgur.com/z8Axo.png i have to try to exclude the exoplayer from Mozilla Gradle but still not…
Subham Naik
  • 411
  • 5
  • 12
1
vote
1 answer

How to set a cookie for GeckoView?

I have an Android WebView code in which I set the cookie value. However, same operation does not work in Mozilla GeckoView. Working sample with WebView: public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { …
Solinnen
  • 330
  • 1
  • 12
0
votes
0 answers

Can I add browser add-ons like uBlock Origin to Android WebView or GeckoView in Android Studio?

Is it doable to include browser extensions like uBlock Origin into Android WebView or GeckoView when developing with Android Studio? I'd like to understand the compatibility and feasibility of such integration I've attempted to utilize WebView and…
0
votes
0 answers

Clearing cache / cookies in GeckoView

Is there a way of clearing the cache and the cookies from GeckoView? Something comparable to WebView's CookieManager.getInstance().removeAllCookies(null) or webView.clearCache()? I have a customer facing app that should not maintain any data between…
Dan Jones
  • 73
  • 1
  • 5
0
votes
1 answer

How to handle any new tab/window creations in GeckoView properly?

So I've been trying to power my app using the Mozilla GeckoView package instead of the Google WebView one, and one issue that I am trying to get through is the way new tab or new window creations are handled. I looked up the lovely internet about it…
Mario
  • 1,374
  • 6
  • 22
  • 48
0
votes
0 answers

browser.cookies.getAll storeId is always firefox-default

This is concerning reading cookies with GeckoView on Android. Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1035417, we can only do so via web extensions. In GeckoView, we can supply contextId when creating tabs. Doing so provides the id…
Allan W
  • 2,791
  • 4
  • 23
  • 41
0
votes
0 answers

Unable to download a file after clicking on print report action in Odoo 16 embedded in GeckoView Android app, how to solve it?

Example on a quotation form, when an user click on Actions print -> report to print, nothing happen. I tried to override the onLoadRequest in my MainActivity onCreate method: @Nullable @Override public GeckoResult
rudi Ladeon
  • 624
  • 6
  • 11
0
votes
0 answers

GeckoView never passes referrer path/query

I'm trying to pass a referrer with GeckoSession.Loader, given that no referrers are passed at all by default with GeckoView. However, only the origin is ever passed. My code (actual URLs obfuscated): val url =…
Matt Bennett
  • 120
  • 9
0
votes
0 answers

App Crashes When User Clicks A Link In Webview (Sending URL Link From Activity 1 To Activity 2)

I'm trying to grab a link from one activity(Webview) and pass it to another Activity which uses (Geckoview). Upon link click, the app crashes or sometimes go to the main activity instead of the intended activity. Below is the code from Activity…
Kez XI
  • 9
  • 3
0
votes
1 answer

GeckoView doesn't open target blank links or JS window.open calls

GeckoView doesn't open links with target="_blank" attributes or window.open calls from JS in the current session - it simply does nothing on these interactions (same as iOS WKWebview). How to default load new tabs/windows in the current…
Matt Bennett
  • 120
  • 9
0
votes
0 answers

send messages to content script from background script when using geckoview

I use geckoview to replace android builtin webview. I want to send messages from background script to content script to update the content of the web page, but I don't know how. Can anyone provide an example to do that? Many thanks. I want to use…
0
votes
1 answer

Load web appliction in GeckoView

I investigating possibilities of GeckoView for android to load local web page with some logic. My requirements: page should be loaded from android app assets with some other resources like css, js, png. page should be able to communicate with…
Fedir Tsapana
  • 1,283
  • 16
  • 19
0
votes
0 answers

No prompt is coming out while choosing file

package com.dhakauniversityitsociety.duits import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.os.Bundle import android.webkit.ValueCallback import…
0
votes
1 answer

How do you add extra headers into request in Android GeckoView?

I found this thread on the Mozilla bug tracking website. It seems like the issue was addressed. However, when I go to import a recent version of the library from maven in Android Studio. Specifically version…
AlanSTACK
  • 5,525
  • 3
  • 40
  • 99
0
votes
2 answers

Import of org.mozilla.geckoview.GeckoRuntime, org.mozilla.geckoview.GeckoSession and org.mozilla.geckoview.GeckoView not working in Android Studio

For creating browser I need Mozilla GeckoView. I did exact the steps of this link, but when I try to import the packages above, theres a compiler error. import org.mozilla.geckoview.GeckoRuntime; import org.mozilla.geckoview.GeckoSession; import…