Skip to content

Commit be83917

Browse files
author
Luca Sonntag
committed
Initialize origins to null
1 parent fb03970 commit be83917

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ namespace CefSharp
2828
{
2929
private:
3030
MCefRefPtr<CefBrowser> _cefBrowser;
31+
MCefRefPtr<CefListValue> _javascriptBindingApiAllowOrigins;
3132

3233
public:
3334
CefBrowserWrapper(const CefRefPtr<CefBrowser> &cefBrowser)
@@ -45,7 +46,7 @@ namespace CefSharp
4546
{
4647
_cefBrowser = nullptr;
4748

48-
JavascriptBindingApiAllowOrigins = nullptr;
49+
_javascriptBindingApiAllowOrigins = nullptr;
4950
}
5051

5152
~CefBrowserWrapper()
@@ -57,7 +58,11 @@ namespace CefSharp
5758
property bool IsPopup;
5859
property bool JavascriptBindingApiEnabled;
5960
property bool JavascriptBindingApiHasAllowOrigins;
60-
property CefRefPtr<CefListValue> JavascriptBindingApiAllowOrigins;
61+
property CefRefPtr<CefListValue> JavascriptBindingApiAllowOrigins
62+
{
63+
CefRefPtr<CefListValue> get() { return _javascriptBindingApiAllowOrigins.get(); }
64+
void set(CefRefPtr<CefListValue> value) { _javascriptBindingApiAllowOrigins = value.get(); }
65+
}
6166

6267
#ifndef NETCOREAPP
6368
// This allows us to create the WCF proxies back to our parent process.

0 commit comments

Comments
 (0)