Skip to content

Commit ca1a84f

Browse files
committed
v3.4.2
1 parent 3aad142 commit ca1a84f

File tree

45 files changed

+466
-274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+466
-274
lines changed

modules/ext/.env.schema

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ WEB_EXT_SESSION_POLLER_INTERVAL=
99

1010
# defaults to 50
1111
WEB_EXT_AUTH_ERROR_COUNT_MAX=
12-
# defaults to 5000 (ms)
12+
13+
# defaults to 250 (ms)
1314
WEB_EXT_AUTH_RESET_MIN_INTERVAL=
1415

1516
# can be set to 80 to get around HTTP 2 throttling limitation

modules/ext/.testing.schema.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ TEST_ASSET_URL=https://assets.windscribe.com
44
TEST_ADMIN_API_URL=http://api-admin.prd.ws.int
55
TEST_ADMIN_USER=
66
TEST_ADMIN_PASSWORD=
7+
TEST_USER=
8+
TEST_PASSWORD=
79

810
# Optional
911

modules/ext/automated_tests/chrome.tests.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ rimraf(userDataDir, () => {})
3535
// Access chrome object in Extensions
3636
// https://github.com/GoogleChrome/puppeteer/issues/2878
3737

38-
const EXT_LOAD_DELAY = 100
38+
const EXT_LOAD_DELAY = 2000
3939
const extPopupHtml = 'popup.html'
4040
const port = process.env.TEST_SERVER_PORT || 1337
4141
let browser, bgPage, page, expressServerListener
@@ -45,7 +45,7 @@ let launchBrowser = () =>
4545
headless: false,
4646
devtools: false,
4747
dumpio: true,
48-
product: 'firefox',
48+
product: 'chrome',
4949
args: [
5050
`--disable-extensions-except=${extPath}`,
5151
`--load-extension=${extPath}`,
@@ -78,15 +78,15 @@ let setupBrowser = async ({ showPopup }) => {
7878

7979
if (showPopup) {
8080
await page.goto(`chrome-extension://${extID}/${extPopupHtml}`)
81-
await page.waitFor(3000)
81+
await page.waitForTimeout(3000)
8282
await page.reload()
8383
await page.tracing.start({
8484
path: path.resolve(`./automated_tests/traces/trace.json`),
8585
})
8686
}
8787

8888
// wait for page to load
89-
await page.waitFor(3000)
89+
await page.waitForTimeout(3000)
9090
const backgroundPageTarget = targets.find(
9191
target => target.type() === 'background_page',
9292
)
@@ -104,7 +104,7 @@ describe('chrome extension', () => {
104104
const logicTests = argv.logic ? getLogicTests(argv.whitelist) : []
105105
const e2eTests = argv.e2e ? getE2eTests(argv.whitelist) : []
106106
const ghostTests = argv.ghost ? getGhostTests(argv.whitelist) : []
107-
const allTests = [...logicTests, ...e2eTests, ...ghostTests]
107+
const allTests = [...e2eTests, ...logicTests, ...ghostTests]
108108

109109
for (let t of allTests) {
110110
// eslint-disable-next-line no-loop-func
@@ -115,7 +115,10 @@ describe('chrome extension', () => {
115115

116116
if (t.eval) {
117117
const evalRes = await bgPage.evaluate(t.eval, {
118-
testUser: global.TEST_USER,
118+
testUser: {
119+
username: process.env.TEST_USER,
120+
password: process.env.TEST_PASSWORD,
121+
},
119122
})
120123
t.assert(evalRes)
121124
}
@@ -129,7 +132,7 @@ describe('chrome extension', () => {
129132
await screenshot(page, t.name)
130133
}
131134

132-
await page.waitFor(500)
135+
await page.waitForTimeout(500)
133136
})
134137
}
135138

modules/ext/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ext",
3-
"version": "3.4.0",
3+
"version": "3.4.2",
44
"private": true,
55
"dependencies": {
66
"@babel/plugin-proposal-export-default-from": "~7.8.3",
@@ -126,15 +126,15 @@
126126
"jsdom-global": "~3.0.2",
127127
"meow": "~6.0.0",
128128
"mocha": "~7.0.0",
129-
"puppeteer": "~2.0.0",
129+
"puppeteer": "~12.0.0",
130130
"react-test-renderer": "^16.13.1",
131131
"react-testing-library": "^8.0.1",
132132
"rimraf": "~3.0.0",
133133
"slack": "~11.0.2",
134134
"web-ext": "~4.0.0",
135135
"webpack-dev-server": "^3.11.0"
136136
},
137-
"uBlockVersion": "ws-v1.41.8",
137+
"uBlockVersion": "ws-v1.42.4",
138138
"main": "index.js",
139139
"license": "MIT"
140140
}

modules/ext/public/manifest/base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Windscribe - Free Proxy and Ad Blocker",
44
"short_name": "Windscribe",
5-
"version": "3.4.0",
5+
"version": "3.4.2",
66
"description": "Windscribe helps you mask your physical location, circumvent censorship, and block ads and trackers on websites you use every day",
77
"content_security_policy": "script-src 'self'; object-src 'self';",
88
"default_locale": "en",
Lines changed: 1 addition & 1 deletion
Loading

modules/ext/src/assets/onproxyfailure-ring.svg

Lines changed: 2 additions & 2 deletions
Loading

modules/ext/src/background.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const ACTIVITY = 'background_setup'
100100
store.dispatch(actions.bgReady.set(true))
101101
})()
102102

103-
// if (process.NODE_ENV !== 'production') {
104-
// // If this were imported at the top of the file it would be bundled in even when in prod.
105-
// import('tests/setup').then(module => module.default())
106-
// }
103+
if (process.NODE_ENV !== 'production') {
104+
// If this were imported at the top of the file it would be bundled in even when in prod.
105+
import('tests/setup').then(module => module.default())
106+
}

modules/ext/src/components/AccountOverlay/index.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -243,25 +243,6 @@ const OtherExtension = ({ close }) => {
243243
)
244244
}
245245

246-
const ConfirmAdvancedMode = ({ close, toggleAdvancedMode }) => {
247-
const { t } = useTranslation()
248-
return (
249-
<>
250-
<ConfirmButton onClick={close}>
251-
<Text fontSize={1} p={1} level={3}>
252-
{t('Take me back')}
253-
</Text>
254-
</ConfirmButton>
255-
256-
<CancelButton onClick={toggleAdvancedMode}>
257-
<Text fontSize={1} p={1} level={3}>
258-
{t("Yes, I'm sure")}
259-
</Text>
260-
</CancelButton>
261-
</>
262-
)
263-
}
264-
265246
const GhostNotAllowed = ({ close, goToSignUp }) => {
266247
const { t } = useTranslation()
267248
return (
@@ -392,13 +373,6 @@ const getContent = ({ status, t }) => {
392373
img: rateUsGarry,
393374
AdditionalComponent: RateUs,
394375
}
395-
case 'confirmAdvancedMode':
396-
return {
397-
title: t('Are you sure?'),
398-
message: t('This will disable all of your current blocker settings.'),
399-
img: cautionGarry,
400-
AdditionalComponent: ConfirmAdvancedMode,
401-
}
402376
case 'somethingWeird':
403377
return {
404378
title: t('Something went wrong'),

modules/ext/src/components/Settings/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default ({
4141
const goBack = () =>
4242
dispatch(actions.scrollToConnected.set(true)) &&
4343
dispatch(actions.view.back())
44-
const [prevPage] = view.previous.reverse()
44+
const prevPage = view.previous[view.previous.length - 1]
4545

4646
return (
4747
<Flex {...restProps} flexDirection="column">

0 commit comments

Comments
 (0)