Mobile/GeckoView: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(→‎GeckoView Triage Bugs: List unprioritized [geckoview:klar] bugs, not unassigned)
(→‎Bugs: List Klar Backlog bugs)
Line 77: Line 77:
   "v2": "nobody@mozilla.org",
   "v2": "nobody@mozilla.org",
   "priority": "P1",
   "priority": "P1",
  "f1": "status_whiteboard",
  "o1": "notsubstring",
  "v1": "[geckoview:crow",
   "component": "GeckoView",
   "component": "GeckoView",
   "resolution": "---",
   "resolution": "---",
Line 112: Line 109:
   "assigned_to": "nobody@mozilla.org",
   "assigned_to": "nobody@mozilla.org",
   "priority": "P1",
   "priority": "P1",
  "f1": "status_whiteboard",
  "o1": "notsubstring",
  "v1": "[geckoview:crow",
   "f2": "keywords",
   "f2": "keywords",
   "o2": "notsubstring",
   "o2": "notsubstring",
Line 165: Line 159:
   "v1": "GeckoView",
   "v1": "GeckoView",
   "status_whiteboard": "[geckoview:klar]",
   "status_whiteboard": "[geckoview:klar]",
  "resolution": "---",
  "include_fields": "id, priority, summary, whiteboard, assigned_to",
  "order": "priority,id"
}
</bugzilla>
=== Klar Backlog ===
P2 GeckoView bugs:
<bugzilla>
{
  "priority": "P2",
  "component": "GeckoView",
  "resolution": "---",
  "include_fields": "id, priority, summary, whiteboard, assigned_to",
  "order": "priority,id"
}
</bugzilla>
[geckoview:klar:p2] non-GeckoView bugs:
<bugzilla>
{
  "f1": "component",
  "o1": "notequals",
  "v1": "GeckoView",
  "status_whiteboard": "[geckoview:klar:p2]",
   "resolution": "---",
   "resolution": "---",
   "include_fields": "id, priority, summary, whiteboard, assigned_to",
   "include_fields": "id, priority, summary, whiteboard, assigned_to",

Revision as of 22:18, 26 April 2018

What is GeckoView

GeckoView is an Android library project that allows third-party developers to use Gecko as an Android View in their own applications. GeckoView is similar to Android's built in WebView, but it is not a drop in replacement for WebView.

Note that GeckoView is NOT ready to be used in a production environment. It is currently possible to load pages and do some basic stuff, but features are limited.

Current API documentation can be viewed here: https://mozilla.github.io/geckoview/javadoc/mozilla-central/

Using GeckoView

Add Nightly taskcluster repo to your build.gradle

repositories {
    maven {
       url 'https://index.taskcluster.net/v1/task/gecko.v2.mozilla-central.nightly.latest.mobile.android-api-16-opt/artifacts/public/android/maven'
    }
}

Add geckoview to dependencies

Again, in build.gradle

dependencies {
    compile 'org.mozilla:geckoview-nightly-armeabi-v7a:+'
}

This will always use the latest Nightly in the repository. As GeckoView development continues, we will have Beta and Release repositories that have the expected version names (61.0.0, etc).


Loading a page in GeckoView

You can now use GeckoView your app by including the following in a layout XML file:

<org.mozilla.gecko.GeckoView
  android:id="@+id/geckoview"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content" />

You can then load a page in your Activity with:

onCreate(...) {
    // Find the GeckoView in our layout
    GeckoView geckoView = (GeckoView) findViewById(R.id.geckoview);

    // Attach the GeckoView to a new GeckoSession
    GeckoSession session = new GeckoSession();
    geckoView.setSession(session);

    // Load a URL
    session.loadUri("http://mozilla.com");
}

Example App

Firefox Focus has a build variant that uses Gecko. To build, check out the Focus code from https://github.com/mozilla-mobile/focus-android and follow the instructions. The only difference is you need to select one of the Gecko build variants from the Android Studio 'Build' menu.

The Gecko-related code for Focus lives in WebViewProvider.java

Bugs

Klar Blockers

P1 GeckoView bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


[geckoview:klar:p1] non-GeckoView bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


Klar Blockers: Unassigned

Unassigned P1 GeckoView bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


Unassigned [geckoview:klar:p1] non-GeckoView bugs:

Full Query
ID Priority Summary Whiteboard Assigned to
1462000 P3 [meta] Safe Browsing API improvements [geckoview:fenix][geckoview:klar:p1][focus:feature]

1 Total; 1 Open (100%); 0 Resolved (0%); 0 Verified (0%);


GeckoView Triage Bugs

Unprioritized GeckoView bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


Unprioritized [geckoview:klar] non-GeckoView bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


Klar Backlog

P2 GeckoView bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


[geckoview:klar:p2] non-GeckoView bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


Crow Bugs

  • All [geckoview:crow] bugs:

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);


Other Bug Queries