- Electron version: 1.2.5
- Operating system: Windows 10

My application has a custom "res://" protocol. It appears to register correctly (no errors or anything) but as you can see from the picture I'm getting the error **net::ERR_UNKNOWN_URL_SCHEME**. This is working in version 1.2.4.

![image](https://cloud.githubusercontent.com/assets/4183007/16391832/d5fa3c80-3c76-11e6-9f7a-c7d746149f25.png)

atom/common/key_weak_map.h
virtual ~KeyWeakMap() {
    for (const auto& p : map_)
      p.second.second->ClearWeak();
  }
  
  void Set(v8::Isolate* isolate, const K& key, v8::Local<v8::Object> object) {
    auto value = make_linked_ptr(new v8::Global<v8::Object>(isolate, object));
    KeyObject key_object = {key, this};
    auto& p = map_[key] = std::make_pair(key_object, value);
    value->SetWeak(&(p.first), OnObjectGC, v8::WeakCallbackType::kParameter);
  }
  
  v8::MaybeLocal<v8::Object> Get(v8::Isolate* isolate, const K& key) {
    auto iter = map_.find(key);
    if (iter == map_.end())
      return v8::MaybeLocal<v8::Object>();
    else
      return v8::Local<v8::Object>::New(isolate, *(iter->second.second));
  }
  
  bool Has(const K& key) const {
    return map_.find(key) != map_.end();
  }
  
  std::vector<v8::Local<v8::Object>> Values(v8::Isolate* isolate) const {