I have a simple CEF app with an option to open devtools from context menu. Upon click Devtools open as popup window.
In Devtools popup, when I right click on Sources tab without any source, it shows context menu of my application.
But I would like to clear model in ClientHandler::OnBeforeContextMenu if the browser instance is of Devtools. One simple option in this case could be to check if it is popup with browser->IsPopup(). But that doesn't ensure it to be Devtools. Other option I could think of is by using browser->GetIdentifier() and do some verification.
Would like to know if there is any other way out to detect if browser instance is of devtools?