- Electron version: 1.2.1
- Operating system: Mac OS X

See also https://github.com/electron/electron/issues/5714

STR:
1. Start a webserver on localhost:port that serves a dummy index.html
2. Register a custom http protocol.
   
   ``` js
   electron.protocol.registerStandardSchemes(['foobar', 'http', 'https']);
   
   app.on('ready', function() {
     electron.protocol.registerHttpProtocol('foobar', (request, callback) => {
       const redirectPath = `http://localhost:port/index.html`;
       callback({ method: request.method, referrer: request.referrer, url: redirectPath });
     }, e => { if (e) { console.log(e); } });
   });
   ```
3. Either through devtools, or via some js in our index.html, have a single line that does `fetch('http://localhost:port/index.html')` or anything else from our server.

Results: as soon as `fetch` is called, the webview becomes black, and the devtools crash if they were open. No other visible error or stdout.

If devtools were open, they show this message: "Devtools was disconnected from the page.
Once page is reloaded, DevTools will automatically reconnect."

atom/common/options_switches.cc
const char kDirectWrite[] = "directWrite";
const char kExperimentalFeatures[]       = "experimentalFeatures";
const char kExperimentalCanvasFeatures[] = "experimentalCanvasFeatures";
const char kOpenerID[] = "openerId";
const char kScrollBounce[] = "scrollBounce";
const char kBlinkFeatures[] = "blinkFeatures";
const char kDisableBlinkFeatures[] = "disableBlinkFeatures";
}  
namespace switches {
const char kEnablePlugins[] = "enable-plugins";
const char kPpapiFlashPath[] = "ppapi-flash-path";
const char kPpapiFlashVersion[] = "ppapi-flash-version";
const char kDisableHttpCache[] = "disable-http-cache";
const char kRegisterServiceWorkerSchemes[] = "register-service-worker-schemes";
const char kSSLVersionFallbackMin[] = "ssl-version-fallback-min";
const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
const char kAppUserModelId[] = "app-user-model-id";
const char kBackgroundColor[] = "background-color";
const char kZoomFactor[]      = "zoom-factor";
const char kPreloadScript[]   = "preload";
const char kPreloadURL[]      = "preload-url";
const char kNodeIntegration[] = "node-integration";
const char kGuestInstanceID[] = "guest-instance-id";
const char kOpenerID[]        = "opener-id";
const char kScrollBounce[]    = "scroll-bounce";
const char kWidevineCdmPath[] = "widevine-cdm-path";
const char kWidevineCdmVersion[] = "widevine-cdm-version";
}  
}