set returnNullIfBrowserNotFound field value as "true" for GetBrowserWrapper method in OnBeforeResourceLoad in order to prevent crashing popup window, when window is closed.
When using a popup and OnResourceLoadComplete it's possible that the popup will be removed from the collection causing an exception
Simple fix for now, just return nullptr in that particular instance.
There was a problem with the previous implementation. It worked correctly for many use cases:
- Dragging from a web app to a WPF control.
- Dragging from a WPF control to a web app.
- Dragging _html content_ from a web app to an input field
**But**: when dragging text from one input field to another, the text would vanish (!) when you drop it.
We debugged this here quite extensively. It turned out that if you have _set_ the `FragmentHtml` (even though you've set it to an empty string), it behaves like this. The solution is to avoid setting it if it is empty.
Make ScriptedMethods class static and convert the methods into extension methods (really just for the hell of it)
Make some of the comments a little less verbose in terms of number of lines
Some Resharper inspired simplifications
Other code reformatting to make consistent with other parts of the project (switch case statements should have braces, ContinueWith blocks reformatted to match others)
Untabify ScriptedMethodsTest.html
Remove unused usings from ScriptedMethods
Add a few comments about camelCaseJavascriptNames
As the code is not well tested and I'd like to merge into the next release I'm disabling this by default
IsManipulationEnabled = true can manually be set on the ChromiumWebBrowser instance to enable.
Enabled by default in the WPF Example
For instance webgl may have a number of sub preferences.
Allow for returning of a dictionary when returning a specific preference
Having some compiler problems with setting of dictionary values
Improve documentation
Reorder events so they match the CefBrowserHost doco (alphabetical ordering)
Tidy up the xmldoc for IJsDialogHandler.OnJSDialog suppressMessage param
Also removed link to CefSharp v1. It's so outdated these days that there's no reason even linking to it. It was an important part of getting the project started, but... let's kill it now.