Replies: 10 comments 2 replies
-
By inconsistent I assume you mean it performs the native action rather than (what it sounds like you want) of not doing anything. You say OnKeyEvent / OnPreKeyEvent you are returning false but if you want to be fake 'handling' them you would want true: as for why 128 breaks things? That is when the alloy boostrap was first removed this was an upstream change likely this is the cause. |
Beta Was this translation helpful? Give feedback.
-
@mitchcapper So is there any solution now that will work the same way as the alloy boostrap? such as password manager won't be displayed when we entered a password |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@mitchcapper Hi Mitch, I have implemented the solutions you suggested. However, it seems that |
Beta Was this translation helpful? Give feedback.
-
I dont think the window styling is deprecated but assuming you are using WPF and not WPF.HwndHost then it currently always is alloy style: CefSharp/CefSharp/IWindowInfo.cs Lines 75 to 77 in 2ebad4d I don't know what code you did to try above. Using when creating the browser doesn't quite work as I expected. Once the window is fully loaded if I do: |
Beta Was this translation helpful? Give feedback.
-
Hi @mitchcapper , since upgrading to v128.4.90 makes some Chrome behaviors show up, can I find what prefs and command lines Alloy Bootstrap used to set some where? I want to make all behaviors(not UI styles, just functionalities like password manage) same as Alloy Bootstrap ones. I searched but not find what Allow Bootstrap does about the pref and commands, could you offer some help on it? |
Beta Was this translation helpful? Give feedback.
-
I should mention above I only tested on 130 as well so I don't know for 128 if it all works as expected.
It doesn't work like that. Under the covers CEF had a massive switch from the aging and limited alloy bootstrap runtime to the chromium bootstrap runtime. Essentially this is building CEF on top of a higher level of chromium bringing a massive slew of features that CEF could never do, and handed of many things that CEF had to essentially re-implement. It isn't that CEF was turning off the password manager before, it is that CEF was much lower so the password manager code did not exist. Think of it like a car and before CEF was directly on top of an engine. You didn't need to disable the radio or say remove the windows in the passenger car doors as you were from-scratch on top of the engine. This also means if you wanted an infotainment system for your car you basically had to build it from scratch. Now with the Chrome runtime essentially CEF is taking an entire car and modding it from there to allow the same low level control but still have the capability of all those high level chromium features. The car comes with many bells and whistles we may not want though so we need to disable them to get something similar to the bare bones base from before. There are many things one would need to tweak to get it to be as limited as the old CEF, and I don't think anyone has a list of prefs to help do that. Your choice is limited. Stick with an older version that will never update or accept their runtime change and change the prefs to function as you like. |
Beta Was this translation helpful? Give feedback.
-
@mitchcapper Great answer, thanks a lot. By the way Thanks for you clarification, we'll choose one from the limited choice. |
Beta Was this translation helpful? Give feedback.
-
Converting to discussion as this isn't a bug.
The
@mitchcapper Excellent description! I'll be sure to reference this 😄
I've seen a couple of discussions regarding this which might provide helpful. I haven't tested these yet. https://www.magpcss.org/ceforum/viewtopic.php?f=6&t=19898&start=10#p55835 #4991 will track adding |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
CefSharp Version
128.4.90
Operating System
Windows 10
Architecture
x64
.Net Version
.Net4.8
Implementation
WPF
Reproduction Steps
We implemented the IKeyboardHandler interface, where its methods (OnKeyEvent and OnPreKeyEvent) consistently return false and press any shortcut keys like ctrl+s
Expected behavior
In version 127.3.50, regardless of the shortcut keys pressed, they do not function as intended.
Actual behavior
After upgrading to version 128.4.90, all shortcut keys operate correctly.
Regression?
No response
Known Workarounds
No response
Does this problem also occur in the CEF Sample Application
Yes using WPF/OffScreen command line args
Other information
We are interested in understanding why the behavior has changed and What modifications do we need to make in the code to ensure it functions as it did previously?
Beta Was this translation helpful? Give feedback.
All reactions