I noticed that for some cases OnLoadStart is not called.
Here is one of the cases:
- Code: Select all
void OnLoadStart(CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefLoadHandler::TransitionType transition_type)
{
std::cout << "OnLoadStart:" << (*(*browser).GetMainFrame()).GetURL() << std::endl;
}
When I create a visual browser and open YouTube.com, the first time OnloadStart is called, but then I click on some video - a new URL with this video opens in the same browser, BUT OnLoadStart is not called at all now.
No matter how much I follow the links to the video, the OnLoadStart is not called.
Thus, I wanted to determine that a new link was clicked, but this does not work for YouTube.
Is this correct behaviour?