electron/spec/fixtures/pages
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
..
geolocation fix: opt into location services once device service has been started (#14253) 2018-08-23 08:51:46 -07:00
partition Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
permissions Add spec for midi without sysex permission 2017-01-19 09:05:59 +02:00
save_page
service-worker refactor: replace var with const / let (#14866) 2018-09-29 09:17:00 +10:00
storage feat: Upgrade to Chromium 71.0.3578.98 (#15966) 2019-01-11 17:00:43 -08:00
a.html chore: [gn] fix CSP warning in debugger API test (#13541) 2018-07-06 15:01:33 -04:00
b.html
base-page-security-onload-message.html fix: disable nodeIntegration & insecure resource warnings for localhost (#18814) 2019-07-02 19:36:50 +09:00
base-page-security.html feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
base-page.html
basic-auth.html
beforeunload-false.html
blank.html test: move protocol specs to main process (#18923) 2019-06-27 14:20:29 -07:00
c.html Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
cache-storage.html finish implementation of {secure:true} opt on protocol.registerStandardScehesm, and add working test 2016-12-12 12:49:57 -08:00
close.html
content.html
d.html Refactor <webview> tag tests (#12886) 2018-05-14 17:00:49 -05:00
did-get-response-details.html
dom-ready.html
e.html
external-string.html fix: do not expose Node's external strings (#13438) 2018-06-27 10:18:09 +10:00
filesystem.html
focus-web-contents.html Update blur parent window spec 2017-02-15 08:28:55 -08:00
fullscreen.html
history-replace.html
history.html
insecure-resources.html feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
ipc-message.html
jquery.html test: correct fake tests in api-protocol-spec (#18869) 2019-06-19 13:40:49 -07:00
key-events.html Add char/keypress event tests 2016-10-10 09:35:44 -07:00
media-id-reset.html add spec 2016-12-04 00:22:57 +05:30
native-module.html feat: Upgrade to Chromium 71.0.3578.98 (#15966) 2019-01-11 17:00:43 -08:00
onkeyup.html Assert key and code in keyup input event spec 2016-10-10 09:35:44 -07:00
onmouseup.html
pdf-in-iframe.html Fix missing eof missing from html test files 2017-11-13 21:22:36 +01:00
pdf-in-nested-iframe.html Fix missing eof missing from html test files 2017-11-13 21:22:36 +01:00
ping.html
post.html
process-exit.html
referrer.html
resize.html Allow webview guests to be resized manually 2016-11-15 11:00:09 -08:00
set-global.html
shared_worker.html test: Node integration in web workers 2017-03-20 12:52:46 -07:00
tab-focus-loop-elements-wv.html fix: do not allow the window to grab focus when tabbing / shift+tabbing (#16042) 2018-12-18 23:44:51 -07:00
tab-focus-loop-elements.html fix: do not allow the window to grab focus when tabbing / shift+tabbing (#16042) 2018-12-18 23:44:51 -07:00
target-name.html
theme-color.html
useragent.html
visibilitychange.html
webframe-spell-check.html feat: Spellchecker Async Implementation (#14032) 2018-10-18 11:11:53 -05:00
webframe-zoom.html add temporary zoom api spec 2017-02-18 01:34:32 +05:30
webview-allowpopups.html feature: Hot security tips (#11810) 2018-02-03 07:50:12 -07:00
webview-custom-zoom-level.html feat: make zoomLevel/zoomFactor sync (#16410) 2019-01-20 23:40:27 -08:00
webview-devtools.html WebInspector has been split up 2017-02-06 10:34:29 -08:00
webview-did-attach-event.html feat: add <webview>.getWebContentsId() (#17407) 2019-03-26 10:57:27 +09:00
webview-did-navigate-in-page-with-hash.html
webview-did-navigate-in-page-with-history.html
webview-did-navigate-in-page.html
webview-guest-resize.html Slightly rewrite <webview> tag tests (#13122) 2018-06-01 10:56:48 +02:00
webview-in-page-navigate.html feat: make zoomLevel/zoomFactor sync (#16410) 2019-01-20 23:40:27 -08:00
webview-isolated.html fix: register webview in main world when using contextIsolation (#16067) 2018-12-14 15:38:35 +09:00
webview-no-node-integration-on-window.html
webview-no-script.html
webview-opener-no-node-integration.html
webview-opener-postMessage.html
webview-origin-zoom-level.html feat: make zoomLevel/zoomFactor sync (#16410) 2019-01-20 23:40:27 -08:00
webview-stripped-preload.html Add explicit spec for removing preload from webview 2017-05-17 13:47:00 -07:00
webview-visibilitychange.html
webview-will-navigate.html
webview-zoom-factor.html
will-navigate.html
window-no-javascript.html Add failing spec for inheriting Javascript web preference 2017-04-25 12:57:53 -07:00
window-open-hide.html
window-open-postMessage-driver.html fix: move window.open postMessage test to main runner to fix flake (#18735) 2019-06-12 08:35:58 +09:00
window-open-postMessage.html fix: move window.open postMessage test to main runner to fix flake (#18735) 2019-06-12 08:35:58 +09:00
window-open-size.html
window-open.html Add failing spec for cycle in options 2017-01-06 09:58:40 -08:00
window-opener-location.html fix: default prop of location should be empty str 2018-12-04 17:11:26 +09:00
window-opener-no-node-integration.html
window-opener-no-web-view-tag.html Set appropriate defaults for webview options (#12271) 2018-03-15 13:56:46 +09:00
window-opener-no-webview-tag.html Add failing spec for webviewTag inheritance 2017-05-17 13:27:28 -07:00
window-opener-node.html
window-opener-postMessage.html
window-opener-targetOrigin.html Add more non-matching target origins 2017-05-01 08:45:38 -07:00
window-opener-web-view.html Set appropriate defaults for webview options (#12271) 2018-03-15 13:56:46 +09:00
window-opener-webview.html Add failing spec for webviewTag inheritance 2017-05-17 13:27:28 -07:00
window-opener.html
worker.html test: Node integration in web workers 2017-03-20 12:52:46 -07:00
zoom-factor.html add zoom specs based on standard protocols 2017-02-18 01:41:39 +05:30