Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 31 22:11

    csadilek on main

    Delete CNAME (compare)

  • Oct 31 08:56

    JohanLorenzo on firefox-android

    Bug 1783690 - part 1: Move all … Bug 1783690 - part 2: Move vers… Bug 1783690 - part 3: Point fil… (compare)

  • Oct 30 05:10

    mergify[bot] on main

    Bug 1798026 - part 1: Don't run… (compare)

  • Oct 29 17:29

    github-actions[bot] on upgrade-geckoview-ac-107

    Update GeckoView (Beta) to 107.… (compare)

  • Oct 29 17:29

    github-actions[bot] on upgrade-geckoview-ac-107

    (compare)

  • Oct 29 17:28

    bors[bot] on upgrade-geckoview-ac-107

    (compare)

  • Oct 29 17:28

    DonalMe on 107.0

    Revert "Update GeckoView (Beta)… (compare)

  • Oct 29 17:22

    DonalMe on upgrade-geckoview-ac-107

    Revert "Update GeckoView (Beta)… (compare)

  • Oct 29 17:18

    bors[bot] on upgrade-geckoview-ac-107

    (compare)

  • Oct 29 17:18

    mergify[bot] on 107.0

    Update GeckoView (Beta) to 107.… (compare)

  • Oct 29 16:55

    github-actions[bot] on upgrade-geckoview-ac-107

    (compare)

  • Oct 29 16:55

    github-actions[bot] on upgrade-geckoview-ac-107

    Update GeckoView (Beta) to 107.… (compare)

  • Oct 29 13:35

    bors[bot] on upgrade-geckoview-ac-main

    (compare)

  • Oct 29 13:35

    mergify[bot] on main

    Update GeckoView (Nightly) to 1… (compare)

  • Oct 29 13:14

    github-actions[bot] on upgrade-geckoview-ac-main

    (compare)

  • Oct 29 13:14

    github-actions[bot] on upgrade-geckoview-ac-main

    Update GeckoView (Nightly) to 1… (compare)

  • Oct 29 03:03

    bors[bot] on sync-strings-107

    (compare)

  • Oct 29 03:03

    mergify[bot] on 107.0

    Strings - components/feature/ad… Strings - components/feature/pr… (compare)

  • Oct 29 02:47

    github-actions[bot] on sync-strings-107

    Strings - components/feature/ad… Strings - components/feature/pr… (compare)

  • Oct 29 01:02

    bors[bot] on upgrade-geckoview-ac-main

    (compare)

Roger Yang
@rocketsroger
Great, thanks. I'll watch for any update on https://bugzilla.mozilla.org/show_bug.cgi?id=1605872
Zafer Celaloglu
@zfrc
:thumbsup: thanks @jonalmeida @rocketsroger
Stefano Pacifici
@spacifici
Hi, straight to the point: I'm trying to integrate roboelectric but I'm getting the following excpetion
java.lang.ExceptionInInitializerError
    at mozilla.appservices.httpconfig.LibViaduct.<clinit>(LibViaduct.kt)
    at mozilla.appservices.httpconfig.RustHttpConfig.setClient(HttpConfig.kt:42)
    at mozilla.components.support.rusthttp.RustHttpConfig.setClient(RustHttpConfig.kt:25)
    at org.mozilla.reference.browser.BrowserApplication.onCreate(BrowserApplication.kt:27)
    at org.robolectric.android.internal.AndroidTestEnvironment.lambda$installAndCreateApplication$0(AndroidTestEnvironment.java:276)
    at org.robolectric.util.PerfStatsCollector.measure(PerfStatsCollector.java:75)
    at org.robolectric.android.internal.AndroidTestEnvironment.installAndCreateApplication(AndroidTestEnvironment.java:276)
    at org.robolectric.android.internal.AndroidTestEnvironment.setUpApplicationState(AndroidTestEnvironment.java:169)
    at org.robolectric.RobolectricTestRunner.beforeTest(RobolectricTestRunner.java:301)
    at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:243)
    at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: mozilla.appservices.support.native.MegazordNotInitialized: The application-services megazord has not yet been initialized, but is needed by "viaduct"
    at mozilla.appservices.support.native.HelpersKt.lookupMegazordLibrary(Helpers.kt:108)
    at mozilla.appservices.support.native.HelpersKt.findMegazordLibraryName(Helpers.kt:142)
    at mozilla.appservices.httpconfig.LibViaduct$Companion$INSTANCE$1.invoke(LibViaduct.kt:41)
    at mozilla.appservices.httpconfig.LibViaduct$Companion$INSTANCE$1.invoke(LibViaduct.kt:15)
    at mozilla.appservices.httpconfig.LibViaduct$Companion.<clinit>(LibViaduct.kt:16)
    ... 15 more
Any idea why?
James Willcox
@snorp
I can't imagine android-components really works via roboelectric due to the native code in play
Sebastian Kaspari
@pocmo
It does!
James Willcox
@snorp
does it really
that is wild
Sebastian Kaspari
@pocmo
You may be missing a fortest dependency for some of the native code, I assume.
Yeah, we are using Robolectric ourselves. :)
James Willcox
@snorp
rad
Sebastian Kaspari
@pocmo
@spacifici Where are you running the test? In AC itself? Or Reference Browser? Or Fenix? Or something else?
Stefano Pacifici
@spacifici
Would you guys like to support roboelectric too? I can send a pr
Sebastian Kaspari
@pocmo
@spacifici Yeah, absolutely, we haven't had the time to set it up for RB (since most of the tests live in AC). Would definitely be interested in a PR that adds it to RB. :)
Stefano Pacifici
@spacifici
@pocmo About that PR, I need help with this to errors:
  1. Can't load mozglue: context.getApplicationInfo().nativeLibraryDir is null and System.loadLibrary("mozglue) throws
  2. Glean is complaining about the WorkManager not being initialized correctly
