Git Product home page Git Product logo

firefox-for-android-addons's Introduction

DEPRECATED REPO

Add-ons using the APIs described in this document are considered a legacy technology in Firefox and will be removed in Firefox 57. Don't use these techniques to develop new add-ons - use the WebExtensions API instead. If you maintain an add-on which uses the techniques described here, consider migrating it to use WebExtensions.

This repository sticks around for reference purposes.

firefox-for-android-addons

A collection of JS modules, sample code, and boilerplate add-ons to help you build add-ons for Firefox for Android.

Refer to the Firefox for Android Add-ons documentation on MDN for tutorials and API reference.

firefox-for-android-addons's People

Contributors

gitagon avatar leibovic avatar mcomella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

firefox-for-android-addons's Issues

JNI Examples

This JNI example is so cool!

https://github.com/mozilla/firefox-for-android-addons/blob/355f9a01464a0794c1084e8fdbab92c58503f49a/snippets/jni.js

I was trying to take a screenshot as per this stackoverflow topic:

http://stackoverflow.com/a/31346510/5062337
If you want to take a screenshot from your own program you can get the main View and make it draw itself into a Bitmap and save it (this way the system bars will not be present on the image).

Would you be able to help me out, Im learning JNI. As soon as I do I'll update MDN, that's what I did with WinAPI, COM, GTK, GDK, etc: https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/Standard_OS_Libraries

I help out lots of people on Stackoverflow and irc so you helping me would not be just a one to one. It will be one to many :)

buggy android add-on native-ui-boilerplate

I implemented an add-on for fennec, and as recommended, using the native-ui-boilerplate from
https://github.com/mozilla/firefox-for-android-addons

I realized with this code, the add-on menu entry disappeared after restarting Firefox for Android.

I grew some grey hairs assuming the problem must be in my own code, because the template must be correct...
In a nutshell, I discovered in bootstrap.js, the domWindow variable initialization has been removed last year from the onOpenWindow handler in line 66, therefore causing all calls to domWindow methods fail:
45c8521

Now I wonder if this line has been removed because of some API deprecation or "dirty" internals and what a "clean" fix should be like, maybe just something like this?
let domWindow = aWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindow);

NOTE: also filed this on bugzilla hoping it will prevent someone else from running into the same time-consuming trap.

Adding button for some selected texts in Firefox Android browser

Hi,

Need a help. I wanted to know if its possible to implement a firefox add-on which shows a button whenever it sees a particular text in the loaded webpage. For eg: say, showing a call button whenever it sees any number.
I tried searching across the APIs but could get any straightforward approach.
Please let me know if there are any such existing sample code or add-ons I can refer to or the API I can investigate to start with the implementation.

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.