ataranto / cefsharp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from cefsharp/cefsharp
.Net binding for the Chromium Embedded Framework
License: Other
This project forked from cefsharp/cefsharp
.Net binding for the Chromium Embedded Framework
License: Other
Closed
A common scenario is where you have stored all your application Resources in %AppData% but the application itself might exist in another location on the disk. If you could specify the location either via BrowserSettings() or somesort to where the actual library files are located, this would solve the problem.
Hi, (Cefsharp v2.25.5)
Check out this url, http://jsfiddle.net/Dani_90/r5LJ6/1/,
Load this Url in cefsharp and check,
when you click on the select control and select on the options it is getting hanged.
Somebody tell me the solution, its very urgent.
Thanks.
Since we have no support for wiring up javascript methods with callbacks for doing long running operations, I would like to use a custom scheme handler and do ajax calls, but the custom SchemeHandler is running on the UI-Thread and is blocking the execution of other calls to the SchemeHandler.
It would be great if we could provide an IAsyncSchemeHandler interface to implement asynchronous scheme handlers. I think the scheme handler mechanism in CEF already supports async operations because you can report data back from a call via a callback method in CEF.
The reason for this is that the the message loop hook that the WPF view uses, is not updated when the main presentation source is changed - the control is moved from one window to another.
Hi,
The title says pretty much everything - i need to support Windows XP for my application :(
Everything runs fine with Windows 7 (and i expect Vista too) but in Windows XP the app crashes right at the start. So my question is: Is there any way to compile CefSharp to run with Windows XP? Or am i doing something very stupid?
Thanks for your help, and thumbs up for your great work with CefSharp!
I did the following by accident:
This is obviously unsupported behavior, but it probably should just cause a JS error, instead of crashing the whole app. Here's the exception.
System.NullReferenceException was unhandled
Message: Object reference not set to an instance of an object.
CefSharp.dll!gcroot<System::Object ^>::operator System::Object ^() Line 113 C++
CefSharp.dll!CefSharp::BindingData::Get() Line 22 + 0xc bytes C++
CefSharp.dll!CefSharp::BindingHandler::Execute(CefStringBase<CefStringTraitsUTF16>& name, CefRefPtr<CefV8Value>* object, std::vector<CefRefPtr<CefV8Value>,std::allocator<CefRefPtr<CefV8Value> > >& arguments, CefRefPtr<CefV8Value>& retval, CefStringBase<CefStringTraitsUTF16>& exception) Line 130 + 0x1e bytes C++
[External Code]
I'm using the build v0.11 and cannot hear the sound from the HTML5
When displaying pages with flash animations, that uses user input events like mouse enter and mouse Leave, the browser control doesnot work as desired. Looks like somany mouse events are triggered (mouse enter and exit) simultaniously causing flickering on the animation. In my example, we have a button which brings in a window (help window) on mouse enter and slides out on mouse exit. But when rendered in CefSharp browser control for WPF, it always slides out continously in cycles, when I keep the mouse inside the boudaries of the button (I am not moving it, but the help window continously moves out)
Hello,
I have program that loads at Windows startup. And sometimes Form that has webview does not render or not show.(Only Form loads without webview) .
I can't understand why and when this happens.
Hi,
I created a custom ISchemeHandler and implemented ProcessRequest. In my method, I want to use the request data sent from an AJAX-call (via POST). The request object doesn't have a property like "Body" or "Content". How do I get the POST data? Could you implement another property like "Body"?
Hi,
First of all, thx for the great work you've put into this project. We're evaluating using this in one of our projects and it's looking very good so far. There's one thing missing that we need though: the ability to set a cookie from code. libcef exposes this through the CefSetCookie and CefSetCookiePath functions (and through the CefCookieManager interface after r541) and I've gotten it to work, though my implementation is probably far from ideal due to my lack of C++ skills :)
Would you be willing to accept a pull request with these changes?
CefSharp WPF control crashes when interacting with HTML drop down lists (HTML select tag)
The issue can be re-producible with CefSharp.WinForms.Example.exe
Steps to re-produce:
Launch CefSharp.WinForms.Example.exe
Browse the attached 'dropdown-lists.html' file
OR
you can browse any website that has form with drop down select list, for example
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select
You can also notice artifacts while rendering the popup
It crashes with the following exception:
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=CefSharp.Wpf
StackTrace:
at memcpy(Void* , Void* , UInt32 )
at CefSharp.Wpf.WebView.SetBuffer(Int32* currentWidth, Int32* currentHeight, Int32 width, Int32 height, Void** fileMappingHandle, Void** backBufferHandle, InteropBitmap* ibitmap, ActionHandler paintDelegate, Void* buffer)
at CefSharp.Wpf.WebView.SetPopupBuffer(Int32 width, Int32 height, Void* buffer)
at CefSharp.RenderClientAdapter.OnPaint(RenderClientAdapter* , CefRefPtr* browser, cef_paint_element_type_t type, vector<CefRect,std::allocator >* dirtyRects, Void* buffer)
Note: I am not experiencing this problem with CefSharp.WinForms control. It is working fine with the WinForms control.
Font: | Arial Batang BatangChe Gungsuh GungsuhChe Courier New DaunPenh DokChampa Estrangelo Edessa Euphemia Gautami Gulim GulimChe Dotum DotumChe Impact Iskoola Pota Kalinga Kartika Latha Lucida Console Malgun Gothic Mangal Microsoft Himalaya Microsoft JhengHei Microsoft YaHei MingLiU PMingLiU MingLiU_HKSCS MingLiU-ExtB PMingLiU-ExtB MingLiU_HKSCS-ExtB Mongolian Baiti MS Gothic MS PGothic MS UI Gothic MS Mincho MS PMincho MV Boli Nyala Plantagenet Cherokee Raavi Segoe Script Segoe UI Shruti SimSun NSimSun SimSun-ExtB Sylfaen Times New Roman Tunga Vrinda Microsoft Yi Baiti Tahoma Microsoft Sans Serif Angsana New Cordia New Gisha Leelawadee Microsoft Uighur MoolBoran Symbol Wingdings Andalus Arabic Typesetting Simplified Arabic Simplified Arabic Fixed Traditional Arabic Aharoni David FrankRuehl Levenim MT Miriam Miriam Fixed Narkisim Rod FangSong SimHei KaiTi AngsanaUPC Browallia New BrowalliaUPC CordiaUPC DilleniaUPC EucrosiaUPC FreesiaUPC IrisUPC JasmineUPC KodchiangUPC LilyUPC DFKai-SB Lucida Sans Unicode Comic Sans MS Franklin Gothic Georgia Palatino Linotype Segoe Print Trebuchet MS Verdana Webdings Haettenschweiler Book Antiqua Century Gothic Garamond Monotype Corsiva Agency FB Arial Rounded MT Blackadder ITC Bodoni MT Bookman Old Style Bradley Hand ITC Calisto MT Castellar Century Schoolbook Copperplate Gothic Curlz MT Edwardian Script ITC Elephant Engravers MT Eras ITC Felix Titling Forte Franklin Gothic Book French Script MT Gigi Gill Sans MT Gill Sans Gloucester MT Goudy Old Style Goudy Stout Imprint MT Shadow Lucida Sans Lucida Sans Typewriter Maiandra GD OCR A Palace Script MT Papyrus Perpetua Perpetua Titling MT Pristina Rage Rockwell Script MT Tw Cen MT Algerian Baskerville Old Face Bauhaus 93 Bell MT Berlin Sans FB Bernard MT Bodoni MT Poster Britannic Broadway Brush Script MT Californian FB Centaur Chiller Colonna MT Cooper Footlight MT Freestyle Script Harlow Solid Harrington High Tower Text Jokerman Juice ITC Kristen ITC Kunstler Script Lucida Bright Lucida Calligraphy Lucida Fax Lucida Handwriting Magneto Matura MT Script Capitals Mistral Modern No. 20 Niagara Engraved Niagara Solid Old English Text MT Onyx Parchment Playbill Poor Richard Ravie Informal Roman Showcard Gothic Snap ITC Stencil Tempus Sans ITC Viner Hand ITC Vivaldi Vladimir Script Wide Latin Century Wingdings 2 Wingdings 3 Arial Unicode MS Nina Segoe Meiryo UI Meiryo Eenadu Shree-0908W ZDingbats Buxton Sketch Segoe Marker SketchFlow Print MT Extra Calibri Cambria Cambria Math Candara Consolas Constantia Corbel MS Outlook Gabriola Bookshelf Symbol 7 MS Reference Sans Serif MS Reference Specialty Marlett Global User Interface Global Monospace Global Sans Serif Global Serif | 6 7 8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72 |
Currently loading XAML file with cs:WebView fails with exception: "Unable to load the metadata for assembly 'CefSharp.Wpf'. This assembly may have been downloaded from the web".
Ideally, when design-time is detected, native CEF should not be initialized and some placeholder displayed in place of web page.
Titles are not shown , when opening a link in the pop up window. Do you have know about this issue or am I missing something?. The title in popup window is working in the chromium cefclient...Also noticed that the pop up window icon is not same as Web view window icon. currently popup icon shows some default icon.
Hi
I have tried a lot to build CefSharp with the latest cef binary but got failed.
Can anybody have try with this latest version cef_binary_3.1180.823.
Please give me a hand.
Thank you very much.
Steven
Any file download links clicked in the web browser control opens a blank window and nothing happens. I was expecting the file link to be downloaded by the browser based on the response headers(content-type). Is this something that can be fixed in cefsharp or we have to handle the downloads in the HandleBeforeResourceLoad handler?
Hi,
I have an issue showing my local images in the browser. I set UniversalAccessFromFileUrlsAllowed and FileAccessFromFileUrlsAllowed true but no result.
do you have any suggestion on this? I am using version 0.10
vas
It would be incredibly helpful if you could provide a strong name signed build of the tagged releases going forward. The project already includes a .snk
file, but it requires the user to be able to build to binaries from source.
Since CefSharp aims to provide a CEF implementation for managed assembly, and most of its consumers are programming in purely managed languages (C#), it's reasonable to expect that some users don't have a Visual Studio edition which is capable of building mixed managed/native projects. This is the case for me as well, and I currently need to ask a friend to build it for me.
Thanks @ataranto and other maintainers for all the awesome work on this project! It's been a real boon, and a pleasure to use.
Hello,
This is not a real issue, it's just a question. I'm pretty new the CefSharp and i really like it, i will definitely use it in my applications instead of the standard IE WebBrowser control. So i hope you can shed some light on my confusion.
The Chromium Project has differnt branches and Chrome uses some of those branches for stable releases:
The "963" branch was the stable branch for Google Chrome v17.
The "1025" branch was the stable branch for Google Chrome v18.
The "1084" branch was the stable branch for Google Chrome v19.
The "1132" branch is the stable branch for Google Chrome v20.
The "1180" branch will be the stable branch for Chrome v21.
The CEF1 project offers downloads for the"1025" and the older "963" branch. There are no downloads for "1084" or "1132" and the "1180" branch is CEF3 only.
The chillitom/CefSharp github repository includes branch "1092" - it looks to me that this was a branch somewhere between Google Chrome v19 and V20. But is this a stable build?
The ataranto/CefSharp github repository includes branch "1180" - which is great but this one is not yet stable. In my case it crashes on some of my sites like www.funworld.com.
Okay finally my question: If i want to build an application for production use, What is the right branch to follow? Currently none of the both major CefSharp repositories offer a stable branch. Do i have to create my own fork for building something like a "1132" branch for CefSharp?
You see i'm a little bit confused :) You are doing a great job, thanks for all your effort!
> CefSharp.dll!CefSharp::ScriptCore::UIT_Execute(CefRefPtr<CefBrowser>* browser, CefStringBase<CefStringTraitsUTF16>* script) Line 10 C++
[External Code]
CefSharp.dll!DispatchToMethod<CefSharp::ScriptCore,void (__thiscall CefSharp::ScriptCore::*)(CefRefPtr<CefBrowser>,CefStringBase<CefStringTraitsUTF16>),CefRefPtr<CefBrowser>,CefStringBase<CefStringTraitsUTF16> >(CefSharp::ScriptCore* obj, void* method, Tuple2<CefRefPtr<CefBrowser>,CefStringBase<CefStringTraitsUTF16> >& arg) Line 592 C++
CefSharp.dll!CefRunnableMethod<CefSharp::ScriptCore,void (__thiscall CefSharp::ScriptCore::*)(CefRefPtr<CefBrowser>,CefStringBase<CefStringTraitsUTF16>),Tuple2<CefRefPtr<CefBrowser>,CefStringBase<CefStringTraitsUTF16> > >::Execute(cef_thread_id_t threadId) Line 151 C++
[External Code]
This occurs when an ExecuteScript call is made right before the app exits, so presumably the WinForms browser is getting disposed out from under us. Is there a good way to protect ourselves from this error? Alternatively, should we do something like check for null here in UIT_Execute?
Hi,
We are currently using your CefSharp libray (its great by the way) and found that it will not work on Windows 8 without .net 3.5 installed. Is there any reason why the library cannot be built using .net 4.5? Is there a plan to do a 4.5 build?
Thanks
Hagashen
i don't think this PR is valid based on the current zoom api, although binding the api should be simple.
Hi,
I'm having some problems using NUnit to run unit tests over my application and these problems are related to the lack of support of multiple AppDomains by CefSharp, AFAIK.
So my question is, what is necessary to properly support multiple AppDomains?
See this for a demo.
Following cursors are not displayed: vertical-text, alias, cell, copy, col-resize, row-size.
WebView will leak memory whenever a view is removed - the HWND hook is not removed so a reference is kept and the GC will not clean up the view that has the WebView and any linked classes.
A lot of applications switch views and this becomes a big problem over time. Unfortunately I am not familiar with C++ so I cannot fix the code and make a pull request, so I request that you fix it! It is a big problem in my hobby application :(
I suggest that we automatically remove the hook or remove it when IDisposable::Dispose() is called.
Thank you!
when compile the CefSharp.dll for X64,it will show error about libcef_dll_wrapper.lib.it only can compiled with X86 ,how to solve it?thank u
Download latest binary release.
Resize horizontally and back a few times without lifting the mouse button.
You'll crash.
System.Reflection.TargetInvocationException was unhandled
HResult=-2146232828
Message=Exception has been thrown by the target of an invocation.
Source=mscorlib
StackTrace:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
InnerException: System.Runtime.InteropServices.COMException
HResult=-2147024890
Message=The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
Source=PresentationCore
ErrorCode=-2147024890
StackTrace:
at System.Windows.Interop.InteropBitmap..ctor(IntPtr section, Int32 pixelWidth, Int32 pixelHeight, PixelFormat format, Int32 stride, Int32 offset)
at System.Windows.Interop.Imaging.CreateBitmapSourceFromMemorySection(IntPtr section, Int32 pixelWidth, Int32 pixelHeight, PixelFormat format, Int32 stride, Int32 offset)
at CefSharp.Wpf.WebView.SetBitmap()
InnerException:
Issue here is that the timer ticks and sets the tool tip text even when the mouse is out of the webview. I've been able to reproduce this when a toolbar is at the top of the webview and you move your mouse out through the top.
I have a simple fix in place but there could possibly be something cleaner. Right now I just added a boolean for "hasMouseInside" and set it to false on mouse leave, and true on mouse enter. Then just check the boolean before we display the tool tip.
Both the latest WinForm and Wpf apps crash when showing/playing HTML audio and video files, or when navigating back to a previous page while the video/audio is playing. Does this issue exist for others?
I've using a version of ffmpeg built locally from Chromium revision 115322, if that matters or helps diagnose the problem (avcodec-53.dll, avformat-53.dll, and avutil-51.dll aren't bundled with the binary package - https://github.com/downloads/ataranto/CefSharp/CefSharp-0.9-bin.7z).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.