Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:EFForg/https-everywhere into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
zoracon committed Aug 13, 2020
2 parents e03b0d8 + 508163c commit f850f12
Show file tree
Hide file tree
Showing 11 changed files with 521 additions and 297 deletions.
22 changes: 15 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
- [HTTPS Everywhere Source Code Layout](#https-everywhere-source-code-layout)
- [Install Dependencies and Test Build](#install-dependencies-and-test-build)
- [Precommit Testing](#precommit-testing)
- [Testing](#testing)
- [Quickly Testing a Ruleset](#quickly-testing-a-ruleset)
- [Coverage](#coverage)
- [Submitting Changes](#submitting-changes)
- [Contributing Rulesets](#contributing-rulesets)
- [General Info](#general-info)
- [New Rulesets](#new-rulesets)
- [Minimum Requirements for a Ruleset PR](#minimum-requirements-for-a-ruleset-pr)
- [Testing](#testing)
- [Ruleset Style Guide](#ruleset-style-guide)
- [Motivation](#motivation)
- [Indentation & Misc Stylistic Conventions](#indentation--misc-stylistic-conventions)
Expand Down Expand Up @@ -118,6 +120,18 @@ hook provided with:

ln -s ../../hooks/precommit .git/hooks/pre-commit

## Testing

### Quickly Testing a Ruleset

1. Open a version of the Firefox or Chrome browser without HTTPS Everywhere loaded to the HTTP endpoint

2. From your working ruleset branch, test with running `bash test/firefox.sh --justrun` or `bash test/chromium.sh --justrun` to open a fresh profile with the extension loaded and click around and compare the look and functionality of both sites. If something fails to load or looks strange, you may be able to debug the problem by opening the network tab of your browser debugging tool. Modify the `ruleset` until you get it in a good state - you'll have to re-run the HTTPS Everywhere-equipped browser upon each change.

### Coverage

Please reference [HTTPS Ruleset Checker](https://github.com/EFForg/https-everywhere/blob/master/test/rules/README.md) to properly test rulesets against our tests before sending a pull request.

## Submitting Changes

To submit changes, open a pull request from our [GitHub repository](https://github.com/efforg/https-everywhere).
Expand Down Expand Up @@ -175,12 +189,6 @@ In the back-and-forth process of getting the `ruleset` in good shape, there may

We prefer small, granular changes to the rulesets. Not only are these easier to test and review, this results in cleaner commits.

## Testing

A general workflow for testing sites that provide both HTTP and HTTPS follows. Open a version of the browser of your choice without HTTPS Everywhere loaded to the HTTP endpoint, alongside the browser with the latest code and rulesets for HTTPS Everywhere loaded to the HTTPS endpoint (as described in [README.md](README.md).) Click around and compare the look and functionality of both sites.

If something fails to load or looks strange, you may be able to debug the problem by opening the network tab of your browser debugging tool. Modify the `ruleset` until you get it in a good state - you'll have to re-run the HTTPS Everywhere-equipped browser upon each change.

## Ruleset Style Guide

### Motivation
Expand Down
13 changes: 7 additions & 6 deletions chromium/external/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This directory contains files that are external dependencies for HTTPS Everywher

## CodeMirror 5.31.0

```
```bash
$ npm install uglify-js@3.1.9
$ npm install uglifycss@0.0.27
$ curl -o codemirror.zip https://codemirror.net/codemirror-5.31.0.zip
Expand Down Expand Up @@ -40,14 +40,15 @@ uglifycss \
--output codemirror-5.31.0.min.css \
codemirror-5.31.0/lib/codemirror.css
```

## Pako 1.0.5

```
$ npm install pako@1.0.5
```
`$ npm install pako@1.0.5`

### pako_inflate.min.js

```
```bash

$ cp node_modules/pako/dist/pako_inflate.js pako-1.0.5/pako_inflate.min.js
```

```
Loading

0 comments on commit f850f12

Please sign in to comment.