- 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
std::vector<v8::Local<v8::Object>> keys;
    keys.reserve(map_.size());
    for (const auto& iter : map_) {
      const auto& value = *(iter.second.second);
      keys.emplace_back(v8::Local<v8::Object>::New(isolate, value));
    }
    return keys;
  }
  
  void Remove(const K& key) {
    auto iter = map_.find(key);
    if (iter == map_.end())
      return;
    iter->second.second->ClearWeak();
    map_.erase(iter);
  }
 private:
  static void OnObjectGC(
      const v8::WeakCallbackInfo<typename KeyWeakMap<K>::KeyObject>& data) {
    KeyWeakMap<K>::KeyObject* key_object = data.GetParameter();
    key_object->self->Remove(key_object->key);
  }
  
  std::unordered_map<
      K, std::pair<KeyObject, linked_ptr<v8::Global<v8::Object>>>> map_;
  DISALLOW_COPY_AND_ASSIGN(KeyWeakMap);
};
}  
#endif