I am trying to integrate webkit.net into my project. I started off with OpenWebkitSharp 3.0 because it supports latest HTML5/CSS3 but I am always experiencing crash from clicking the page and even on load sometimes. The error I get is below:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I can't fathom the issue as it happens randomly just by navigating through the page. From various articles I read online that error is from Webkit.dll and I was advised to wait for the release of more stable version.
After multiple days of trials, I found another version webkitdotnet-develop which seems to be more stable but it doesn't support webfonts(.ttf/woff/svg) with Backbone.js framework. The webfonts worked fine with a simple html file but not with the backbone.js eventhough I was able to load same file using google/firefox browsers with no problem. I guess something in backbone.js is breaking the @font-face style from displaying in the WebkitBrowser.
Could someone help with any of the two issues? Thanks in advance!
I am always experiencing crash from clicking the page and even on load sometimes.
The underlying DOM interfaces for events are not fully implemented, which leads to a null reference
The webfonts worked fine with a simple html file but not with the backbone.js
The Backbone view creates IDs and class names dynamically, so find the bindings in the render
and create matching selectors for fonts:
<style>
.fonty {
font: 14px/1.4em "Helvetica Neue",Helvetica,Arial,sans-serif;
color: rgb(51, 51, 51);
}
</style>
<script>
render: function() {
this.$el.toggleClass('fonty', this.model.get('done'));
}
</script>
References
Opening local files in Webkit .NET
WebkitdotNet Github Repo
IDOMHTMLInputElement.Click()
WebkitdotNet: 0.5 Released
WebkitdotNet: 0.4 Released
Backbone Example: todos
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With