Sebastian Kaspari
@pocmo
@spacifici We need to make sure to not load Gecko(View) in a Robolectric test - this definitely won't work.
Stefano Pacifici
@spacifici
Will it work with the System engine?
Sebastian Kaspari
@pocmo
I don't think it is worth switching to another engine just for the tests. This may make it hard to trust the tests. Some time ago we removed the RB variant that uses the system engine since it doesn't support all the features we wanted to use.
Fenix works around that by injecting a different Application object during test (extending the actual implementation) and mocking the engine.
Stefano Pacifici
@spacifici
I'm going to try this way, it's longer than I initially thought but I'll give it a try
Ayush Shrivastava
@s-ayush2903
Hello Everyone, this is Ayush Shrivastava from IIT Patna, aiming to make it to GSoC'20.I have a quite decent knowledge of Version Control and Android Development with the help of which I have developed and deployed a few apps for harmonization of technical affairs and fests also at our college. I'm new to Mozilla Community and this project too, I've been studying this project's codebase and have got a clear understanding of it. So please let me know how should I contribute, i.e., should I discuss here before creating an issue or directly create it?
Stefano Pacifici
@spacifici
@pocmo Can you please have a look at this? spacifici/reference-browser@67da6ef
I still have to work on it and I do not have exactly understood how to avoid the following
Exception in thread "Gecko" java.lang.NullPointerException
    at org.mozilla.gecko.mozglue.GeckoLoader.doLoadLibrary(GeckoLoader.java:420)
    at org.mozilla.gecko.mozglue.GeckoLoader.loadMozGlue(GeckoLoader.java:472)
    at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:443)
Where is this called from? Hints?
Sebastian Kaspari
@pocmo
apart form the engine the client can load gecko too if it is using the GeckoViewFetchClient implementation.
Stefano Pacifici
@spacifici
yep, fixed
mocking the client was enough
Zafer Celaloglu
@zfrc
Hi, I'm having issue about navigation graph, as you know HomeFragment is startDestination and all transactions made through replace func. at the behind of this lib. what I want to do is to hold our startDestination fragment in backstack in order to be able to prevent it to recreate from beginning because there are couple of API calls are triggered in HomeFragment and those shouldn't be triggered whenever user back to HomeFragment
btw all transactions in navigation components are done through replace func. instead of add, I believe that I need to change this replace func. to add instead
masi456
@masi456
Hello all! @rocketsroger are you there? :)
Roger Yang
@rocketsroger
@masi456 Sorry I didn't see this till today. Did you wanted to talk about the context menu changes?
if that's the case I'm assuming everything is good now? :)
masi456
@masi456
@rocketsroger: Dont worry! Yes it was about the menu changes. Everything's fine now :)
Roger Yang
@rocketsroger
:thumbsup:
Tiger Oakes
@NotWoods
Hey all, we’ve set up a new Mozilla-wide public chat system at https://chat.mozilla.org. Our android-components channel there will be replacing Gitter and IRC. See you there!
Akram Bensalem
@AkramBensalem
Any one here can help me ?
thimb2020
@thimb2020
Hello all
I have a big issue. When i run release mode from android studio, app run ok. But when build ADB file and publish to google play. Start app error
java.lang.Exception: Error loading sqlite libraries
at org.mozilla.gecko.mozglue.GeckoLoader.loadSQLiteLibsNative(Native Method)
at org.mozilla.gecko.mozglue.GeckoLoader.loadSQLiteLibs(GeckoLoader.java:200)
at org.mozilla.gecko.GeckoThread.loadGeckoLibs(GeckoThread.java:269)
at org.mozilla.gecko.GeckoThread.initGeckoEnvironment(GeckoThread.java:289)
at org.mozilla.gecko.GeckoThread.run(GeckoThread.java:448)
Please help me, thank
thimb2020
@thimb2020
@polinasergeyenko Error loading sqlite libraries at org.mozilla.gecko.mozglue.GeckoLoader.loadSQLiteLibsNative ) . Same me . How about your solution?
thimb2020
@thimb2020
android:extractNativeLibs="true" still error
Sourabhlpu
@Sourabhlpu
I am trying to use the browser in the sample apps. How can I add the "browser" app as a module in my another android project? I have tried the follow the steps but I am getting the following error
Could not determine the dependencies of task ':app:compileDevelopmentDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:developmentDebugCompileClasspath'.
   > Could not resolve project :android-components.
     Required by:
         project :app
      > No matching configuration of project :android-components was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'buildTypes' with value 'development', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.
I basically want a browser to run within my app. The "browser" in the sample apps seems to be a good starting point but I am not sure how to add it to my project. I have tried to add the "browser" as module in my project but that's giving me the above error. Other than than I can only think of copying all the classes, res, etc from the "browser" app and copy in my project and then also add the depedencies in my gradle. I don't think the later option is a better option tho. Please help me here I am really stuck
Jonathan Almeida
@jonalmeida
@Sourabhlpu you can have a look at Reference Browser which shows how apps today can use GeckoView/Android Components.
Jonathan Almeida
@jonalmeida
⚠️ ⚠️ ⚠️ NOTICE: This channel is no longer actively monitored. Please head to https://chat.mozilla.org to find the 'Android Components' room there!
Sourabhlpu
@Sourabhlpu
I have added mozilla android components in gradle but I am getting error as shown in the image. For both the errors I have their corresponding dependency added and I can confirm that they are downloaded. I have no idea why this is happening
alt