cefsharp Browser SubProcess??
I've attemped to migrate from v.1.25.3 (nuget current) to the latest github source as I'm trying to find a 64-bit version we can use, preferrably in WinForms.
However, I've found there's a vast array of breaking changes, brand new types etc. That's ok for a major release (it's not but lets not got there right now) but I wasn't expecting a whoel knew hosted process that's started... CefSharp.Subprocess.
Is this the planned model moving forward? Is this likely to change again?
It's a large change to the current programming and runtime environment, and I'm rather wary of upgrading right now.
See https://github.com/cefsharp/CefSharp/wiki/Versions and the link on that page about the underlying CEF1 vs CEF3 architecture.
Is this the planned model moving forward?
Yes.
Is this likely to change again?
Not sure if there are an additional change in the pipeline with the work on the #310 branch? After that,hopefully not (too soon, if ever). But CefSharp will always live at the mercy of upstream CEF and Chromium projects ...
We try the best we can to shield from e.g. upstream changes if we can keep the current API - an example would be JsDialogHandler where we try to keep our API while CEF has changed. A problem in this is that current committers might not have a lot of history with CefSharp1/WinForms - and your favorite part of the API. We also want to balance this with a bit of cleanup/unification across WinForms/current Wpf, see e.g. #379, #384 (Wpf has seen quite some - intended - API changes) ... so it's a balance.
Contributions from those who need to move from WinForms CefSharp 1 to 3 are more than welcome :smile: and the timing is right for us - and you I hope - now before we take of the -Premarker ... I'm thinking mayhaps we could leave the -Pre marker on the CefSharp.WinForms Nuget a bit longer that the rest to let it soak a bit more...?
@perlun @amaitland @JanEggers did I, roughly, hit the mark on this one? :stuck_out_tongue_winking_eye:
@perlun @amaitland @JanEggers did I, roughly, hit the mark on this one?
Yes, roughly. :stuck_out_tongue: No, seriously, quite a good one from my POV.
However, I've found there's a vast array of breaking changes, brand new types etc. That's ok for a major release (it's not but lets not got there right now)
Seriously, I don't like the things you are implying here @penderi. We live in a world of change. CEF changes (i.e. the upstream architectural changes from CEF1 to CEF3), .NET changes (i.e. the introduction of async and await, which we are soon to adopt), HTML/CSS standards change, Javascript change, Chromium changes...
In the midst of all this, you are kind of demanding that we (at any cost) keep our public API? (I'm extrapolating your post a bit to make a point. :wink:)
I think that:
- It's important that we allow ourselves to change, when the rest of the world is changing and
- It is important that we allow ourselves to correct design mistakes of the past, and not get trapped in the "backward compatibility/legacy trap".
I know it's a hassle to upgrade from a major version to another, and as @jornh says, we will probably not change that much more in CefSharp 31.0.0 until it is declared stable. But frankly, if you have problems with us changing too much - feel free to make your own CEF-based wrapper in .NET. The source is out there; you can either fork our current master and make a "backward-compatible CefSharp--" or fork the CefSharp1 code and try to redo the stuff that we've been working with during the last year in a more backwards-compatible manner.
Or, which is probably the easiest option of them all, just accept a bit of pain now and try to live with it. :smiley:
I know I'm perhaps blowing things out of proportion but it doesn't feel fair that people come in from nowhere and start saying that "it's not OK to change things". Yes it is. My idea for "breaking changes" is this: we can make them whenever switching major version. 1.25.0 to 1.25.7 should (in theory) be a risk-free upgrade, as would 31.0.0 to 31.0.1. That's very important and a point you are right in emphasizing.
However, upgrading from 31.0.0 to (a very hypothetical) 35.0.0 might very well break things - both because of upstream changes on the CEF side of the world, and because we realize that we for one or another reason need/should/want to do things differently. Rest assured though, that we do not take these things very lately. Major changes to how things are being done is being discussed within the team (like the renaming of WebView to ChromiumWebBrowser which has been merged into the latest master) before it makes its way into the code of the project.
@jornh, @amaitland etc - feel free to add (or subtract :wink:) from the above as you see fit.
@jornh @perlun I think you've both covered off just about everything there is to be said on the subject!
I think overall we're striving to make the API cleaner, more consistent and easier to use going forward. There maybe a few minor annoyances when upgrading, I think the new features and improvements are totally worth it! Soon as 31.0.0 is released I'll be upgrading my WPF project straight over! Also the fact that it's open source, you can view the history of a particular file and see what changes have been made, so yeah, bring on the change from my point of view! :smile:
I know @jornh has mentioned it before and this probably highlights the point about having a breaking changes document, and possibly some sort of upgrade guide, so I think we'll have to work on that, even if it's rough at the start, people can contribute as they stumble across issues.
I know @jornh has mentioned it before and this probably highlights the point about having a breaking changes document, and possibly some sort of upgrade guide, so I think we'll have to work on that, even if it's rough at the start, people can contribute as they stumble across issues.
:+1: :+1: :+1: on this one - I totally agree, 100%. Do you or anyone else feel like starting to write it? I guess putting it in the Wiki pages is one idea, or just an .md file in the repo (so we can submit PR:s to it and discuss suggested wordings etc). Either way is fine with me, I've been known to prefer the latter approach in other cases. :wink:
Can this https://github.com/cefsharp/CefSharp/issues/394#issuecomment-45763411 be the, rather measly, starting point for that documentation? (You might skip the last two paragraphs, maybe some of the beginning and reword at will though :smiley:)
I'm :+1: with either location. The wiki makes it, a bit, easier for anyone to jump in. The repo .md makes sure you have it on a plane, though you can git clone the wiki too.
... and ... @perlun's followup https://github.com/cefsharp/CefSharp/issues/394#issuecomment-45785794 might work as our change "policy"
Where are Users more likely to go looking for such documentation?
@amaitland anywhere will work - specially if we link to it from high traffic pages like README.md - wiki FAQ and wiki front page - see https://github.com/cefsharp/CefSharp/graphs/traffic