-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edge: Disable internal status bar on the bottom left when hovering link and send out StatusTextEvents instead (like other SWT browser impls) #1408
Comments
Both options sound good to me. I would be in favor of option 2, as it might be good to still have the chance to enable the bar. Two thoughts on that:
|
Good idea!
I was wondering the same and also whether the naming scheme with |
I think this must be something public available on all OSes otherwise it is to cumbersome to use (e.g. I can't reference it but need to copy the string constant or even need platform dependent compile and so on). The usual pattern here is to mention in the documentation that it is a only a hint and not supported on all platforms. That way one can express the intend to enable/disable a feature in a platform independent way. |
My proposal for now is this: If https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_12 API (handling of status bar) is available:
We do not add new API for now to enable the internal status bar. Maybe we can do so in the future and then also check whether this is possible for Safari / WebKit as well. I'll provide a PR. Any objections? |
Fully agree with the proposed change as well aswith the proposal to extend API for enabling internal status bar only on explicit demand. |
Edge - by default - shows a status bar when hovering a link:
All the other browser implementations (WebKit, IE) do not.
For an embedded use-case in RCP applications showing such a status bar is typically not desired.
The internal WebView2 API is already there:
org.eclipse.swt.internal.ole.win32.ICoreWebView2Settings.put_IsStatusBarEnabled(boolean)
, butEdge
implementation to switch it off by defaultBrowser
API to toggle itI see two options:
Widget#setData(String, String)
, similar to https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=2349244f390a9927eab593ddc499b71cb3f0a70b, to avoid having to add actual new Java API:Option 1 would be trivial.
Option 2 not so hard either:
What do you think?
The text was updated successfully, but these errors were encountered: