webContents: removing getFavicon api

This commit is contained in:
deepak1556 2015-05-04 13:39:13 +05:30
parent 06834b723b
commit 22c50d0800
5 changed files with 0 additions and 24 deletions

View file

@ -277,13 +277,6 @@ registerWebViewElement = ->
remote.getGuestWebContents(internal.guestInstanceId)[m] args...
proto[m] = createHandler m for m in methods
# Return dataUrl instead of nativeImage.
proto.getFavicon = (args...) ->
internal = v8Util.getHiddenValue this, 'internal'
return unless internal
favicon = remote.getGuestWebContents(internal.guestInstanceId)['getFavicon'] args...
favicon.toDataUrl()
window.WebView = webFrame.registerEmbedderCustomElement 'webview',
prototype: proto