Commit graph

18 commits

Author SHA1 Message Date
Dean Whillier e12d47ea62
Mm 16694 master validate urls (#1000)
* validate urls before deeplink or link click

* tests for isValidURL utility function

* review change - invert condition

* add validation for loaded files

bounds-info.json, app-state.json, config.json

* further validation and tweaks

certificate.json, permission.json

* add 2 more files for validation

* parse and validate deeplinks

- includes fix for windows deeplink when app is open

* disable auto-updator when in dev

* Squirrel is not used anymore

* fix validating allowedProtocols

* discard any args following a deeplink url

* tweaks

* update test

* support scheme’s with and without slashes

* stop after finding the first occurance of a deep link

* test updates

* updates to run tests successfully

* port updates to validation from 4.2

* url validation updates

changed validation package to better support internal domains and punycode domains
2019-09-09 12:38:31 -04:00
Yuya Ochiai 37b71476d2 Fix ESLint header/header error 2018-05-31 00:30:24 +09:00
Yuya Ochiai 66f273039f Skip failing tests due to chromedriver issue 2018-05-25 21:10:16 +09:00
Jesse Hallam 620c5484e3
invoke yarn fix:js to adopt the updated eslint rules. No other changes are included. 2018-02-21 14:21:16 -05:00
Yuya Ochiai 88e6dd9de0 Fix tests with proper promise chain 2018-02-07 21:33:50 +09:00
Yuya Ochiai 98077784ec Extend test timeout to stabilize CI 2017-09-23 15:13:39 +09:00
Yuya Ochiai 96b5122988 Stop using chai-as-promised due to its license
For #488
2017-03-29 01:03:52 +09:00
Yuya Ochiai b1d586e9da Remove nodeIntegration warning of webview in BrowserWindow
nodeintegration attribute is ignored in React because it's unknown.
So fortunately the integration is not working.
New 'will-attach-webview' allows us to set nodeIntegration = false.
2017-03-18 20:58:32 +09:00
Yuya Ochiai ca5632342e Re-enable window.eval()
Close #333
2017-02-03 23:32:23 +09:00
Yuya Ochiai 16788b5a6f Fix eslint errors 2016-10-28 00:49:52 +09:00
Yuya Ochiai ce6cf485f6 Implementation and further tests for #220 2016-08-09 00:04:36 +09:00
Kolja Lampe 54849d6859 Added two security improvements as mentioned at http://electron.atom.io/docs/all/#checklist 2016-07-24 22:44:38 +02:00
Yuya Ochiai f5e28e2739 Execute testing js code directly with webdriverio API 2016-06-25 22:46:14 +09:00
Yuya Ochiai 9e6d6fcfdb Wait until a new window is opened 2016-06-25 22:09:37 +09:00
Yuya Ochiai 98b6ce8760 Extend pause 2016-06-25 21:42:03 +09:00
Yuya Ochiai b6e975aa21 Add assertion to confirm Node.js is disabled in rederer by executing require() 2016-06-25 21:21:10 +09:00
Yuya Ochiai 7fc963125a Add test to confirm Node.js is disabled in a new window 2016-06-25 18:46:23 +09:00
Yuya Ochiai b22c1eb2aa Add test to confirm Node.js API is disabled in webview 2016-06-25 18:04:33 +09:00