Mobile/GeckoView: Difference between revisions
m (Other P1 Bugs) |
(→Bugs: Separate Klar blockers and backlog) |
||
| Line 45: | Line 45: | ||
== Bugs == | == Bugs == | ||
=== Klar | === Klar Blockers === | ||
* | * P1 [geckoview:klar] bugs: | ||
<bugzilla> | <bugzilla> | ||
{ | { | ||
"status_whiteboard": "[geckoview:klar]", | "status_whiteboard": "[geckoview:klar]", | ||
"priority": "P1", | |||
"resolution": "---", | "resolution": "---", | ||
"include_fields": "id, priority, summary, whiteboard, assigned_to", | "include_fields": "id, priority, summary, whiteboard, assigned_to", | ||
| Line 58: | Line 59: | ||
</bugzilla> | </bugzilla> | ||
* | * Other P1 bugs: | ||
<bugzilla> | |||
{ | |||
"component": "GeckoView", | |||
"priority": "P1", | |||
"resolution": "---", | |||
"f1": "status_whiteboard", | |||
"o1": "notsubstring", | |||
"v1": "[geckoview:", | |||
"include_fields": "id, priority, summary, whiteboard, assigned_to", | |||
"order": "priority,id" | |||
} | |||
</bugzilla> | |||
* [https://github.com/mozilla-mobile/focus-android/milestone/22 Klar's "Klar v5.0" GitHub Issues] | |||
* [https://bugzilla.mozilla.org/buglist.cgi?v4=%5Bgeckoview%3Acrow%5D&priority=P1&j_top=OR&f1=status_whiteboard&o3=equals&v3=GeckoView&o1=substring&resolution=---&status_whiteboard_type=allwordssubstr&f4=status_whiteboard&query_format=advanced&f3=component&o4=notsubstring&f2=OP&status_whiteboard=%5Bgeckoview%3Aklar%5D&f5=CP&v1=%5Bgeckoview%3Aklar%5D geckoview:klar Open Blockers] | |||
* [https://bugzilla.mozilla.org/buglist.cgi?resolution=FIXED&status_whiteboard_type=allwordssubstr&query_format=advanced&status_whiteboard=%5Bgeckoview%3Aklar%5D geckoview:klar Fixed Bugs] | |||
=== | === Klar Backlog === | ||
* | * P2-P3 [geckoview:klar] bugs: | ||
<bugzilla> | <bugzilla> | ||
{ | { | ||
"status_whiteboard": "[geckoview: | "status_whiteboard": "[geckoview:klar]", | ||
"priority": ["P2","P3"], | |||
"resolution": "---", | "resolution": "---", | ||
"include_fields": "id, priority, summary, whiteboard, assigned_to", | "include_fields": "id, priority, summary, whiteboard, assigned_to", | ||
| Line 76: | Line 92: | ||
</bugzilla> | </bugzilla> | ||
=== | === Crow Bugs === | ||
* All [geckoview:crow] bugs: | |||
<bugzilla> | <bugzilla> | ||
{ | { | ||
" | "status_whiteboard": "[geckoview:crow]", | ||
"resolution": "---", | "resolution": "---", | ||
"include_fields": "id, priority, summary, whiteboard, assigned_to", | "include_fields": "id, priority, summary, whiteboard, assigned_to", | ||
"order": "priority,id" | "order": "priority,id" | ||
| Line 93: | Line 107: | ||
=== Other GeckoView Bugs === | === Other GeckoView Bugs === | ||
** [https://bugzilla.mozilla.org/buglist.cgi?component=GeckoView&priority=P1&resolution=---&include_fields=id&include_fields=priority&include_fields=component&include_fields=summary&include_fields=keywords&include_fields=whiteboard&include_fields=assigned_to&order=priority P1 GeckoView bugs] | * [https://bugzilla.mozilla.org/buglist.cgi?priority=--&columnlist=priority%2Ccomponent%2Cassigned_to%2Cbug_status%2Cresolution%2Cshort_desc%2Cchangeddate&resolution=---&query_format=advanced&component=GeckoView Unprioritized GeckoView bugs] | ||
* [https://bugzilla.mozilla.org/buglist.cgi?component=GeckoView&priority=P1&resolution=---&include_fields=id&include_fields=priority&include_fields=component&include_fields=summary&include_fields=keywords&include_fields=whiteboard&include_fields=assigned_to&order=priority P1 GeckoView bugs] | |||
* [https://bugzilla.mozilla.org/buglist.cgi?component=GeckoView&priority=P2&priority=P3&priority=P4&priority=P5&query_format=advanced&resolution=---&query_based_on=&columnlist=priority%2Ccomponent%2Cassigned_to%2Cbug_status%2Cresolution%2Cshort_desc%2Cchangeddate P2-P5 GeckoView bugs] | |||
* [https://github.com/mozilla-mobile/focus-android/labels/Klar%2BGeckoview Klar's "Klar+GeckoView" GitHub Issues] | |||
Revision as of 00:07, 12 March 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 webpages, but that's about it. See bug 1322573.
Using GeckoView
- Download a recent GeckoView AAR from treeherder (mozilla-central tree). The AAR is available from the 'Android API16+ Gradle opt' job under the 'Bng' symbol. After clicking that, there is a link to 'geckoview-0.0.1.aar' in the bottom pane.
- Add the GeckoView AAR to your Gradle / Android Studio project. In Android Studio you can add the .aar as follows:
- Move the geckoview aar to your project's 'app/libs' folder.
- Use the 'New Module' option under the 'File' menu.
- Import the .aar file.
- Add the new GeckoView AAR module as a dependency to the application.
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 code with:
// 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:klar] bugs:
No results.
0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);
- Other P1 bugs:
No results.
0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);
Klar Backlog
- P2-P3 [geckoview:klar] 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%);