Hi, Im new in CEF, currently Im using CEF 3.3112.1656.g9ec3e42 (Windows 32 bit).
In my parent browser (my first browser) I have disabled image loading on browser setting.
Then on my OnBeforePopup implement. When a new window creating (by click a link has target=blank).
the new window didnt use default setting value (with img disabled) like the document described on cef_life_span_handler.h
Am i miss something ?
virtual bool OnBeforePopup(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
const CefString& target_url,
const CefString& target_frame_name,
WindowOpenDisposition target_disposition,
bool user_gesture,
const CefPopupFeatures& popupFeatures,
CefWindowInfo& windowInfo,
CefRefPtr<CefClient>& client,
CefBrowserSettings& settings,
bool* no_javascript_access)
{
// Im also trying to modify settings.image_loading = STATE_DISABLED with no luck
return false;
}
One more thing that if I CreateBrowser here and return true, it's seem the parent window didnt retain to the new popup.
I mean if the parent creating a popup by js like this:
var pop = window.create(...);
then it's cant call pop.close();
I happy with the default creating popup funtion, just get stuck about settings
- sorry for my bad english -