You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 25, 2022. It is now read-only.
// ADD BY RPA -> 28-02-2017
typedef cef_errorcode_t ErrorCode;
class QCefViewBrowserHandler
: public CefClient
, public CefContextMenuHandler
//, public CefDialogHandler
, public CefDisplayHandler
//, public CefDownloadHandler
, public CefDragHandler
//, public CefGeolocationHandler
, public CefJSDialogHandler
, public CefKeyboardHandler
, public CefLifeSpanHandler
, public CefLoadHandler
, public CefRequestHandler
{
typedef CefRefPtr MessageRouterPtr;
typedef std::setCefMessageRouterBrowserSide::Handler* MessageHandlerSet;
typedef std::list<CefRefPtr > BrowserList;
public:
private:
int browser_count_;
int main_browser_id_;
bool is_closing_;
mutable std::mutex mtx_;
CefRefPtr<CefBrowser> main_browser_;
QPointer<QCefView> hostWidget_;
MessageRouterPtr message_router_;
//MessageHandlerSet message_handler_set_;
QCefQueryHandler* cefquery_handler_;
// List of existing browser windows. Only accessed on the CEF UI thread.
BrowserList popup_browser_list_;
// Include the default reference counting implementation.
IMPLEMENT_REFCOUNTING(QCefViewBrowserHandler);
Hi, sorry my english is bad.
For enable show page with Self signed certificates or invalid certificates, follow theses steps:
1 - change file: QCefViewBrowserHandler.h
#ifndef QCEFVIEWHANDLER_H_
#define QCEFVIEWHANDLER_H_
#pragma once
#include
#include
#include
#include
#include
#include
#include "include/cef_client.h"
#include "include/wrapper/cef_message_router.h"
#include "../../inc/QCefView.h"
class QCefQueryHandler;
// ADD BY RPA -> 28-02-2017
typedef cef_errorcode_t ErrorCode;
class QCefViewBrowserHandler
: public CefClient
, public CefContextMenuHandler
//, public CefDialogHandler
, public CefDisplayHandler
//, public CefDownloadHandler
, public CefDragHandler
//, public CefGeolocationHandler
, public CefJSDialogHandler
, public CefKeyboardHandler
, public CefLifeSpanHandler
, public CefLoadHandler
, public CefRequestHandler
{
typedef CefRefPtr MessageRouterPtr;
typedef std::setCefMessageRouterBrowserSide::Handler* MessageHandlerSet;
typedef std::list<CefRefPtr > BrowserList;
public:
private:
int browser_count_;
int main_browser_id_;
bool is_closing_;
mutable std::mutex mtx_;
};
#endif
2 - Add this Routine in QCefBrowserHandler.cpp:
bool QCefViewBrowserHandler::OnCertificateError(
CefRefPtr browser,
ErrorCode cert_error,
const CefString& request_url,
CefRefPtr ssl_info,
CefRefPtr callback) {
}
Done, now, you embedded browser show invalid self signed certificate.
The text was updated successfully, but these errors were encountered: