Skip to content

OffScreen - JavascriptBindingSettings.JavascriptBindingApiEnabled can no longer be modified, settings must be changed before the underlying browser has been created #4333

Discussion options

You must be logged in to vote

@Rand0mRange I hate when someone doesn't know the answer but still answer in a very vague way

found the answer from integration tests and it was so easy

            var browser = new ChromiumWebBrowser(testUrl, automaticallyCreateBrowser: false);

            browser.JavascriptObjectRepository.Settings.JavascriptBindingApiEnabled = false;

            browser.JavascriptObjectRepository.Settings.JavascriptBindingApiGlobalObjectName = "SomeNewBrowser";

            browser.CreateBrowser();

Replies: 3 comments 1 reply

This comment has been hidden.

This comment has been hidden.

Comment options

You must be logged in to vote
1 reply
@amaitland
Comment options

Answer selected by FurkanGozukara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants