- 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 kMaxWidth[]       = "maxWidth";
const char kMaxHeight[]      = "maxHeight";
const char kResizable[]      = "resizable";
const char kMovable[]        = "movable";
const char kMinimizable[]    = "minimizable";
const char kMaximizable[]    = "maximizable";
const char kFullScreenable[] = "fullscreenable";
const char kClosable[]       = "closable";
const char kFullscreen[]     = "fullscreen";
const char kSkipTaskbar[] = "skipTaskbar";
const char kKiosk[] = "kiosk";
const char kAlwaysOnTop[] = "alwaysOnTop";
const char kAcceptFirstMouse[] = "acceptFirstMouse";
const char kUseContentSize[] = "useContentSize";
const char kTitleBarStyle[] = "titleBarStyle";
const char kAutoHideMenuBar[] = "autoHideMenuBar";
const char kEnableLargerThanScreen[] = "enableLargerThanScreen";
const char kDarkTheme[] = "darkTheme";
const char kTransparent[] = "transparent";
const char kType[] = "type";
const char kDisableAutoHideCursor[] = "disableAutoHideCursor";
const char kStandardWindow[] = "standardWindow";
const char kBackgroundColor[] = "backgroundColor";
const char kHasShadow[] = "hasShadow";
const char kWebPreferences[] = "webPreferences";
const char kZoomFactor[] = "zoomFactor";
const char kPreloadScript[] = "preload";
const char kPreloadURL[] = "preloadURL";
const char kNodeIntegration[] = "nodeIntegration";
const char kGuestInstanceID[] = "guestInstanceId";