SkittlesAreFalling Posted August 7, 2015 Posted August 7, 2015 After a page is done loading, get the Icon texture.
ixjf Posted August 9, 2015 Posted August 9, 2015 (edited) CEF lacks ALOT of functions. Yet this could be easily implemented, there's no need for a specific API in CEF for that. You can just look up a link tag in the DOM with the rel attribute set to 'icon', which seems to be the standard (except for IE, because IE is special). Edited August 10, 2015 by Guest
Noki Posted August 10, 2015 Posted August 10, 2015 Icon as in the favicon? http://site.com/favicon.ico
DeVo Posted August 10, 2015 Posted August 10, 2015 CEF lacks ALOT of functions. Yet this could be easily implemented, there's no need for a specific API in CEF for that. You can just look up a link tag in the DOM with the rel attribute set to 'icon', which seems to be the standard (except for IE, because IE is special). Is there a function to get source code of the page in CEF?
ixjf Posted August 10, 2015 Posted August 10, 2015 http://magpcss.org/ceforum/apidocs3/projects/(default)/CefDOMDocument.html http://magpcss.org/ceforum/apidocs3/projects/(default)/CefDOMVisitor.html Of course, you can always just use JS to access the DOM and load the favicon yourself.
Castillo Posted August 10, 2015 Posted August 10, 2015 CEF lacks ALOT of functions. Yet this could be easily implemented, there's no need for a specific API in CEF for that. You can just look up a link tag in the DOM with the rel attribute set to 'icon', which seems to be the standard (except for IE, because IE is special). Is there a function to get source code of the page in CEF? I'm not sure if this function which Jusonex added is to get the source code, but from the name, I say it is: https://github.com/multitheftauto/mtasa ... 99bf73ca38
SkittlesAreFalling Posted August 11, 2015 Author Posted August 11, 2015 Yes Noki, the favicon like on the web browser's tab. Shows the icon and title of the webpage. https://en.wikipedia.org/wiki/Favicon
ixjf Posted August 11, 2015 Posted August 11, 2015 Icon as in the favicon? http://site.com/favicon.ico This is not standard, however. The favicon could be placed anywhere. This could only be used as a fallback option.
Recommended Posts