Commit graph

1137 commits

Author SHA1 Message Date
Arlo Breault
a164d61f16 Remove tests referring to BadgeUI
Since that's been overhauled.  The whole ui.spec.js file probably needs
redoing.
2019-07-27 12:01:03 -04:00
Arlo Breault
0f33546fec Clean up some linting errors 2019-07-27 12:01:03 -04:00
Arlo Breault
e60f22833a Reimagine the badge
Trac 27385
2019-07-27 12:01:03 -04:00
David Fifield
0bded511b9 Add a "Deploying" section to proxy/README.md. 2019-07-27 09:53:09 -06:00
David Fifield
695554cbc5 Make "npm run build" include .htaccess.
Formerly it was copying static/*, and the wildcard skipped the dotfile.
2019-07-27 09:42:12 -06:00
David Fifield
905f8b78c1 bamsoftware.com -> freehaven.net in proxy/README.md.
https://bugs.torproject.org/31250
2019-07-27 09:31:16 -06:00
Cecylia Bocovich
299c12b2e9 Version bump to fix issue with addon update 2019-07-26 10:45:50 -04:00
Cecylia Bocovich
b46e7f127a Bump version to reflect icon changes
Bumping the version again to 0.0.7
2019-07-26 10:11:14 -04:00
Cecylia Bocovich
b00d1b7fd7 Made manifest icon square
The mozilla addon update failed with an error
`Error: Icon at "icons/status-on.png" must be square.`
I fixed the icon in the manifest to be 60x60 pixels.
2019-07-26 10:09:32 -04:00
Cecylia Bocovich
185edc4b15 Forgot version bump for previous tag 2019-07-26 10:02:17 -04:00
Cecylia Bocovich
bd43c345db Use freehaven.net domains for bridge and broker
A quick, temporary fix to get around Google safe browsing blockage of
bamsoftware.com
2019-07-26 09:58:34 -04:00
David Fifield
e67a659943 Fix tests for Params.getByteCount.
They were relying on the Query.parse interface, which was removed
separately.

https://bugs.torproject.org/31126#comment:5
2019-07-25 14:32:26 -06:00
David Fifield
f795fb5a33 Make tabs uniform in manifest.json. 2019-07-23 11:06:53 -06:00
David Fifield
74d3895ee9 Make the "Turn On/Off" text a label for the slider.
So that you can click on the text as well as the slider.
2019-07-23 10:51:47 -06:00
David Fifield
fac361c4a1 Bug 31203: Rewrite Parse.byteCount to fix bugs.
There were two problems having to do with looking up in the UNITS
object. (1) It was checking for undefined keys by comparing to null,
rather than undefined. (2) It was finding Object.prototype keys like
"toString".
2019-07-22 16:22:52 -06:00
David Fifield
abdda1c8bf Bug 31203: Add tests for Parse.byteCount and Params.getByteCount. 2019-07-22 16:22:52 -06:00
David Fifield
e87ec65858 Use URLSearchParams.toString instead of Query.buildString. 2019-07-18 18:30:25 -06:00
David Fifield
fdc5563f87 Bug 31126: Use URLSearchParams instead of Query.parse.
This standard interface does the same thing as Query.parse did, with a
different API on the return value. It doesn't have the problems with
keys inherited from Object.prototype that Query.parse did.
2019-07-18 18:29:59 -06:00
David Fifield
76b81bcf77 Remove unused Params.getString. 2019-07-18 16:32:56 -06:00
David Fifield
c1f6548602 Remove unused Params.getAddress.
It was formerly used for the "broker" and "relay" query string
parameters, which were removed in
debe9c3748.
2019-07-18 16:24:11 -06:00
Arlo Breault
d6d42e82aa Update the main page on the static website 2019-07-13 15:53:37 +02:00
Arlo Breault
6c6707ae9b Set the browser action icon to off when webrtc is disabled
This is now necessary since the webextension changed to default to on.

Follow up to 095f4a0

From trac 31067
2019-07-13 12:48:21 +02:00
Cecylia Bocovich
c02c4cfbbd Bump version of webextension 2019-07-12 10:47:34 -04:00
Cecylia Bocovich
1fad53d8d0 Adding back the STUN server port configuration
In Firefox, leaving out the STUN port caused connections to the STUN
server to fail
2019-07-12 10:21:38 -04:00
Arlo Breault
fab39ae57c Cleanup lints identified by eslint
Some files were omitted in the .eslintignore, left as an exercise to the
reader.

We probably want to reduce amount of globals overall and use proper es
modules.
2019-07-10 10:58:29 +02:00
Arlo Breault
ebeb45c8d6 Lint with eslint
Requires at least node v8.x
2019-07-10 10:58:29 +02:00
Arlo Breault
c12fcbeb85 Null out relay after closing
This was probably meant to be `@relay = null` is the coffeescript.
2019-07-10 10:58:29 +02:00
Arlo Breault
fb0578d840 Don't specify port for stun server
No idea why but, with it, when a client disconnects the datachannel
doesn't close.  This wasn't an issue prior to 359600d since the
configuration wasn't being passed to the peerconnection constructor.

This probably just makes the url invalid and falls back to a default in
libwebrtc.
2019-07-10 10:58:16 +02:00
Arlo Breault
6e95581f53 Don't overwrite global location 2019-07-10 10:56:00 +02:00
Arlo Breault
3455cd5da8 Ensure snnowflake was initialized in unload handlers 2019-07-10 10:55:45 +02:00
Arlo Breault
99952ca7de Use at least v6 of node on travis for destructuring assignment 2019-07-10 10:49:53 +02:00
Arlo Breault
d3080e2566 Remove mentions of coffeescript from docs 2019-07-10 10:49:53 +02:00
Arlo Breault
27a92ab03a Close over init so that we can return if a feature isn't detected
I guess alternatively, just use an if/else block.
2019-07-10 10:49:53 +02:00
Arlo Breault
f97c37fe5d Rename Cakefile and make it work 2019-07-10 10:49:53 +02:00
Arlo Breault
1867a3f121 Lightly massage some of the generated JavaScript 2019-07-10 10:49:53 +02:00
Arlo Breault
31ad9566e6 Compile coffee files and remove them
With,

  ./node_modules/.bin/coffee -b -c Cakefile `find . -path ./node_modules -prune -o -name '*.coffee'`
2019-07-10 10:49:36 +02:00
Arlo Breault
82562fb21d Bump coffeescript to 2.x
After auditing for breaking changes [0] so that the output produced uses
ES2015 classes.

[0] https://coffeescript.org/#breaking-changes)
2019-07-10 10:44:23 +02:00
Arlo Breault
359600ddc5 Fix pcConfig from compiling to a global
But note that maybe we should be constructing a new PCConfig each time
Config is instantiated, rather than sharing it on the prototype.
2019-07-10 10:39:12 +02:00
Arlo Breault
1fd6cb870e Can't reference 'this' before calling super in derived class constructors
From https://coffeescript.org/#breaking-changes-super-this
2019-07-10 10:39:12 +02:00
Cecylia Bocovich
dcea8b74fa Update required version of websocket dependency 2019-07-08 13:15:44 -04:00
Cecylia Bocovich
2cf0c73b22 Version bump because of missing icons
The webextension icons were missing in the Mozilla addons upload. We
need a newer version to update it.
2019-07-05 17:10:15 -04:00
Cecylia Bocovich
92af224676 Bumping version again
Messed up the git tag so just going for v0.0.3
2019-07-05 15:52:09 -04:00
Cecylia Bocovich
a618ab4c18 Updated version number in manifest.json 2019-07-05 15:34:24 -04:00
Arlo Breault
e6f9211d13 Update webext manifest descriptionn 2019-07-05 20:57:03 +02:00
Arlo Breault
453bf0611c Cleanup popup onMessage handler 2019-07-05 20:53:47 +02:00
Arlo Breault
6ab6e489f6 Fix comprehension in Parse.cookie
So that it compiles to,

```
if (!(name in result)) {
  result[name] = value;
}
```

instead of,

```
if (!(indexOf.call(result, name) >= 0)) {
  result[name] = value;
}
```

since `result` is an object, not an array.
2019-07-05 13:28:25 +02:00
Arlo Breault
095f4a0510 Warn when WebRTC isn't detected in the webext
Trac 31067
2019-07-05 06:58:40 +02:00
Cecylia Bocovich
4494dbd3ca Move toggle initiation init-webext.coffee
Prevents repeat calls to update() on startup
2019-07-04 17:01:27 -04:00
Cecylia Bocovich
6210b5ea7f Check returns properly for receiving offer
Now that we're setting the active attribute of pair to true before
accepting a client offer, we should be careful to reset it to false if
receiving the offer fails
2019-07-04 17:01:27 -04:00
Cecylia Bocovich
f6f37c7e68 Enable snowflake extension by default 2019-07-04 17:01:27 -04:00