You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Rename settings object to JavascriptBindingSettings
- Validate JavascriptBindingSettings.JsBindingGlobalObjectName in setter to provide immediate
feedback
- Add FreezableBase which throws exception when frozen (we can reuse this for some other settings classes)
- Add some basic Unit Tests (More would be better)
Follow on from #3126
// Retrieve the configurable binding property names, throw exception if empty or illegal characters
70
-
auto jsBindingPropertyName = _javaScriptObjectRepository->Settings->WindowPropertyName;
71
-
if (!StringCheck::EnsureLettersAndNumbers(jsBindingPropertyName))
69
+
if (!String::IsNullOrEmpty(objectRepository->Settings->JavascriptBindingApiGlobalObjectName))
72
70
{
73
-
throw gcnew InvalidOperationException("CefBrowserHost::CreateBrowser invalid or illegal characters used for binding property names. Alphanumeric and underscores characters only.");
74
-
}
75
-
76
-
if (_javaScriptObjectRepository->Settings->IsWindowPropertyNameCamelCase())
0 commit comments