electron/spec/fixtures
Jerry Wu dee331519c fix: disable nodeIntegration & insecure resource warnings for localhost (#18814)
* fix: disable remote host nodeIntegration warning for localhost

In warnAboutNodeWithRemoteContent(), add a check to see if the hostname
is "localhost" and prevent the warning message if it is.

* fix: disable loading insecure resources warning for localhost

In warnAboutInsecureResources(), filter out resources from localhost
since they are most likely not a threat.

* test: add tests for ignoring security warnings when using localhost

Add tests for ignoring warning messages for the following scenarios:
  1. node integration with remote content from localhost
  2. loading insecure resources from localhost

* test: fix insecure resource test

* test: pass nodeIntegration with remote test on did-finish-load

* test: maybe fix node integration test (error w/ conv circular struct)

* test: update test description

* test: use "load" event to check when nodeIntegration test has finished

Instead of relying on the "did-finish-load" event, which may result in
a race condition, add an "onload" handler that logs "loaded" to the
console. This will execute _after_ the nodeIntegration check, so it
can be safely used as a signal to indicate that the test is done.

* test: rename base-page-security-load-message.html

* fix: ignore enabled remote module warning for localhost

* refactor: add isLocalhost()
2019-07-02 19:36:50 +09:00
..
api fix: app.getAppPath() returning default-app path for files or directories without package.json (#18763) 2019-06-19 23:34:22 +02:00
asar Make the asar-video test run faster 2017-12-02 11:30:57 +01:00
assets refactor: make templateImage a property on nativeImage (#18124) 2019-05-07 06:52:07 -07:00
auto-update spec: add tests for the autoUpdater on macOS that actually test if it works (#17442) 2019-03-29 17:32:52 -07:00
certificates fix spec 2016-04-18 22:57:37 +05:30
devtools-extensions chore: remove electabul (#15954) 2018-12-04 20:50:37 -08:00
extensions chore: remove promisification deprecation callbacks (#17907) 2019-04-30 07:08:32 -07:00
module feat: add process.getBlinkMemoryInfo() (#17762) 2019-05-30 11:50:35 +02:00
native-addon/echo feat: Upgrade to Chromium 71.0.3578.98 (#15966) 2019-01-11 17:00:43 -08:00
pages fix: disable nodeIntegration & insecure resource warnings for localhost (#18814) 2019-07-02 19:36:50 +09:00
snapshot-items-available ci: Refactor mksnapshot test so that it doesn't stall. (#16875) 2019-02-11 12:21:00 -10:00
sub-frames feat: enable NodeIntegrationInSubFrames for webview (#17226) 2019-03-15 10:39:20 -07:00
workers refactor: add prefer-const to .eslintrc + fix errors (#14880) 2018-10-02 11:56:31 +10:00
zip Add test for the unzip module. 2013-07-18 15:19:36 +08:00
no-proprietary-codecs.js chore: make "nodeIntegration" and "webviewTag" default to false (#16235) 2019-01-07 22:19:27 +03:00
testsnap.js ci: add testing for mksnapshot (#15627) 2018-11-09 10:54:17 -04:00