killomoo.blogg.se

How to download firefox source code
How to download firefox source code




how to download firefox source code
  1. How to download firefox source code how to#
  2. How to download firefox source code install#
  3. How to download firefox source code code#
  4. How to download firefox source code license#

How to download firefox source code code#

We also allow tools that combine multiple files into a single file, or transpile code from other languages. Techniques used here include reducing the length of variable and function names or removing whitespaces, comments and other redundant syntax elements.

how to download firefox source code

With minification, the intent is to reduce the file size of the code. Not all code that is difficult to read is obfuscated, and we specifically allow minified code to be submitted along with sources as described in this guide. The functionality of your extension cannot be concealed by making control flow decisions based on these external resources. Remote resources, such as data files, are not allowed to be used to obscure the logic of your add-on. A commonly used tool is JavaScript Obfuscator, and there are a number of other tools that can conceal code functionality. Extensions using obfuscated code are in violation of our Add-on Policy and are subject to being blocked.Ĭode is considered obfuscated if the logic and meaning is transformed in a way intended to make it difficult for a human to understand or reverse-engineer.

How to download firefox source code how to#

How to upload source codeĮxtensions using obfuscated code are not permitted, regardless of whether they are hosted on (AMO) or not. This makes it easier for the reviewer to locate your extension’s built code. Tip: Use a build target relative to the directory containing the source, such as a dist subfolder.

How to download firefox source code install#

However, you don’t need to describe how to install common tools such as npm or node. Otherwise, reviewers may use a different version resulting in differences between the generated code and that in the extension.Īssume the reviewer hasn’t installed any developer tools on their computer, that is, make sure you include all the set-up and build instructions to create your code. When using npm, yarn, or other package management tools that support it, be sure to include the lockfile, for example, package-lock.json. Some web-based tools offer a version that can be run locally, in which case provide a script to run the tool locally. Using a web-based tool doesn’t allow the reviewers to be certain that your sources match the minified code.

  • cannot be web-based: all review builds are run locally.
  • must be open source: we cannot verify a build made with commercial tools.
  • The tools you use to minify, or concatenate your source code: Ideally, you should include every command in the build script file.
  • a list of all the commands to generate an identical copy of the extension from the source code, for example, npm install or a grunt target.
  • details, including required version and installation instructions, of any tools or utilities that need to be downloaded, for example, yuicompressor.
  • operating system and environment requirements.
  • When preparing your instructions, remember to include: If the extension is more complex, provide a script to perform the build. If it’s one or two files that are processed, for example obfuscated, the instructions can be something like run uglifyjs data/mycoolstuff.js. The easiest way to provide the build instructions is to include a README file with the submitted source code. To reproduce the build, the reviewer runs the instructions you provided and then uses a diff tool to compare the generated sources to those in the extension. It is, therefore, necessary for the reviewer to rebuild your extension from the source code. This is to ensure that a malware author doesn't provide legitimate-looking sources, but has added a backdoor to the minified code. Provide build instructionsĪn important aspect of reviewing source code is confirming that it's the same code as used in your extension.

    how to download firefox source code

  • Removing your extension from distributionĪny source code that you submit is only accessible to a small group of admin reviewers.
  • Will I ever be able to sell through AMO?.
  • How to download firefox source code license#

    Use plain language in any privacy policy or license agreement.Select the right platforms and versions.The add-on description can be longer, but not too long.Focus on key features in your screenshots.Make sure your summary is just long enough.






    How to download firefox source code