idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
13,600
void WebContext::DefaultVideoDeviceChanged() { client_->DefaultVideoCaptureDeviceChanged(); }
null
0
void WebContext::DefaultVideoDeviceChanged() { client_->DefaultVideoCaptureDeviceChanged(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,601
void WebContext::DeleteCookiesCallback(int request_id, int num_deleted) { client_->CookiesDeleted(request_id, num_deleted); }
null
0
void WebContext::DeleteCookiesCallback(int request_id, int num_deleted) { client_->CookiesDeleted(request_id, num_deleted); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,602
WebContext* WebContextGetter::GetContext() const { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); return context_.get(); }
null
0
WebContext* WebContextGetter::GetContext() const { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); return context_.get(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,603
QNetworkAccessManager* WebContext::GetCustomNetworkAccessManager() { return client_->GetCustomNetworkAccessManager(); }
null
0
QNetworkAccessManager* WebContext::GetCustomNetworkAccessManager() { return client_->GetCustomNetworkAccessManager(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,604
int GetNextCookieRequestId() { static int id = 0; if (id == std::numeric_limits<int>::max()) { int i = id; id = 0; return i; } return id++; }
null
0
int GetNextCookieRequestId() { static int id = 0; if (id == std::numeric_limits<int>::max()) { int i = id; id = 0; return i; } return id++; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,605
std::string WebContext::BrowserContextDelegate::GetUserAgentOverride( const GURL& url) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return std::string(); } QString user_agent = io_client->GetUserAgentOverride( QUrl(QString::fromStdString(url.spec()))); return user_agent.toStdString(); }
null
0
std::string WebContext::BrowserContextDelegate::GetUserAgentOverride( const GURL& url) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return std::string(); } QString user_agent = io_client->GetUserAgentOverride( QUrl(QString::fromStdString(url.spec()))); return user_agent.toStdString(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,606
void WebContext::BrowserContextDelegate::Init( const QWeakPointer<WebContextProxyClient::IOClient>& io_client) { base::AutoLock lock(io_client_lock_); io_client_ = io_client; }
null
0
void WebContext::BrowserContextDelegate::Init( const QWeakPointer<WebContextProxyClient::IOClient>& io_client) { base::AutoLock lock(io_client_lock_); io_client_ = io_client; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,607
bool WebContext::BrowserContextDelegate::IsCustomProtocolHandlerRegistered( const std::string& scheme) const { base::AutoLock lock(url_schemes_lock_); return allowed_extra_url_schemes_.find(scheme) != allowed_extra_url_schemes_.end(); }
null
0
bool WebContext::BrowserContextDelegate::IsCustomProtocolHandlerRegistered( const std::string& scheme) const { base::AutoLock lock(url_schemes_lock_); return allowed_extra_url_schemes_.find(scheme) != allowed_extra_url_schemes_.end(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,608
int WebContext::BrowserContextDelegate::OnBeforeRedirect( net::URLRequest* request, const GURL& new_location) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return net::OK; } const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); if (!info) { return net::OK; } OxideQBeforeRedirectEvent event( QUrl(QString::fromStdString(new_location.spec())), QString::fromStdString(request->method()), QString::fromStdString(request->referrer()), info->IsMainFrame(), QUrl(QString::fromStdString(request->original_url().spec()))); io_client->OnBeforeRedirect(&event); OxideQBeforeRedirectEventPrivate* eventp = OxideQBeforeRedirectEventPrivate::get(&event); return eventp->request_cancelled ? net::ERR_ABORTED : net::OK; }
null
0
int WebContext::BrowserContextDelegate::OnBeforeRedirect( net::URLRequest* request, const GURL& new_location) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return net::OK; } const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); if (!info) { return net::OK; } OxideQBeforeRedirectEvent event( QUrl(QString::fromStdString(new_location.spec())), QString::fromStdString(request->method()), QString::fromStdString(request->referrer()), info->IsMainFrame(), QUrl(QString::fromStdString(request->original_url().spec()))); io_client->OnBeforeRedirect(&event); OxideQBeforeRedirectEventPrivate* eventp = OxideQBeforeRedirectEventPrivate::get(&event); return eventp->request_cancelled ? net::ERR_ABORTED : net::OK; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,609
int WebContext::BrowserContextDelegate::OnBeforeSendHeaders( net::URLRequest* request, const net::CompletionCallback& callback, net::HttpRequestHeaders* headers) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return net::OK; } const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); if (!info) { return net::OK; } OxideQBeforeSendHeadersEvent event( QUrl(QString::fromStdString(request->url().spec())), QString::fromStdString(request->method()), QString::fromStdString(request->referrer()), info->IsMainFrame()); OxideQBeforeSendHeadersEventPrivate* eventp = OxideQBeforeSendHeadersEventPrivate::get(&event); eventp->headers = headers; io_client->OnBeforeSendHeaders(&event); return eventp->request_cancelled ? net::ERR_ABORTED : net::OK; }
null
0
int WebContext::BrowserContextDelegate::OnBeforeSendHeaders( net::URLRequest* request, const net::CompletionCallback& callback, net::HttpRequestHeaders* headers) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return net::OK; } const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); if (!info) { return net::OK; } OxideQBeforeSendHeadersEvent event( QUrl(QString::fromStdString(request->url().spec())), QString::fromStdString(request->method()), QString::fromStdString(request->referrer()), info->IsMainFrame()); OxideQBeforeSendHeadersEventPrivate* eventp = OxideQBeforeSendHeadersEventPrivate::get(&event); eventp->headers = headers; io_client->OnBeforeSendHeaders(&event); return eventp->request_cancelled ? net::ERR_ABORTED : net::OK; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,610
int WebContext::BrowserContextDelegate::OnBeforeURLRequest( net::URLRequest* request, const net::CompletionCallback& callback, GURL* new_url) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return net::OK; } const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); if (!info) { return net::OK; } OxideQBeforeURLRequestEvent event( QUrl(QString::fromStdString(request->url().spec())), QString::fromStdString(request->method()), QString::fromStdString(request->referrer()), info->IsMainFrame()); io_client->OnBeforeURLRequest(&event); OxideQBeforeURLRequestEventPrivate* eventp = OxideQBeforeURLRequestEventPrivate::get(&event); *new_url = GURL(eventp->new_url.toString().toStdString()); return eventp->request_cancelled ? net::ERR_ABORTED : net::OK; }
null
0
int WebContext::BrowserContextDelegate::OnBeforeURLRequest( net::URLRequest* request, const net::CompletionCallback& callback, GURL* new_url) { QSharedPointer<WebContextProxyClient::IOClient> io_client = GetIOClient(); if (!io_client) { return net::OK; } const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request); if (!info) { return net::OK; } OxideQBeforeURLRequestEvent event( QUrl(QString::fromStdString(request->url().spec())), QString::fromStdString(request->method()), QString::fromStdString(request->referrer()), info->IsMainFrame()); io_client->OnBeforeURLRequest(&event); OxideQBeforeURLRequestEventPrivate* eventp = OxideQBeforeURLRequestEventPrivate::get(&event); *new_url = GURL(eventp->new_url.toString().toStdString()); return eventp->request_cancelled ? net::ERR_ABORTED : net::OK; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,611
void WebContext::BrowserContextDelegate::SetAllowedExtraURLSchemes( const std::set<std::string>& schemes) { base::AutoLock lock(url_schemes_lock_); allowed_extra_url_schemes_ = schemes; }
null
0
void WebContext::BrowserContextDelegate::SetAllowedExtraURLSchemes( const std::set<std::string>& schemes) { base::AutoLock lock(url_schemes_lock_); allowed_extra_url_schemes_ = schemes; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,612
void WebContext::SetCookieCallback(scoped_refptr<SetCookiesContext> ctxt, const QNetworkCookie& cookie, bool success) { DCHECK_GT(ctxt->remaining, 0); if (!success) { ctxt->failed.push_back(cookie); } if (--ctxt->remaining > 0) { return; } DeliverSetCookiesResponse(ctxt); }
null
0
void WebContext::SetCookieCallback(scoped_refptr<SetCookiesContext> ctxt, const QNetworkCookie& cookie, bool success) { DCHECK_GT(ctxt->remaining, 0); if (!success) { ctxt->failed.push_back(cookie); } if (--ctxt->remaining > 0) { return; } DeliverSetCookiesResponse(ctxt); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,613
SetCookiesContext(int request_id) : request_id(request_id), remaining(0) {}
null
0
SetCookiesContext(int request_id) : request_id(request_id), remaining(0) {}
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,614
WebContext::WebContext(WebContextProxyClient* client, QObject* handle) : client_(client), construct_props_(new ConstructProperties()), weak_factory_(this) { DCHECK(client); DCHECK(handle); setHandle(handle); delegate_ = new BrowserContextDelegate(weak_factory_.GetWeakPtr()); static_assert( CookiePolicyAllowAll == static_cast<CookiePolicy>( net::StaticCookiePolicy::ALLOW_ALL_COOKIES), "CookiePolicy and net::StaticCookiePolicy::Type values don't match: " "CookiePolicyAllowAll"); static_assert( CookiePolicyBlockAll == static_cast<CookiePolicy>( net::StaticCookiePolicy::BLOCK_ALL_COOKIES), "CookiePolicy and net::StaticCookiePolicy::Type values don't match: " "CookiePolicyBlockAll"); static_assert( CookiePolicyBlockThirdParty == static_cast<CookiePolicy>( net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES), "CookiePolicy and net::StaticCookiePolicy::Type values don't match: " "CookiePolicyBlockThirdParty"); static_assert( SessionCookieModeEphemeral == static_cast<SessionCookieMode>( content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES), "SessionCookieMode and net::CookieStoreConfig::SessionCookieMode values " "don't match: SessionCookieModeEphemeral"); static_assert( SessionCookieModePersistent == static_cast<SessionCookieMode>( content::CookieStoreConfig::PERSISTANT_SESSION_COOKIES), "SessionCookieMode and net::CookieStoreConfig::SessionCookieMode values " "don't match: SessionCookieModePersistent"); static_assert( SessionCookieModeRestored == static_cast<SessionCookieMode>( content::CookieStoreConfig::RESTORED_SESSION_COOKIES), "SessionCookieMode and net::CookieStoreConfig::SessionCookieMode values " "don't match: SessionCookieModeRestored"); }
null
0
WebContext::WebContext(WebContextProxyClient* client, QObject* handle) : client_(client), construct_props_(new ConstructProperties()), weak_factory_(this) { DCHECK(client); DCHECK(handle); setHandle(handle); delegate_ = new BrowserContextDelegate(weak_factory_.GetWeakPtr()); static_assert( CookiePolicyAllowAll == static_cast<CookiePolicy>( net::StaticCookiePolicy::ALLOW_ALL_COOKIES), "CookiePolicy and net::StaticCookiePolicy::Type values don't match: " "CookiePolicyAllowAll"); static_assert( CookiePolicyBlockAll == static_cast<CookiePolicy>( net::StaticCookiePolicy::BLOCK_ALL_COOKIES), "CookiePolicy and net::StaticCookiePolicy::Type values don't match: " "CookiePolicyBlockAll"); static_assert( CookiePolicyBlockThirdParty == static_cast<CookiePolicy>( net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES), "CookiePolicy and net::StaticCookiePolicy::Type values don't match: " "CookiePolicyBlockThirdParty"); static_assert( SessionCookieModeEphemeral == static_cast<SessionCookieMode>( content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES), "SessionCookieMode and net::CookieStoreConfig::SessionCookieMode values " "don't match: SessionCookieModeEphemeral"); static_assert( SessionCookieModePersistent == static_cast<SessionCookieMode>( content::CookieStoreConfig::PERSISTANT_SESSION_COOKIES), "SessionCookieMode and net::CookieStoreConfig::SessionCookieMode values " "don't match: SessionCookieModePersistent"); static_assert( SessionCookieModeRestored == static_cast<SessionCookieMode>( content::CookieStoreConfig::RESTORED_SESSION_COOKIES), "SessionCookieMode and net::CookieStoreConfig::SessionCookieMode values " "don't match: SessionCookieModeRestored"); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,615
WebContextGetter::WebContextGetter(const base::WeakPtr<WebContext>& context) : context_(context) {}
null
0
WebContextGetter::WebContextGetter(const base::WeakPtr<WebContext>& context) : context_(context) {}
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,616
QString WebContext::acceptLangs() const { if (IsInitialized()) { return QString::fromStdString( UserAgentSettings::Get(context_.get())->GetAcceptLangs()); } return QString::fromStdString(construct_props_->accept_langs); }
null
0
QString WebContext::acceptLangs() const { if (IsInitialized()) { return QString::fromStdString( UserAgentSettings::Get(context_.get())->GetAcceptLangs()); } return QString::fromStdString(construct_props_->accept_langs); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,617
QUrl WebContext::cachePath() const { base::FilePath path; if (IsInitialized()) { path = context_->GetCachePath(); } else { path = construct_props_->cache_path; } if (path.empty()) { return QUrl(); } return QUrl::fromLocalFile(QString::fromStdString(path.value())); }
null
0
QUrl WebContext::cachePath() const { base::FilePath path; if (IsInitialized()) { path = context_->GetCachePath(); } else { path = construct_props_->cache_path; } if (path.empty()) { return QUrl(); } return QUrl::fromLocalFile(QString::fromStdString(path.value())); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,618
void WebContext::clearTemporarySavedPermissionStatuses() { if (!context_.get()) { return; } context_->GetTemporarySavedPermissionContext()->Clear(); if (!context_->HasOffTheRecordContext()) { return; } context_->GetOffTheRecordContext() ->GetTemporarySavedPermissionContext() ->Clear(); }
null
0
void WebContext::clearTemporarySavedPermissionStatuses() { if (!context_.get()) { return; } context_->GetTemporarySavedPermissionContext()->Clear(); if (!context_->HasOffTheRecordContext()) { return; } context_->GetOffTheRecordContext() ->GetTemporarySavedPermissionContext() ->Clear(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,619
WebContext* context() const { return context_getter_->GetContext(); }
null
0
WebContext* context() const { return context_getter_->GetContext(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,620
QUrl WebContext::dataPath() const { base::FilePath path; if (IsInitialized()) { path = context_->GetPath(); } else { path = construct_props_->data_path; } if (path.empty()) { return QUrl(); } return QUrl::fromLocalFile(QString::fromStdString(path.value())); }
null
0
QUrl WebContext::dataPath() const { base::FilePath path; if (IsInitialized()) { path = context_->GetPath(); } else { path = construct_props_->data_path; } if (path.empty()) { return QUrl(); } return QUrl::fromLocalFile(QString::fromStdString(path.value())); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,621
QString WebContext::defaultAudioCaptureDeviceId() const { if (IsInitialized()) { return QString::fromStdString( MediaCaptureDevicesContext::Get(context_.get()) ->GetDefaultAudioDeviceId()); } return QString::fromStdString( construct_props_->default_audio_capture_device_id); }
null
0
QString WebContext::defaultAudioCaptureDeviceId() const { if (IsInitialized()) { return QString::fromStdString( MediaCaptureDevicesContext::Get(context_.get()) ->GetDefaultAudioDeviceId()); } return QString::fromStdString( construct_props_->default_audio_capture_device_id); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,622
QString WebContext::defaultVideoCaptureDeviceId() const { if (IsInitialized()) { return QString::fromStdString( MediaCaptureDevicesContext::Get(context_.get()) ->GetDefaultVideoDeviceId()); } return QString::fromStdString( construct_props_->default_video_capture_device_id); }
null
0
QString WebContext::defaultVideoCaptureDeviceId() const { if (IsInitialized()) { return QString::fromStdString( MediaCaptureDevicesContext::Get(context_.get()) ->GetDefaultVideoDeviceId()); } return QString::fromStdString( construct_props_->default_video_capture_device_id); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,623
int WebContext::deleteAllCookies() { int request_id = GetNextCookieRequestId(); context_->GetCookieStore()->DeleteAllAsync( base::Bind(&WebContext::DeleteCookiesCallback, weak_factory_.GetWeakPtr(), request_id)); return request_id; }
null
0
int WebContext::deleteAllCookies() { int request_id = GetNextCookieRequestId(); context_->GetCookieStore()->DeleteAllAsync( base::Bind(&WebContext::DeleteCookiesCallback, weak_factory_.GetWeakPtr(), request_id)); return request_id; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,624
QString WebContext::devtoolsBindIp() const { if (IsInitialized()) { return QString::fromStdString( DevToolsManager::Get(context_.get())->address()); } return QString::fromStdString(construct_props_->devtools_ip); }
null
0
QString WebContext::devtoolsBindIp() const { if (IsInitialized()) { return QString::fromStdString( DevToolsManager::Get(context_.get())->address()); } return QString::fromStdString(construct_props_->devtools_ip); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,625
int WebContext::devtoolsPort() const { if (IsInitialized()) { return DevToolsManager::Get(context_.get())->port(); } return construct_props_->devtools_port; }
null
0
int WebContext::devtoolsPort() const { if (IsInitialized()) { return DevToolsManager::Get(context_.get())->port(); } return construct_props_->devtools_port; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,626
bool WebContext::doNotTrack() const { if (IsInitialized()) { return context_->GetDoNotTrack(); } return construct_props_->do_not_track; }
null
0
bool WebContext::doNotTrack() const { if (IsInitialized()) { return context_->GetDoNotTrack(); } return construct_props_->do_not_track; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,627
int WebContext::getAllCookies() { int request_id = GetNextCookieRequestId(); context_->GetCookieStore()->GetAllCookiesAsync( base::Bind(&WebContext::GetCookiesCallback, weak_factory_.GetWeakPtr(), request_id)); return request_id; }
null
0
int WebContext::getAllCookies() { int request_id = GetNextCookieRequestId(); context_->GetCookieStore()->GetAllCookiesAsync( base::Bind(&WebContext::GetCookiesCallback, weak_factory_.GetWeakPtr(), request_id)); return request_id; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,628
QStringList WebContext::hostMappingRules() const { std::vector<std::string> v; if (!IsInitialized()) { v = construct_props_->host_mapping_rules; } else { v = context_->GetHostMappingRules(); } QStringList rules; for (std::vector<std::string>::const_iterator it = v.cbegin(); it != v.cend(); ++it) { rules.append(QString::fromStdString(*it)); } return rules; }
null
0
QStringList WebContext::hostMappingRules() const { std::vector<std::string> v; if (!IsInitialized()) { v = construct_props_->host_mapping_rules; } else { v = context_->GetHostMappingRules(); } QStringList rules; for (std::vector<std::string>::const_iterator it = v.cbegin(); it != v.cend(); ++it) { rules.append(QString::fromStdString(*it)); } return rules; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,629
void WebContext::init( const QWeakPointer<WebContextProxyClient::IOClient>& io_client) { delegate_->Init(io_client); }
null
0
void WebContext::init( const QWeakPointer<WebContextProxyClient::IOClient>& io_client) { delegate_->Init(io_client); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,630
bool WebContext::isInitialized() const { return IsInitialized(); }
null
0
bool WebContext::isInitialized() const { return IsInitialized(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,631
int WebContext::maxCacheSizeHint() const { if (IsInitialized()) { return context_->GetMaxCacheSizeHint(); } return construct_props_->max_cache_size_hint; }
null
0
int WebContext::maxCacheSizeHint() const { if (IsInitialized()) { return context_->GetMaxCacheSizeHint(); } return construct_props_->max_cache_size_hint; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,632
bool WebContext::popupBlockerEnabled() const { if (IsInitialized()) { return context_->IsPopupBlockerEnabled(); } return construct_props_->popup_blocker_enabled; }
null
0
bool WebContext::popupBlockerEnabled() const { if (IsInitialized()) { return context_->IsPopupBlockerEnabled(); } return construct_props_->popup_blocker_enabled; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,633
WebContextProxy::SessionCookieMode WebContext::sessionCookieMode() const { if (IsInitialized()) { return static_cast<SessionCookieMode>(context_->GetSessionCookieMode()); } return static_cast<SessionCookieMode>(construct_props_->session_cookie_mode); }
null
0
WebContextProxy::SessionCookieMode WebContext::sessionCookieMode() const { if (IsInitialized()) { return static_cast<SessionCookieMode>(context_->GetSessionCookieMode()); } return static_cast<SessionCookieMode>(construct_props_->session_cookie_mode); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,634
void WebContext::setAcceptLangs(const QString& langs) { if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetAcceptLangs( langs.toStdString()); } else { construct_props_->accept_langs = langs.toStdString(); } }
null
0
void WebContext::setAcceptLangs(const QString& langs) { if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetAcceptLangs( langs.toStdString()); } else { construct_props_->accept_langs = langs.toStdString(); } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,635
void WebContext::setCachePath(const QUrl& url) { DCHECK(!IsInitialized()); DCHECK(url.isLocalFile() || url.isEmpty()); construct_props_->cache_path = base::FilePath(url.toLocalFile().toStdString()); }
null
0
void WebContext::setCachePath(const QUrl& url) { DCHECK(!IsInitialized()); DCHECK(url.isLocalFile() || url.isEmpty()); construct_props_->cache_path = base::FilePath(url.toLocalFile().toStdString()); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,636
int WebContext::setCookies(const QUrl& url, const QList<QNetworkCookie>& cookies) { int request_id = GetNextCookieRequestId(); net::CookieStore* cookie_store = context_->GetCookieStore(); scoped_refptr<SetCookiesContext> ctxt = new SetCookiesContext(request_id); for (int i = 0; i < cookies.size(); ++i) { const QNetworkCookie& cookie = cookies.at(i); if (cookie.name().isEmpty()) { ctxt->failed.push_back(cookie); continue; } base::Time expiry; if (cookie.expirationDate().isValid()) { expiry = base::Time::FromJsTime(cookie.expirationDate().toMSecsSinceEpoch()); } ctxt->remaining++; cookie_store->SetCookieWithDetailsAsync( GURL(url.toString().toStdString()), std::string(cookie.name().constData()), std::string(cookie.value().constData()), std::string(cookie.domain().toUtf8().constData()), std::string(cookie.path().toUtf8().constData()), base::Time(), expiry, base::Time(), cookie.isSecure(), cookie.isHttpOnly(), net::CookieSameSite::DEFAULT_MODE, false, // enforce_strict_secure net::COOKIE_PRIORITY_DEFAULT, base::Bind(&WebContext::SetCookieCallback, weak_factory_.GetWeakPtr(), ctxt, cookie)); } if (ctxt->remaining == 0) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&WebContext::DeliverSetCookiesResponse, weak_factory_.GetWeakPtr(), ctxt)); } return request_id; }
null
0
int WebContext::setCookies(const QUrl& url, const QList<QNetworkCookie>& cookies) { int request_id = GetNextCookieRequestId(); net::CookieStore* cookie_store = context_->GetCookieStore(); scoped_refptr<SetCookiesContext> ctxt = new SetCookiesContext(request_id); for (int i = 0; i < cookies.size(); ++i) { const QNetworkCookie& cookie = cookies.at(i); if (cookie.name().isEmpty()) { ctxt->failed.push_back(cookie); continue; } base::Time expiry; if (cookie.expirationDate().isValid()) { expiry = base::Time::FromJsTime(cookie.expirationDate().toMSecsSinceEpoch()); } ctxt->remaining++; cookie_store->SetCookieWithDetailsAsync( GURL(url.toString().toStdString()), std::string(cookie.name().constData()), std::string(cookie.value().constData()), std::string(cookie.domain().toUtf8().constData()), std::string(cookie.path().toUtf8().constData()), base::Time(), expiry, base::Time(), cookie.isSecure(), cookie.isHttpOnly(), net::CookieSameSite::DEFAULT_MODE, false, // enforce_strict_secure net::COOKIE_PRIORITY_DEFAULT, base::Bind(&WebContext::SetCookieCallback, weak_factory_.GetWeakPtr(), ctxt, cookie)); } if (ctxt->remaining == 0) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&WebContext::DeliverSetCookiesResponse, weak_factory_.GetWeakPtr(), ctxt)); } return request_id; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,637
void WebContext::setDataPath(const QUrl& url) { DCHECK(!IsInitialized()); DCHECK(url.isLocalFile() || url.isEmpty()); construct_props_->data_path = base::FilePath(url.toLocalFile().toStdString()); }
null
0
void WebContext::setDataPath(const QUrl& url) { DCHECK(!IsInitialized()); DCHECK(url.isLocalFile() || url.isEmpty()); construct_props_->data_path = base::FilePath(url.toLocalFile().toStdString()); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,638
bool WebContext::setDefaultAudioCaptureDeviceId(const QString& id) { if (IsInitialized()) { return MediaCaptureDevicesContext::Get(context_.get()) ->SetDefaultAudioDeviceId(id.toStdString()); } construct_props_->default_audio_capture_device_id = id.toStdString(); client_->DefaultAudioCaptureDeviceChanged(); return true; }
null
0
bool WebContext::setDefaultAudioCaptureDeviceId(const QString& id) { if (IsInitialized()) { return MediaCaptureDevicesContext::Get(context_.get()) ->SetDefaultAudioDeviceId(id.toStdString()); } construct_props_->default_audio_capture_device_id = id.toStdString(); client_->DefaultAudioCaptureDeviceChanged(); return true; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,639
bool WebContext::setDefaultVideoCaptureDeviceId(const QString& id) { if (IsInitialized()) { return MediaCaptureDevicesContext::Get(context_.get()) ->SetDefaultVideoDeviceId(id.toStdString()); } construct_props_->default_video_capture_device_id = id.toStdString(); client_->DefaultVideoCaptureDeviceChanged(); return true; }
null
0
bool WebContext::setDefaultVideoCaptureDeviceId(const QString& id) { if (IsInitialized()) { return MediaCaptureDevicesContext::Get(context_.get()) ->SetDefaultVideoDeviceId(id.toStdString()); } construct_props_->default_video_capture_device_id = id.toStdString(); client_->DefaultVideoCaptureDeviceChanged(); return true; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,640
void WebContext::setDevtoolsBindIp(const QString& ip) { if (IsInitialized()) { DevToolsManager::Get(context_.get())->SetAddress(ip.toStdString()); } else { construct_props_->devtools_ip = ip.toStdString(); } }
null
0
void WebContext::setDevtoolsBindIp(const QString& ip) { if (IsInitialized()) { DevToolsManager::Get(context_.get())->SetAddress(ip.toStdString()); } else { construct_props_->devtools_ip = ip.toStdString(); } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,641
void WebContext::setDevtoolsPort(int port) { if (IsInitialized()) { DevToolsManager::Get(context_.get())->SetPort(port); } else { construct_props_->devtools_port = port; } }
null
0
void WebContext::setDevtoolsPort(int port) { if (IsInitialized()) { DevToolsManager::Get(context_.get())->SetPort(port); } else { construct_props_->devtools_port = port; } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,642
void WebContext::setHostMappingRules(const QStringList& rules) { DCHECK(!IsInitialized()); construct_props_->host_mapping_rules.clear(); for (QStringList::const_iterator it = rules.cbegin(); it != rules.cend(); ++it) { construct_props_->host_mapping_rules.push_back((*it).toStdString()); } }
null
0
void WebContext::setHostMappingRules(const QStringList& rules) { DCHECK(!IsInitialized()); construct_props_->host_mapping_rules.clear(); for (QStringList::const_iterator it = rules.cbegin(); it != rules.cend(); ++it) { construct_props_->host_mapping_rules.push_back((*it).toStdString()); } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,643
void WebContext::setLegacyUserAgentOverrideEnabled(bool enabled) { if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetLegacyUserAgentOverrideEnabled( enabled); } else { construct_props_->legacy_user_agent_override_enabled = enabled; } }
null
0
void WebContext::setLegacyUserAgentOverrideEnabled(bool enabled) { if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetLegacyUserAgentOverrideEnabled( enabled); } else { construct_props_->legacy_user_agent_override_enabled = enabled; } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,644
void WebContext::setPopupBlockerEnabled(bool enabled) { if (IsInitialized()) { context_->SetIsPopupBlockerEnabled(enabled); } else { construct_props_->popup_blocker_enabled = enabled; } }
null
0
void WebContext::setPopupBlockerEnabled(bool enabled) { if (IsInitialized()) { context_->SetIsPopupBlockerEnabled(enabled); } else { construct_props_->popup_blocker_enabled = enabled; } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,645
void WebContext::setProduct(const QString& product) { if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetProduct( product.toStdString()); } else { construct_props_->product = product.toStdString(); } }
null
0
void WebContext::setProduct(const QString& product) { if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetProduct( product.toStdString()); } else { construct_props_->product = product.toStdString(); } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,646
void WebContext::setUserAgentOverrides( const QList<UserAgentOverride>& overrides) { std::vector<UserAgentSettings::UserAgentOverride> o; for (auto it = overrides.begin(); it != overrides.end(); ++it) { o.push_back( std::make_pair((*it).first.toStdString(), (*it).second.toStdString())); } if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetUserAgentOverrides(o); } else { construct_props_->user_agent_overrides = o; } }
null
0
void WebContext::setUserAgentOverrides( const QList<UserAgentOverride>& overrides) { std::vector<UserAgentSettings::UserAgentOverride> o; for (auto it = overrides.begin(); it != overrides.end(); ++it) { o.push_back( std::make_pair((*it).first.toStdString(), (*it).second.toStdString())); } if (IsInitialized()) { UserAgentSettings::Get(context_.get())->SetUserAgentOverrides(o); } else { construct_props_->user_agent_overrides = o; } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,647
void WebContext::updateUserScripts() { UpdateUserScripts(); }
null
0
void WebContext::updateUserScripts() { UpdateUserScripts(); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,648
QString WebContext::userAgent() const { if (IsInitialized()) { return QString::fromStdString( UserAgentSettings::Get(context_.get())->GetUserAgent()); } return QString::fromStdString(construct_props_->user_agent); }
null
0
QString WebContext::userAgent() const { if (IsInitialized()) { return QString::fromStdString( UserAgentSettings::Get(context_.get())->GetUserAgent()); } return QString::fromStdString(construct_props_->user_agent); }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,649
WebContext::userAgentOverrides() const { QList<UserAgentOverride> rv; std::vector<UserAgentSettings::UserAgentOverride> overrides; if (IsInitialized()) { overrides = UserAgentSettings::Get(context_.get())->GetUserAgentOverrides(); } else { overrides = construct_props_->user_agent_overrides; } for (const auto& entry : overrides) { rv.append( qMakePair(QString::fromStdString(entry.first), QString::fromStdString(entry.second))); } return rv; }
null
0
WebContext::userAgentOverrides() const { QList<UserAgentOverride> rv; std::vector<UserAgentSettings::UserAgentOverride> overrides; if (IsInitialized()) { overrides = UserAgentSettings::Get(context_.get())->GetUserAgentOverrides(); } else { overrides = construct_props_->user_agent_overrides; } for (const auto& entry : overrides) { rv.append( qMakePair(QString::fromStdString(entry.first), QString::fromStdString(entry.second))); } return rv; }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,650
WebContext::BrowserContextDelegate::~BrowserContextDelegate() {}
null
0
WebContext::BrowserContextDelegate::~BrowserContextDelegate() {}
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,651
WebContext::~WebContext() { if (context_.get()) { context_->SetDelegate(nullptr); MediaCaptureDevicesContext::Get(context_.get())->set_client(nullptr); } }
null
0
WebContext::~WebContext() { if (context_.get()) { context_->SetDelegate(nullptr); MediaCaptureDevicesContext::Get(context_.get())->set_client(nullptr); } }
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,652
WebContextGetter::~WebContextGetter() {}
null
0
WebContextGetter::~WebContextGetter() {}
@@ -53,7 +53,6 @@ #include "qt/core/browser/oxide_qt_user_script.h" #include "qt/core/glue/oxide_qt_web_context_proxy_client.h" #include "shared/browser/media/oxide_media_capture_devices_context.h" -#include "shared/browser/oxide_browser_context.h" #include "shared/browser/oxide_browser_context_delegate.h" #include "shared/browser/oxide_browser_process_main.h" #include "shared/browser/oxide_devtools_manager.h" @@ -66,6 +65,7 @@ namespace oxide { namespace qt { +using oxide::BrowserContext; using oxide::DevToolsManager; using oxide::MediaCaptureDevicesContext; using oxide::UserAgentSettings; @@ -456,7 +456,7 @@ WebContext::~WebContext() { } // static -WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { +WebContext* WebContext::FromBrowserContext(BrowserContext* context) { BrowserContextDelegate* delegate = static_cast<BrowserContextDelegate*>(context->GetDelegate()); if (!delegate) { @@ -466,21 +466,21 @@ WebContext* WebContext::FromBrowserContext(oxide::BrowserContext* context) { return delegate->context(); } -oxide::BrowserContext* WebContext::GetContext() { +BrowserContext* WebContext::GetContext() { if (context_.get()) { return context_.get(); } DCHECK(construct_props_); - oxide::BrowserContext::Params params( + BrowserContext::Params params( construct_props_->data_path, construct_props_->cache_path, construct_props_->max_cache_size_hint, construct_props_->session_cookie_mode); params.host_mapping_rules = construct_props_->host_mapping_rules; - context_ = oxide::BrowserContext::Create(params); + context_ = BrowserContext::Create(params); UserAgentSettings* ua_settings = UserAgentSettings::Get(context_.get());
CWE-20
null
null
13,653
void OxideQQuickWebViewPrivate::AddMessageToConsole( int level, const QString& message, int line_no, const QString& source_id) { Q_Q(OxideQQuickWebView); OxideQQuickWebView::LogMessageSeverityLevel oxideLevel = OxideQQuickWebView::LogSeverityInfo; if (level >= 0 && level <= OxideQQuickWebView::LogSeverityFatal) { oxideLevel = static_cast<OxideQQuickWebView::LogMessageSeverityLevel>(level); } emit q->javaScriptConsoleMessage( oxideLevel, message, line_no, source_id); }
null
0
void OxideQQuickWebViewPrivate::AddMessageToConsole( int level, const QString& message, int line_no, const QString& source_id) { Q_Q(OxideQQuickWebView); OxideQQuickWebView::LogMessageSeverityLevel oxideLevel = OxideQQuickWebView::LogSeverityInfo; if (level >= 0 && level <= OxideQQuickWebView::LogSeverityFatal) { oxideLevel = static_cast<OxideQQuickWebView::LogMessageSeverityLevel>(level); } emit q->javaScriptConsoleMessage( oxideLevel, message, line_no, source_id); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,654
bool OxideQQuickWebViewPrivate::CanCreateWindows() const { Q_Q(const OxideQQuickWebView); return q->receivers(SIGNAL(newViewRequested(OxideQNewViewRequest*))) > 0; }
null
0
bool OxideQQuickWebViewPrivate::CanCreateWindows() const { Q_Q(const OxideQQuickWebView); return q->receivers(SIGNAL(newViewRequested(OxideQNewViewRequest*))) > 0; }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,655
void OxideQQuickWebViewPrivate::CertificateError( std::unique_ptr<OxideQCertificateError> cert_error) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { return; } { QJSValue val = engine->newQObject(cert_error.get()); if (!val.isQObject()) { return; } cert_error.release(); emit q->certificateError(val); } engine->collectGarbage(); }
null
0
void OxideQQuickWebViewPrivate::CertificateError( std::unique_ptr<OxideQCertificateError> cert_error) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { return; } { QJSValue val = engine->newQObject(cert_error.get()); if (!val.isQObject()) { return; } cert_error.release(); emit q->certificateError(val); } engine->collectGarbage(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,656
void OxideQQuickWebViewPrivate::CloseRequested() { Q_Q(OxideQQuickWebView); emit q->closeRequested(); }
null
0
void OxideQQuickWebViewPrivate::CloseRequested() { Q_Q(OxideQQuickWebView); emit q->closeRequested(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,657
void OxideQQuickWebViewPrivate::CommandsUpdated() { Q_Q(OxideQQuickWebView); emit q->navigationHistoryChanged(); }
null
0
void OxideQQuickWebViewPrivate::CommandsUpdated() { Q_Q(OxideQQuickWebView); emit q->navigationHistoryChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,658
ConstructProps() : incognito(false), context(nullptr), restore_type(oxide::qt::RESTORE_LAST_SESSION_EXITED_CLEANLY), location_bar_height(0), location_bar_mode(oxide::qt::LOCATION_BAR_MODE_AUTO), location_bar_animated(true), load_html(false), fullscreen(false) {}
null
0
ConstructProps() : incognito(false), context(nullptr), restore_type(oxide::qt::RESTORE_LAST_SESSION_EXITED_CLEANLY), location_bar_height(0), location_bar_mode(oxide::qt::LOCATION_BAR_MODE_AUTO), location_bar_animated(true), load_html(false), fullscreen(false) {}
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,659
OxideQQuickWebViewPrivate::CreateBeforeUnloadDialog( oxide::qt::JavaScriptDialogProxyClient* client) { Q_Q(OxideQQuickWebView); return new oxide::qquick::BeforeUnloadDialog(q, client); }
null
0
OxideQQuickWebViewPrivate::CreateBeforeUnloadDialog( oxide::qt::JavaScriptDialogProxyClient* client) { Q_Q(OxideQQuickWebView); return new oxide::qquick::BeforeUnloadDialog(q, client); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,660
oxide::qt::FilePickerProxy* OxideQQuickWebViewPrivate::CreateFilePicker( oxide::qt::FilePickerProxyClient* client) { Q_Q(OxideQQuickWebView); return new oxide::qquick::FilePicker(q, client); }
null
0
oxide::qt::FilePickerProxy* OxideQQuickWebViewPrivate::CreateFilePicker( oxide::qt::FilePickerProxyClient* client) { Q_Q(OxideQQuickWebView); return new oxide::qquick::FilePicker(q, client); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,661
void OxideQQuickWebViewPrivate::CreateWebFrame( oxide::qt::WebFrameProxy* proxy) { Q_Q(OxideQQuickWebView); OxideQQuickWebFrame* frame = OxideQQuickWebFramePrivate::create(proxy); QQmlEngine::setObjectOwnership(frame, QQmlEngine::CppOwnership); emit q->frameAdded(frame); }
null
0
void OxideQQuickWebViewPrivate::CreateWebFrame( oxide::qt::WebFrameProxy* proxy) { Q_Q(OxideQQuickWebView); OxideQQuickWebFrame* frame = OxideQQuickWebFramePrivate::create(proxy); QQmlEngine::setObjectOwnership(frame, QQmlEngine::CppOwnership); emit q->frameAdded(frame); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,662
void OxideQQuickWebViewPrivate::DownloadRequested( const OxideQDownloadRequest& download_request) { Q_Q(OxideQQuickWebView); emit q->downloadRequested(download_request); }
null
0
void OxideQQuickWebViewPrivate::DownloadRequested( const OxideQDownloadRequest& download_request) { Q_Q(OxideQQuickWebView); emit q->downloadRequested(download_request); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,663
void OxideQQuickWebViewPrivate::FaviconChanged() { Q_Q(OxideQQuickWebView); emit q->iconChanged(); }
null
0
void OxideQQuickWebViewPrivate::FaviconChanged() { Q_Q(OxideQQuickWebView); emit q->iconChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,664
void OxideQQuickWebViewPrivate::FrameMetadataUpdated( oxide::qt::FrameMetadataChangeFlags flags) { Q_Q(OxideQQuickWebView); QFlags<oxide::qt::FrameMetadataChangeFlags> f(flags); if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_SCROLL_OFFSET)) { emit q->contentXChanged(); emit q->contentYChanged(); } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_CONTENT)) { emit q->contentWidthChanged(); emit q->contentHeightChanged(); } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_VIEWPORT)) { emit q->viewportWidthChanged(); emit q->viewportHeightChanged(); } if (!location_bar_controller_) { return; } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_CONTROLS_OFFSET)) { emit location_bar_controller_->offsetChanged(); } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_CONTENT_OFFSET)) { emit location_bar_controller_->contentOffsetChanged(); } }
null
0
void OxideQQuickWebViewPrivate::FrameMetadataUpdated( oxide::qt::FrameMetadataChangeFlags flags) { Q_Q(OxideQQuickWebView); QFlags<oxide::qt::FrameMetadataChangeFlags> f(flags); if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_SCROLL_OFFSET)) { emit q->contentXChanged(); emit q->contentYChanged(); } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_CONTENT)) { emit q->contentWidthChanged(); emit q->contentHeightChanged(); } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_VIEWPORT)) { emit q->viewportWidthChanged(); emit q->viewportHeightChanged(); } if (!location_bar_controller_) { return; } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_CONTROLS_OFFSET)) { emit location_bar_controller_->offsetChanged(); } if (f.testFlag(oxide::qt::FRAME_METADATA_CHANGE_CONTENT_OFFSET)) { emit location_bar_controller_->contentOffsetChanged(); } }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,665
void OxideQQuickWebViewPrivate::FrameRemoved(QObject* frame) { Q_Q(OxideQQuickWebView); emit q->frameRemoved(qobject_cast<OxideQQuickWebFrame*>(frame)); }
null
0
void OxideQQuickWebViewPrivate::FrameRemoved(QObject* frame) { Q_Q(OxideQQuickWebView); emit q->frameRemoved(qobject_cast<OxideQQuickWebFrame*>(frame)); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,666
QEvent::Type GetPrepareToCloseBypassEventType() { static int g_event_type = QEvent::registerEventType(); return QEvent::Type(g_event_type); }
null
0
QEvent::Type GetPrepareToCloseBypassEventType() { static int g_event_type = QEvent::registerEventType(); return QEvent::Type(g_event_type); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,667
void OxideQQuickWebViewPrivate::HttpAuthenticationRequested( OxideQHttpAuthenticationRequest* authentication_request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete authentication_request; return; } { QJSValue val = engine->newQObject(authentication_request); if (!val.isQObject()) { delete authentication_request; return; } emit q->httpAuthenticationRequested(val); } engine->collectGarbage(); }
null
0
void OxideQQuickWebViewPrivate::HttpAuthenticationRequested( OxideQHttpAuthenticationRequest* authentication_request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete authentication_request; return; } { QJSValue val = engine->newQObject(authentication_request); if (!val.isQObject()) { delete authentication_request; return; } emit q->httpAuthenticationRequested(val); } engine->collectGarbage(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,668
void OxideQQuickWebViewPrivate::LoadEvent(const OxideQLoadEvent& event) { Q_Q(OxideQQuickWebView); emit q->loadEvent(event); if (!using_old_load_event_signal_ || event.type() == OxideQLoadEvent::TypeCommitted || event.type() == OxideQLoadEvent::TypeRedirected) { return; } emit q->loadingChanged(event); }
null
0
void OxideQQuickWebViewPrivate::LoadEvent(const OxideQLoadEvent& event) { Q_Q(OxideQQuickWebView); emit q->loadEvent(event); if (!using_old_load_event_signal_ || event.type() == OxideQLoadEvent::TypeCommitted || event.type() == OxideQLoadEvent::TypeRedirected) { return; } emit q->loadingChanged(event); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,669
void OxideQQuickWebViewPrivate::LoadProgressChanged(double progress) { Q_Q(OxideQQuickWebView); load_progress_ = progress * 100; emit q->loadProgressChanged(); }
null
0
void OxideQQuickWebViewPrivate::LoadProgressChanged(double progress) { Q_Q(OxideQQuickWebView); load_progress_ = progress * 100; emit q->loadProgressChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,670
void OxideQQuickWebViewPrivate::LoadingChanged() { Q_Q(OxideQQuickWebView); emit q->loadingStateChanged(); }
null
0
void OxideQQuickWebViewPrivate::LoadingChanged() { Q_Q(OxideQQuickWebView); emit q->loadingStateChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,671
void OxideQQuickWebViewPrivate::NavigationEntryChanged(int index) { navigation_history_.onNavigationEntryChanged(index); }
null
0
void OxideQQuickWebViewPrivate::NavigationEntryChanged(int index) { navigation_history_.onNavigationEntryChanged(index); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,672
void OxideQQuickWebViewPrivate::NavigationListPruned(bool from_front, int count) { navigation_history_.onNavigationListPruned(from_front, count); }
null
0
void OxideQQuickWebViewPrivate::NavigationListPruned(bool from_front, int count) { navigation_history_.onNavigationListPruned(from_front, count); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,673
void OxideQQuickWebViewPrivate::NavigationRequested( OxideQNavigationRequest* request) { Q_Q(OxideQQuickWebView); emit q->navigationRequested(request); }
null
0
void OxideQQuickWebViewPrivate::NavigationRequested( OxideQNavigationRequest* request) { Q_Q(OxideQQuickWebView); emit q->navigationRequested(request); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,674
void OxideQQuickWebViewPrivate::NewViewRequested( OxideQNewViewRequest* request) { Q_Q(OxideQQuickWebView); emit q->newViewRequested(request); }
null
0
void OxideQQuickWebViewPrivate::NewViewRequested( OxideQNewViewRequest* request) { Q_Q(OxideQQuickWebView); emit q->newViewRequested(request); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,675
void OxideQQuickWebViewPrivate::OnEditingCapabilitiesChanged() { Q_Q(OxideQQuickWebView); emit q->editingCapabilitiesChanged(); }
null
0
void OxideQQuickWebViewPrivate::OnEditingCapabilitiesChanged() { Q_Q(OxideQQuickWebView); emit q->editingCapabilitiesChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,676
OxideQQuickWebView::OxideQQuickWebView(QQuickItem* parent) : QQuickItem(parent), d_ptr(new OxideQQuickWebViewPrivate(this)) { oxide::qquick::EnsureChromiumStarted(); Q_D(OxideQQuickWebView); setFlags(QQuickItem::ItemClipsChildrenToShape | QQuickItem::ItemHasContents | QQuickItem::ItemIsFocusScope | QQuickItem::ItemAcceptsDrops); setAcceptedMouseButtons(Qt::AllButtons); setAcceptHoverEvents(true); }
null
0
OxideQQuickWebView::OxideQQuickWebView(QQuickItem* parent) : QQuickItem(parent), d_ptr(new OxideQQuickWebViewPrivate(this)) { oxide::qquick::EnsureChromiumStarted(); Q_D(OxideQQuickWebView); setFlags(QQuickItem::ItemClipsChildrenToShape | QQuickItem::ItemHasContents | QQuickItem::ItemIsFocusScope | QQuickItem::ItemAcceptsDrops); setAcceptedMouseButtons(Qt::AllButtons); setAcceptHoverEvents(true); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,677
OxideQQuickWebViewAttached::OxideQQuickWebViewAttached(QObject* parent) : QObject(parent), view_(nullptr) {}
null
0
OxideQQuickWebViewAttached::OxideQQuickWebViewAttached(QObject* parent) : QObject(parent), view_(nullptr) {}
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,678
OxideQQuickWebViewPrivate::OxideQQuickWebViewPrivate(OxideQQuickWebView* view) : q_ptr(view), contents_view_(new oxide::qquick::ContentsView(view)), load_progress_(0), security_status_(OxideQSecurityStatusPrivate::Create()), find_controller_(OxideQFindControllerPrivate::Create()), constructed_(false), navigation_history_(view), alert_dialog_(nullptr), confirm_dialog_(nullptr), prompt_dialog_(nullptr), before_unload_dialog_(nullptr), file_picker_(nullptr), using_old_load_event_signal_(false), construct_props_(new ConstructProps()) {}
null
0
OxideQQuickWebViewPrivate::OxideQQuickWebViewPrivate(OxideQQuickWebView* view) : q_ptr(view), contents_view_(new oxide::qquick::ContentsView(view)), load_progress_(0), security_status_(OxideQSecurityStatusPrivate::Create()), find_controller_(OxideQFindControllerPrivate::Create()), constructed_(false), navigation_history_(view), alert_dialog_(nullptr), confirm_dialog_(nullptr), prompt_dialog_(nullptr), before_unload_dialog_(nullptr), file_picker_(nullptr), using_old_load_event_signal_(false), construct_props_(new ConstructProps()) {}
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,679
void OxideQQuickWebViewPrivate::PrepareToCloseResponse(bool proceed) { Q_Q(OxideQQuickWebView); emit q->prepareToCloseResponse(proceed); }
null
0
void OxideQQuickWebViewPrivate::PrepareToCloseResponse(bool proceed) { Q_Q(OxideQQuickWebView); emit q->prepareToCloseResponse(proceed); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,680
void OxideQQuickWebViewPrivate::RequestGeolocationPermission( OxideQGeolocationPermissionRequest* request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete request; return; } { QJSValue val = engine->newQObject(request); if (!val.isQObject()) { delete request; return; } emit q->geolocationPermissionRequested(val); } engine->collectGarbage(); }
null
0
void OxideQQuickWebViewPrivate::RequestGeolocationPermission( OxideQGeolocationPermissionRequest* request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete request; return; } { QJSValue val = engine->newQObject(request); if (!val.isQObject()) { delete request; return; } emit q->geolocationPermissionRequested(val); } engine->collectGarbage(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,681
void OxideQQuickWebViewPrivate::RequestMediaAccessPermission( OxideQMediaAccessPermissionRequest* request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete request; return; } { QJSValue val = engine->newQObject(request); if (!val.isQObject()) { delete request; return; } emit q->mediaAccessPermissionRequested(val); } engine->collectGarbage(); }
null
0
void OxideQQuickWebViewPrivate::RequestMediaAccessPermission( OxideQMediaAccessPermissionRequest* request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete request; return; } { QJSValue val = engine->newQObject(request); if (!val.isQObject()) { delete request; return; } emit q->mediaAccessPermissionRequested(val); } engine->collectGarbage(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,682
void OxideQQuickWebViewPrivate::RequestNotificationPermission( OxideQPermissionRequest* request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete request; return; } { QJSValue val = engine->newQObject(request); if (!val.isQObject()) { delete request; return; } emit q->notificationPermissionRequested(val); } engine->collectGarbage(); }
null
0
void OxideQQuickWebViewPrivate::RequestNotificationPermission( OxideQPermissionRequest* request) { Q_Q(OxideQQuickWebView); QQmlEngine* engine = qmlEngine(q); if (!engine) { delete request; return; } { QJSValue val = engine->newQObject(request); if (!val.isQObject()) { delete request; return; } emit q->notificationPermissionRequested(val); } engine->collectGarbage(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,683
void OxideQQuickWebViewPrivate::TargetURLChanged() { Q_Q(OxideQQuickWebView); emit q->hoveredUrlChanged(); }
null
0
void OxideQQuickWebViewPrivate::TargetURLChanged() { Q_Q(OxideQQuickWebView); emit q->hoveredUrlChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,684
void OxideQQuickWebViewPrivate::TitleChanged() { Q_Q(OxideQQuickWebView); emit q->titleChanged(); }
null
0
void OxideQQuickWebViewPrivate::TitleChanged() { Q_Q(OxideQQuickWebView); emit q->titleChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,685
oxide::qt::RestoreType ToInternalRestoreType( OxideQQuickWebView::RestoreType type) { switch (type) { case OxideQQuickWebView::RestoreCurrentSession: return oxide::qt::RESTORE_CURRENT_SESSION; case OxideQQuickWebView::RestoreLastSessionExitedCleanly: return oxide::qt::RESTORE_LAST_SESSION_EXITED_CLEANLY; case OxideQQuickWebView::RestoreLastSessionCrashed: return oxide::qt::RESTORE_LAST_SESSION_CRASHED; } }
null
0
oxide::qt::RestoreType ToInternalRestoreType( OxideQQuickWebView::RestoreType type) { switch (type) { case OxideQQuickWebView::RestoreCurrentSession: return oxide::qt::RESTORE_CURRENT_SESSION; case OxideQQuickWebView::RestoreLastSessionExitedCleanly: return oxide::qt::RESTORE_LAST_SESSION_EXITED_CLEANLY; case OxideQQuickWebView::RestoreLastSessionCrashed: return oxide::qt::RESTORE_LAST_SESSION_CRASHED; } }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,686
void OxideQQuickWebViewPrivate::ToggleFullscreenMode(bool enter) { Q_Q(OxideQQuickWebView); emit q->fullscreenRequested(enter); }
null
0
void OxideQQuickWebViewPrivate::ToggleFullscreenMode(bool enter) { Q_Q(OxideQQuickWebView); emit q->fullscreenRequested(enter); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,687
void OxideQQuickWebViewPrivate::URLChanged() { Q_Q(OxideQQuickWebView); emit q->urlChanged(); }
null
0
void OxideQQuickWebViewPrivate::URLChanged() { Q_Q(OxideQQuickWebView); emit q->urlChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,688
void OxideQQuickWebViewPrivate::WebPreferencesReplaced() { Q_Q(OxideQQuickWebView); emit q->preferencesChanged(); }
null
0
void OxideQQuickWebViewPrivate::WebPreferencesReplaced() { Q_Q(OxideQQuickWebView); emit q->preferencesChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,689
void OxideQQuickWebViewPrivate::WebProcessStatusChanged() { Q_Q(OxideQQuickWebView); emit q->webProcessStatusChanged(); }
null
0
void OxideQQuickWebViewPrivate::WebProcessStatusChanged() { Q_Q(OxideQQuickWebView); emit q->webProcessStatusChanged(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,690
void OxideQQuickWebViewPrivate::addAttachedPropertyTo(QObject* object) { Q_Q(OxideQQuickWebView); OxideQQuickWebViewAttached* attached = qobject_cast<OxideQQuickWebViewAttached *>( qmlAttachedPropertiesObject<OxideQQuickWebView>(object)); attached->setView(q); }
null
0
void OxideQQuickWebViewPrivate::addAttachedPropertyTo(QObject* object) { Q_Q(OxideQQuickWebView); OxideQQuickWebViewAttached* attached = qobject_cast<OxideQQuickWebViewAttached *>( qmlAttachedPropertiesObject<OxideQQuickWebView>(object)); attached->setView(q); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,691
QQmlComponent* OxideQQuickWebView::alertDialog() const { Q_D(const OxideQQuickWebView); return d->alert_dialog_; }
null
0
QQmlComponent* OxideQQuickWebView::alertDialog() const { Q_D(const OxideQQuickWebView); return d->alert_dialog_; }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,692
void OxideQQuickWebViewPrivate::attachContextSignals( OxideQQuickWebContextPrivate* context) { Q_Q(OxideQQuickWebView); if (!context) { return; } QObject::connect(context, SIGNAL(destroyed()), q, SLOT(contextDestroyed())); QObject::connect(context, SIGNAL(constructed()), q, SLOT(contextConstructed())); }
null
0
void OxideQQuickWebViewPrivate::attachContextSignals( OxideQQuickWebContextPrivate* context) { Q_Q(OxideQQuickWebView); if (!context) { return; } QObject::connect(context, SIGNAL(destroyed()), q, SLOT(contextDestroyed())); QObject::connect(context, SIGNAL(constructed()), q, SLOT(contextConstructed())); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,693
QQmlComponent* OxideQQuickWebView::beforeUnloadDialog() const { Q_D(const OxideQQuickWebView); return d->before_unload_dialog_; }
null
0
QQmlComponent* OxideQQuickWebView::beforeUnloadDialog() const { Q_D(const OxideQQuickWebView); return d->before_unload_dialog_; }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,694
bool OxideQQuickWebView::canGoBack() const { Q_D(const OxideQQuickWebView); if (!d->proxy_) { return false; } return d->proxy_->canGoBack(); }
null
0
bool OxideQQuickWebView::canGoBack() const { Q_D(const OxideQQuickWebView); if (!d->proxy_) { return false; } return d->proxy_->canGoBack(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,695
void OxideQQuickWebViewPrivate::completeConstruction() { Q_Q(OxideQQuickWebView); Q_ASSERT(construct_props_.data()); if (construct_props_->new_view_request) { proxy_.reset(oxide::qt::WebViewProxy::create( this, contents_view_.data(), q, find_controller_.data(), security_status_.data(), construct_props_->new_view_request)); } if (!proxy_) { construct_props_->new_view_request = nullptr; proxy_.reset(oxide::qt::WebViewProxy::create( this, contents_view_.data(), q, find_controller_.data(), security_status_.data(), construct_props_->context, construct_props_->incognito, construct_props_->restore_state, construct_props_->restore_type)); } proxy_->messageHandlers().swap(construct_props_->message_handlers); proxy_->setLocationBarHeight(construct_props_->location_bar_height); proxy_->setLocationBarMode(construct_props_->location_bar_mode); proxy_->setLocationBarAnimated(construct_props_->location_bar_animated); if (!construct_props_->new_view_request) { if (construct_props_->load_html) { proxy_->loadHtml(construct_props_->html, construct_props_->url); } else if (!construct_props_->url.isEmpty()) { proxy_->setUrl(construct_props_->url); } } proxy_->setFullscreen(construct_props_->fullscreen); if (construct_props_->preferences) { proxy_->setPreferences(construct_props_->preferences); } emit q->rootFrameChanged(); if (construct_props_->incognito != proxy_->incognito()) { emit q->incognitoChanged(); } if (construct_props_->context != proxy_->context()) { if (construct_props_->context) { detachContextSignals( OxideQQuickWebContextPrivate::get(construct_props_->context)); } attachContextSignals( OxideQQuickWebContextPrivate::get( qobject_cast<OxideQQuickWebContext*>(proxy_->context()))); emit q->contextChanged(); } emit q->editingCapabilitiesChanged(); construct_props_.reset(); }
null
0
void OxideQQuickWebViewPrivate::completeConstruction() { Q_Q(OxideQQuickWebView); Q_ASSERT(construct_props_.data()); if (construct_props_->new_view_request) { proxy_.reset(oxide::qt::WebViewProxy::create( this, contents_view_.data(), q, find_controller_.data(), security_status_.data(), construct_props_->new_view_request)); } if (!proxy_) { construct_props_->new_view_request = nullptr; proxy_.reset(oxide::qt::WebViewProxy::create( this, contents_view_.data(), q, find_controller_.data(), security_status_.data(), construct_props_->context, construct_props_->incognito, construct_props_->restore_state, construct_props_->restore_type)); } proxy_->messageHandlers().swap(construct_props_->message_handlers); proxy_->setLocationBarHeight(construct_props_->location_bar_height); proxy_->setLocationBarMode(construct_props_->location_bar_mode); proxy_->setLocationBarAnimated(construct_props_->location_bar_animated); if (!construct_props_->new_view_request) { if (construct_props_->load_html) { proxy_->loadHtml(construct_props_->html, construct_props_->url); } else if (!construct_props_->url.isEmpty()) { proxy_->setUrl(construct_props_->url); } } proxy_->setFullscreen(construct_props_->fullscreen); if (construct_props_->preferences) { proxy_->setPreferences(construct_props_->preferences); } emit q->rootFrameChanged(); if (construct_props_->incognito != proxy_->incognito()) { emit q->incognitoChanged(); } if (construct_props_->context != proxy_->context()) { if (construct_props_->context) { detachContextSignals( OxideQQuickWebContextPrivate::get(construct_props_->context)); } attachContextSignals( OxideQQuickWebContextPrivate::get( qobject_cast<OxideQQuickWebContext*>(proxy_->context()))); emit q->contextChanged(); } emit q->editingCapabilitiesChanged(); construct_props_.reset(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,696
QQmlComponent* OxideQQuickWebView::confirmDialog() const { Q_D(const OxideQQuickWebView); return d->confirm_dialog_; }
null
0
QQmlComponent* OxideQQuickWebView::confirmDialog() const { Q_D(const OxideQQuickWebView); return d->confirm_dialog_; }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,697
void OxideQQuickWebView::connectNotify(const QMetaMethod& signal) { Q_D(OxideQQuickWebView); Q_ASSERT(thread() == QThread::currentThread()); #define VIEW_SIGNAL(sig) QMetaMethod::fromSignal(&OxideQQuickWebView::sig) if (signal == VIEW_SIGNAL(newViewRequested) && d->proxy_) { d->proxy_->updateWebPreferences(); } else if (signal == VIEW_SIGNAL(loadingChanged)) { WARN_DEPRECATED_API_USAGE() << "OxideQQuickWebView: loadingChanged is deprecated. Please connect " "loadEvent if you want load event notifications, or " "loadingStateChanged if you want to detect changes to the loading " "property"; d->using_old_load_event_signal_ = true; } #undef VIEW_SIGNAL }
null
0
void OxideQQuickWebView::connectNotify(const QMetaMethod& signal) { Q_D(OxideQQuickWebView); Q_ASSERT(thread() == QThread::currentThread()); #define VIEW_SIGNAL(sig) QMetaMethod::fromSignal(&OxideQQuickWebView::sig) if (signal == VIEW_SIGNAL(newViewRequested) && d->proxy_) { d->proxy_->updateWebPreferences(); } else if (signal == VIEW_SIGNAL(loadingChanged)) { WARN_DEPRECATED_API_USAGE() << "OxideQQuickWebView: loadingChanged is deprecated. Please connect " "loadEvent if you want load event notifications, or " "loadingStateChanged if you want to detect changes to the loading " "property"; d->using_old_load_event_signal_ = true; } #undef VIEW_SIGNAL }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,698
qreal OxideQQuickWebView::contentWidth() const { Q_D(const OxideQQuickWebView); if (!d->proxy_) { return 0.f; } return const_cast<OxideQQuickWebViewPrivate*>( d)->proxy_->compositorFrameContentSize().width(); }
null
0
qreal OxideQQuickWebView::contentWidth() const { Q_D(const OxideQQuickWebView); if (!d->proxy_) { return 0.f; } return const_cast<OxideQQuickWebViewPrivate*>( d)->proxy_->compositorFrameContentSize().width(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null
13,699
qreal OxideQQuickWebView::contentX() const { Q_D(const OxideQQuickWebView); if (!d->proxy_) { return 0.f; } return const_cast<OxideQQuickWebViewPrivate*>( d)->proxy_->compositorFrameScrollOffset().x(); }
null
0
qreal OxideQQuickWebView::contentX() const { Q_D(const OxideQQuickWebView); if (!d->proxy_) { return 0.f; } return const_cast<OxideQQuickWebViewPrivate*>( d)->proxy_->compositorFrameScrollOffset().x(); }
@@ -2042,8 +2042,8 @@ If the application doesn't set this, then WebView will use the application default WebContext (Oxide::defaultWebContext). The application should ensure that the provided WebContext outlives this -WebView. Although WebView will continue to function normally if its provided -WebContext is deleted, it will mean that this property is null. +WebView. Deleting the WebContext whilst the WebView is still alive may cause +some features to stop working. If this WebView is created as a request to open a new window (via newViewRequested), then the WebContext will be inherited from the opening
CWE-20
null
null