ataranto / CefSharp

.Net binding for the Chromium Embedded Framework
Other
62 stars 34 forks source link

Added overload of WebView::LoadHtml with missing parameter String^ url, as provided by CEF. #37

Closed krauskopf closed 11 years ago

krauskopf commented 12 years ago

Added overload of method LoadHtml with additional parameter 'string^ url' to to Winforms and Wpf control.

This is necessary, because the current implementation of LoadHtml doesn't give access to the paremter as exposed by _clientAdapter->GetCefBrowser()->GetMainFrame()->LoadString. Instead, the parameter is hardcoded to "about:blank". This has 2 disadvanteges with no workaround:

  1. html code with relative paths to resources are not possible.
  2. html code with (even absolute )paths to local files(images) are not possible, due to different security zone.
ataranto commented 12 years ago

Thanks. I haven't had much time for CefSharp lately but when I do I'll merge this.

krauskopf commented 12 years ago

Thank you very much. I really appreciate your effort.

Von: anthony [mailto:notifications@github.com] Gesendet: Dienstag, 23. Oktober 2012 22:41 An: ataranto/CefSharp Cc: flowcoder Betreff: Re: [CefSharp] Added overload of WebView::LoadHtml with missing parameter String^ url, as provided by CEF. (#37)

Thanks. I haven't had much time for CefSharp lately but when I do I'll merge this.

— Reply to this email directly or view it on GitHub https://github.com/ataranto/CefSharp/pull/37#issuecomment-9717315 .

Das Bild wurde vom Absender entfernt.

ataranto commented 11 years ago

merged, thanks!