Git Product home page Git Product logo

perfidies-of-the-web's Introduction

PerFidieS of the Web

This is the client side of the PFS2 project, which updates how Mozilla tracks browser plugins. As new plugin versions are released or vulnerabilities are discovered the PFS2 project will encourage or alert the user to upgrade plugins.

http://mozilla.com/en-US/plugincheck/ - Uses this project and has more information

Structure of Perfidies

Perfidies is broken down into several source files. Prepare for ASCII Art...

  ___________________________________________
 /                                            \
 | plugincheck_ui.js | plugincheck_badge_ui.js |
 |-------------------|                         |
 | messages.js       |                         |
 |-------------------------------------------- |
 |       modern_browser.js, exploder.js        |
 |-------------------------------------------- |
 |       perfidies.js                          |
 \_____________________________________________/

So the top layer is mozilla.com specific messages.js - Exists for L10n

The bottom two layers should be reusable.

Development

Edit js files run tests/unit.html, pfs2_json.html, via file system or local web server.

For maximum fun, setup mozilla.com, plugindir, and make this directory available via a local web server.

Integration test

Setup the plugindir server, which has a PFS2 api http://github.com/lmorchard/plugindir then run it's tests to populate the database with test data

In this project, run tests/integration.html via a local web server for end to end integration tests. make sure your pfs2 database has the Foobar plugin data.

Building the project

  1. Edit DIST_DIR and PERFIDIES env variables in build.conf
  2. ./build.sh
  3. Produces $DIST_DIR/plugincheck.js and $DIST_DIR/plugincheck_badge.js

Working on Mozilla.com?

Set DIST_DIR to your moco checkout js directory. Example: DIST_DIR=/some/path/mozilla.com/js/ Build Project and then hit local instance of mozilla.com/en-US/plugincheck/ Commit changes to this project as well as Mozilla.com js/plugincheck.js and js/plugincheck_badge.js

Contributors:

perfidies-of-the-web's People

Contributors

lloyd avatar lmorchard avatar ozten avatar sgarrity avatar

Stargazers

 avatar

Watchers

 avatar

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.