* **Electron Version** (output of `node_modules/.bin/electron --version`):
  * 3.0.6
* **Operating System** (Platform and Version):
  * macOS 10.14

### Expected Behavior
a `new-window` event fires

### Actual behavior
a `did-fail-load` fires with errorCode -3

### To Reproduce
```sh
$ git clone git@github.com:chrismohr/no-new-window.git -b master
$ cd no-new-window/
$ npm i && npm start
```

atom/browser/web_contents_preferences.h
}
namespace atom {
class WebContentsPreferences
    : public content::WebContentsUserData<WebContentsPreferences> {
 public:
  
  static WebContentsPreferences* From(content::WebContents* web_contents);
  WebContentsPreferences(content::WebContents* web_contents,
                         const mate::Dictionary& web_preferences);
  ~WebContentsPreferences() override;
  
  bool IsEnabled(const base::StringPiece& name,
                 bool default_value = false) const;
  
  void Merge(const base::DictionaryValue& new_web_preferences);
  
  void AppendCommandLineSwitches(base::CommandLine* command_line);
  
  void OverrideWebkitPrefs(content::WebPreferences* prefs);
  
  void Clear();
  
  bool GetPreference(const base::StringPiece& name, std::string* value) const;
  
  bool IsRemoteModuleEnabled() const;
  
  bool GetPreloadPath(base::FilePath::StringType* path) const;
  
  base::Value* preference() { return &preference_; }