diff --git a/.eslintrc.json b/.eslintrc.json index cdfa1779..d86aea54 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -33,14 +33,17 @@ "commitmentsKey": true, "committedNavigation": true, "CONFIG_ID": true, + "CONFIGURATION_URL": true, "countStoredTokens": true, "createShake256": true, "dev": true, + "extVersion": true, "futureReload": true, "GenerateNewTokens": true, "getActiveECSettings": true, "getBigNumFromBytes": true, "getVerificationKey": true, + "getConfigForId": true, "getConfigId": true, "getConfigName": true, "getCurvePoints": true, @@ -65,6 +68,7 @@ "patternToRegExp": true, "PEM": true, "PPConfigs": true, + "processConfigPatches": true, "processHeaders": true, "processRedirect": true, "redeemMethod": true, @@ -73,6 +77,7 @@ "reloadTabForCookie": true, "requestIdentifiers": true, "resetSpendVars": true, + "retrieveConfiguration": true, "sec1DecodeFromBase64": true, "sec1DecodeFromBytes": true, "sec1EncodeToBase64": true, @@ -98,9 +103,12 @@ "updateBrowserTab": true, "UpdateCallback": true, "updateIcon": true, + "validConfigIds": true, "validRedemptionMethods": true, - "verifyCommitments": true, - "verifyProof": true + "verifyConfiguration": true, + "verifyProof": true, + "xhrDone": true, + "xhrGoodStatus": true }, "rules": { "new-cap": 0, diff --git a/Makefile b/Makefile index 767df086..5801351e 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ SOURCES= src/crypto/keccak/keccak.js \ src/crypto/local.js \ + src/ext/config.js \ src/ext/background.js \ src/ext/browserUtils.js \ - src/ext/config.js \ src/ext/h2c.js \ src/ext/issuance.js \ src/ext/redemption.js \ src/ext/tokens.js \ src/ext/utils.js LISTENER=src/ext/listeners.js +INIT=src/ext/init.js ASN1_PATH=src/crypto/asn1 SJCL_PATH=src/crypto/sjcl @@ -51,7 +52,7 @@ dist: build zip -r ext.zip ./dist rm -rf ./dist -addon/build.js: ${ASN1_PATH}/asn1-parser.js ${SJCL_PATH}/sjcl.js ${SOURCES} ${LISTENER} +addon/build.js: ${ASN1_PATH}/asn1-parser.js ${SJCL_PATH}/sjcl.js ${SOURCES} ${INIT} ${LISTENER} cat $^ > $@ addon/test.js: ${ASN1_PATH}/asn1-parser.js ${SJCL_PATH}/sjcl.js ${SOURCES} cat $^ > $@ diff --git a/addon/manifest.json b/addon/manifest.json index 32dc631f..c14d6ac9 100644 --- a/addon/manifest.json +++ b/addon/manifest.json @@ -1,5 +1,4 @@ { - "description": "Handles passes containing cryptographically blinded tokens for bypassing internet challenge.", "manifest_version": 2, "name": "Privacy Pass", @@ -7,13 +6,11 @@ "icons": { "48": "icons/ticket-48.png" }, - "background": { "scripts": [ "build.js" ] }, - "permissions": [ "alarms", "cookies", @@ -24,11 +21,9 @@ "webRequestBlocking", "webNavigation" ], - "browser_action": { "default_icon": "icons/ticket-empty-32.png", "default_title": "Privacy Pass", "default_popup": "popup/bc-plugin.html" } - } diff --git a/addon/popup/bc-plugin.html b/addon/popup/bc-plugin.html index 275a1ff3..4bed31e4 100644 --- a/addon/popup/bc-plugin.html +++ b/addon/popup/bc-plugin.html @@ -10,7 +10,7 @@