Milan Burda
fade3eb679
chore: make "nodeIntegration" and "webviewTag" default to false ( #16235 )
2019-01-07 22:19:27 +03:00
Milan Burda
547097b036
security: allow to block desktopCapturer.getSources() calls ( #15964 )
...
* security: allow to block desktopCapturer.getSources() calls
* return empty instead of error
* fix: release resources of DesktopCapturer on exit
2018-12-20 11:44:30 +09:00
Shelley Vohr
46e7214974
chore: remove electabul ( #15954 )
2018-12-04 20:50:37 -08:00
Heilig Benedek
ca2d74e118
feat: add methods to allow customization of save dialog during will-download event ( #15497 )
...
* feat: add method to DownloadItem that allows customization of dialog options
* docs: add docs for get/setSaveDialogOptions
* add missing copy constructor for DialogSettings on mac and linux
* fix: don't filter dialog options for mas build, don't return properties
* test: add test for get/setSaveDialogOptions
* fix: remove openDevtools added for debugging
* test: fix failing test because of new event parameter
* docs: use SaveDialogOptions instead of Object
2018-11-08 10:51:06 -04:00
Cheng Zhao
a8f2646ba6
Fix missing remote object error when calling remote function created in preload script ( #15444 )
...
* fix: report wrong context error based on contextId
* fix: destroyed remote renderer warning is now async
2018-10-31 11:26:57 -04:00
Milan Burda
db37ab1039
feat: add remote.require() / remote.getGlobal() filtering ( #15014 )
2018-10-18 14:36:45 +11:00
Cheng Zhao
b11b4f2235
test: make before-input-event test more robust
2018-10-04 00:14:59 +02:00
Milan Burda
3ad3ade828
refactor: add prefer-const to .eslintrc + fix errors ( #14880 )
2018-10-02 11:56:31 +10:00
Milan Burda
c61db523c7
refactor: replace var with const / let ( #14866 )
2018-09-29 09:17:00 +10:00
Samuel Attard
7065093869
feat: add will-redirect ( #13866 )
...
* feat: add will-redirect to allow people to prevent 30X redirects
* spec: add tests for the will-redirect event
* refactor: implement will-redirect using NavigationThrottle instead of PostTask
This avoids a potential race condition and immediately cancels the
navigation
* docs: add docs for did-redirect-navigation
* refactor: move AtomNavigationThrottle out of net folder
* refactor: update header guard for atom_navigation_throttle.h
* refactor: fix chromium style errors in the GN build
* refactor: update throttle impl to NOTREACHED and std::make_unqique
2018-09-16 01:42:43 +10:00
John Kleinschmidt
838b26ee26
ci: Move Mac builds to Azure Devops (VSTS) ( #14588 )
...
* Add support for multiple mocha reporters
Allows us to output to junit file and to console at the same time
* Cleanup VSTS file
Don't install depot_tools everytime as it is already installed.
Only run tests if "RUN_TESTS" environment variable is set
Only notify slack if "NOTIFY_SLACK" environment variable is set
Don't use sccache for release builds
Move CircleCI mac builds to VSTS
* Only build mac PRS from forks
Don't install depot_tools everytime as it is already installed.
Only run tests if "RUN_TESTS" environment variable is set
Only notify slack if "NOTIFY_SLACK" environment variable is set
Don't use sccache for release builds
Move CircleCI mac builds to VSTS
Use sccache helper script
* rename vsts-gn.yml to vsts.yml
Make sure Electron isn't running before starting tests
2018-09-14 11:56:16 -07:00
Samuel Attard
558fff69e7
chore: update to standard 12
2018-09-14 14:57:01 +10:00
Robo
e860748d6b
fix: Invalidate weak ptrs before window Javascript object is destroyed ( #14532 )
...
* fix: Invalidate weak ptrs before window Javascript object is destroyed
* chore: add regression test for #14513
This test is similar to the original gist at https://gist.github.com/bpasero/a02a645e11f4946dcca1331d0299149d -- the key is to open multiple windows and add an `app.on('browser-window-focus') listener that accesses window.id.
* fix: last commit didn't test the right thing.
The test needs to run in the main process to reproduce the
conditions reported in #14513
2018-09-12 13:58:04 -05:00
Milan Burda
58577bd431
feat: add options to webContents.loadFile ( #14515 )
2018-09-11 17:56:49 +10:00
Samuel Attard
68da311ed1
feat: add session.setPermissionCheckHandler ( #13925 )
...
* feat: add session.setPermissionCheckHandler to handle syncornous permission checks vs requests
* spec: add tests for session.setPermissionCheckHandler
* docs: add docs for session.setPermissionCheckHandler
* feat: add mediaType to media permission checks
* chore: cleanup check impl
2018-08-28 09:05:08 -05:00
Jeremy Apthorp
a4f02724bf
refactor: use env var to skip native module tests on win32/debug ( #13890 )
2018-08-01 13:33:13 +10:00
Alexey Kuzmin
69f6bd921b
chore(tests): allow usage of deprecated APIs in tests ( #13659 )
2018-07-30 11:27:58 +10:00
Milan Burda
39c5c200ba
fix: util.promisify(setTimeout) ( #13840 )
2018-07-30 11:14:04 +10:00
Hari Juturu
704af29543
Exposing process.env status ( #12166 )
2018-03-14 12:01:40 +09:00
Felix Rieseberg
d586ef2f39
feature: Hot security tips ( #11810 )
...
* 🔧 Add security issue detection (and logs)
* 🔧 Check for it on load
* 👷 Add some tests
* 👷 Make the linter happy
* 🔧 Allow them to be enabled by force
* 📝 Make message slightly prettier
* 🔧 Fix a typo in the code comment
* 🔧 Classic mistake
* 🚀 Optimize things a bit more
* 👷 Add tests, fix tests
* 📝 Document things
* 🔧 Make linter happy
* 🔧 One more piece of cleanup
2018-02-03 07:50:12 -07:00
Cheng Zhao
2e3d940749
Fix "test.py -g Menu" not working
2018-01-01 15:46:39 +09:00
Felix Rieseberg
5f4b62b6c8
feat: Allow testing of single spec modules ( #11409 )
...
* 🔧 ES6 for the spec
* 👷 Allow testing of single modules
* ❤️ Implement feedback
* 📝 Add a testing doc
* 📝 Link to it
* 📝 Cleanup
2017-12-28 06:18:33 -05:00
Felix Rieseberg
9f0df695ca
🔧 Spec: Fix style issues
2017-11-23 14:22:58 -08:00
Felix Rieseberg
3311e0bd67
👷 This calls for tests
2017-11-18 00:51:27 -08:00
John Kleinschmidt
d9d557dcc5
CircleCI updates ( #10647 )
...
* Update CircleCi for release and test
* Update test storage dir
2017-09-28 13:05:42 -04:00
Cheng Zhao
4b46eca329
spec: Always run crash-reporter at last
...
So when a test crashed we can always see the stack trace.
2017-07-31 16:36:52 +09:00
Cheng Zhao
9ced85d860
Terminate tests when renderer process crashed
2017-07-31 16:24:23 +09:00
Kevin Sawicki
0c8f773dec
Remove debug logging
2017-07-17 11:55:15 -07:00
Kevin Sawicki
c71b0a5441
Add spec for configuring web preferences from sandboxed new-window event
2017-07-17 11:55:15 -07:00
deepak1556
50ac7b2edd
Revert "Merge pull request #8724 from electron/defer_load_url"
...
Possible cause for #9121
This reverts commit 886b47e713
, reversing
changes made to 479af3c9e2
.
2017-06-05 19:04:21 +05:30
Kevin Sawicki
5cf4995f2e
DRY up logic to check if native modules should be loaded
2017-05-30 09:15:38 -07:00
Kevin Sawicki
fd782706b2
Add explicit spec for removing preload from webview
2017-05-17 13:47:00 -07:00
22222
4044548f3e
Add 'will-prevent-unload' event.
2017-05-11 06:35:35 -05:00
deepak1556
e4524ce42e
add spec
2017-05-01 16:53:55 +09:00
Kevin Sawicki
35a627fd60
Log all crashes during specs
2017-04-24 09:26:24 -07:00
Kevin Sawicki
de62f1ea6c
Restart crash service in each spec
2017-04-19 16:37:24 -07:00
Kevin Sawicki
6fcb784f6e
Add failing spec for no callback
2017-03-06 10:49:23 -08:00
deepak1556
90885d1d8c
simply spec
2017-03-06 00:22:20 +05:30
deepak1556
eb827eb020
update spec
2017-03-06 00:10:46 +05:30
deepak1556
763b9ab8d8
add zoom spec
2017-02-18 01:34:32 +05:30
Kevin Sawicki
a7c050107b
Remove guest from will-attach-webview event
2017-02-09 11:47:45 -08:00
Kevin Sawicki
acff2f6baf
Adjust src from will-attach-webview
2017-02-09 11:45:07 -08:00
Kevin Sawicki
46f1a49594
new-webview -> will-attach-webview
2017-02-09 11:45:07 -08:00
Kevin Sawicki
706b9f6cbf
Add new-webview specs
2017-02-09 11:45:07 -08:00
Kevin Sawicki
1004d205d8
Add spec for unhandledRejection event in main process
2017-01-26 14:46:50 -08:00
Kevin Sawicki
24fb560a9d
Add failing spec for uncaught main process errors
2017-01-26 14:46:50 -08:00
Kevin Sawicki
330ac5f266
Fix standard linting error
2017-01-25 12:36:55 -08:00
Kevin Sawicki
56a8eb3a94
Check that sender is a WebContents instance
2017-01-25 12:36:55 -08:00
Charlie Hess
f6410d3b77
Assert that listener count decreases after a remove event.
2017-01-25 12:36:55 -08:00
Charlie Hess
c213971a2d
Write a warning instead of crashing.
2017-01-25 12:36:55 -08:00
Kevin Sawicki
45986405b8
Assert remote event names
2017-01-25 12:36:55 -08:00
Kevin Sawicki
97dd680b32
Remove linter errors
2017-01-12 10:28:08 -08:00
Kevin Sawicki
c5da330cdf
Add failing spec for sandboxed window.open
2017-01-12 10:28:08 -08:00
Kevin Sawicki
1f07977f09
Remove lint errors
2017-01-06 09:58:40 -08:00
Kevin Sawicki
fd23c7bf76
Assert duplicate objects are supported
2017-01-06 09:58:40 -08:00
Kevin Sawicki
1944fdc962
Track visited parents and null out cycles
2017-01-06 09:58:40 -08:00
Kevin Sawicki
12382f064b
Add failing spec for cycle in options
2017-01-06 09:58:40 -08:00
Kevin Sawicki
abea1196de
Add spec for closing from will-navigate listener
2016-12-28 13:40:07 -08:00
Kevin Sawicki
2a8b36c761
Merge pull request #8134 from deepak1556/empty_client_certificate_patch
...
app: select-client-certificate event callback can accept certificate optionally
2016-12-15 08:31:12 -08:00
Kevin Sawicki
7a5ec96d53
Prevent input event from main process
2016-12-13 15:54:13 -08:00
Paul Frazee
99ea50649a
finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test
2016-12-12 12:49:57 -08:00
deepak1556
f124732431
add spec
2016-12-09 09:37:46 -08:00
deepak1556
cbddbdb296
fix code style
2016-12-07 15:33:56 +05:30
deepak1556
1c45285fe3
add spec
2016-12-07 13:26:06 +05:30
Kevin Sawicki
10386edea5
Default timeout to 30 seconds on CI and 10 seconds locally
2016-11-29 14:29:35 -08:00
Kevin Sawicki
89965aa5db
Check runner.hasOnly for focused spec check
2016-11-22 13:06:18 -08:00
Samuel Attard
857e1da6a3
Make executeJavaScript return a Promise so that caught errors can be sent to the caller
2016-11-03 09:33:47 -07:00
ali.ibrahim
c198828e58
Adding gc tests: fixing a memory leak with C++ URLRequest objects.
2016-10-17 19:02:25 +02:00
ali.ibrahim
9b4e9c642a
Making test code run directly in main browser context to avoid rpc persistent handles.
2016-10-17 11:51:20 +02:00
Kevin Sawicki
b3b856f476
Set productName in main process on Linux
2016-10-06 09:02:02 -07:00
Kevin Sawicki
d407eab0ff
Set crashReporter productName in specs
2016-09-08 11:52:29 -07:00
Kevin Sawicki
10d39f673a
Add failing spec for duplicate references over IPC
2016-08-25 09:25:13 -07:00
Kevin Sawicki
dfb6a9b07d
Show window when not on CI
2016-08-17 14:25:42 -07:00
Kevin Sawicki
ad07a20d9a
Use electabul to instrument and report coverage
2016-08-03 16:23:39 -07:00
Kevin Sawicki
300bf24241
Save coverage data when browser windows are destroyed
2016-08-03 16:23:38 -07:00
Kevin Sawicki
491f69df80
Add ability to run tests with coverage report
2016-08-03 16:23:38 -07:00
Kevin Sawicki
5b5d51ecf4
Add helper to instrument electron.asar
2016-08-03 16:23:38 -07:00
Kevin Sawicki
afdff69482
Add initial code coverage reporting
2016-08-03 16:23:37 -07:00
Kevin Sawicki
55d6e0de1a
Assert save path of download item
2016-07-27 17:52:36 -07:00
Kevin Sawicki
197ec98800
Remove standard linter warnings
2016-06-29 09:46:16 -07:00
Kevin Sawicki
110f1f8b75
Tweak error message
2016-06-09 17:00:32 -07:00
Kevin Sawicki
55a4e2589b
Log/exit when only called in specs on CI
2016-06-09 16:56:25 -07:00
deepak1556
0f2ae385ed
allow protocol module initialization before app ready.
...
* ensure registerStandardSchemes can only be called before app ready
* ensure other protocol methods can only be used after app ready
2016-05-08 01:36:34 +05:30
Cheng Zhao
8aa88067ca
Do not write to stdout in Electron when running on win32 CI machine
...
This makes Electron crash on CI machine somehow.
2016-04-30 17:08:51 +09:00
Cheng Zhao
2f6796bd7f
Disable throttling in tests
2016-04-08 15:57:14 +09:00
Cheng Zhao
19a172f2f5
Remove the hacks because of transparent background
2016-04-02 21:21:30 +09:00
Cheng Zhao
247b3f3605
Fix the background color in test app
2016-04-01 16:35:19 +09:00
Zeke Sikelianos
9db733a4ff
mostly more globals
2016-03-30 17:00:32 -07:00
Zeke Sikelianos
c4b6cf4a8e
do more manual cleanup and specify globals
2016-03-30 17:00:32 -07:00
Zeke Sikelianos
f35f362272
autoformat more files
2016-03-30 17:00:31 -07:00
Kevin Sawicki
5c9b19b508
web-preferences -> webPreferences
2016-03-17 13:37:07 -07:00
Robo
8386baf267
add spec
2016-02-25 11:46:30 +05:30
cesine
2aff0c47d0
⬆️ 👕 updated to eslint 2.1.0
...
Verified migration doc (nothing to be done)
http://eslint.org/docs/user-guide/migrating-to-2.0.0
And made sure the eslint tasks passed
2016-02-15 22:30:29 -05:00
Kevin Sawicki
3ab14e14e9
Add initial auto updater specs
2016-02-09 14:54:18 -08:00
Robo
2819af9586
fix lifetime of downloadItem class when defaultdownload canceled
2016-02-02 15:54:51 +05:30
Cheng Zhao
d0587a9c52
spec: process.stdout.write
2016-01-26 20:26:42 +08:00
ragingwind
63ae73b281
Using strict comparation
2016-01-22 09:04:59 +09:00
Kevin Sawicki
61af98cf94
Remove CoffeeScript register in specs
2016-01-12 16:24:06 -08:00
Kevin Sawicki
dd902c61fa
Expect .js specs
2016-01-12 16:24:06 -08:00
Kevin Sawicki
d863fd5c6c
Set process.throwDeprecation as early as possible
2015-12-15 17:02:33 -08:00