- Electron version: 1.2.7
- Operating system: Win10 64bit

browser process

``` javascript
win.webContents.on('context-menu', (event, params) => {
  // It prints "hasImageContent: undefined" no matter where you right click on the page
  console.log(`hasImageContent: ${ params.hasImageContent }`);
});
```

index.html body

``` html
  <body>
    <textarea name="name" rows="8" cols="40">
      Hello world.
      Second line.
    </textarea>
    <img src="https://bearychat.com/e655795080a2258b3bc7476cf6b519ab.png"/>
  </body>
```

atom/common/native_mate_converters/content_converter.cc
v8::Isolate* isolate,
    content::WebContents* web_contents,
    const content::CustomContextMenuContext& context,
    const content::MenuItem& item) {
  mate::Dictionary v8_item = mate::Dictionary::CreateEmpty(isolate);
  switch (item.type) {
    case content::MenuItem::CHECKABLE_OPTION:
    case content::MenuItem::GROUP:
      v8_item.Set("checked", item.checked);
    case content::MenuItem::OPTION:
    case content::MenuItem::SUBMENU:
      v8_item.Set("label", item.label);
      v8_item.Set("enabled", item.enabled);
    default:
      v8_item.Set("type", item.type);
  }
  if (item.type == content::MenuItem::SUBMENU)
    v8_item.Set("submenu",
                MenuToV8(isolate, web_contents, context, item.submenu));
  else if (item.action > 0)
    v8_item.Set("click",
                base::Bind(ExecuteCommand, web_contents, item.action, context));
  return v8_item.GetHandle();
}
v8::Local<v8::Value> MenuToV8(v8::Isolate* isolate,