SkittlesAreFalling Posted August 7, 2015 Share Posted August 7, 2015 After a page is done loading, get the Icon texture. Link to comment
ixjf Posted August 9, 2015 Share 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 Link to comment
Noki Posted August 10, 2015 Share Posted August 10, 2015 Icon as in the favicon? http://site.com/favicon.ico Link to comment
DeVo Posted August 10, 2015 Share 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? Link to comment
ixjf Posted August 10, 2015 Share 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. Link to comment
Castillo Posted August 10, 2015 Share 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 Link to comment
SkittlesAreFalling Posted August 11, 2015 Author Share 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 Link to comment
ixjf Posted August 11, 2015 Share 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. Link to comment
Recommended Posts