-
Notifications
You must be signed in to change notification settings - Fork 92
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
JDT tooltips are blank when MS Edge browser is used in Eclipse using "-Dorg.eclipse.swt.browser.DefaultType=edge" #248
Comments
@niraj-modi Can you please provide your feedback here? |
What kind of feedback would you like? Same problem as issue #198. |
Hi, this appears to be an SWT issue. I have opened: eclipse-platform/eclipse.platform.swt#398 and copied your info. Please track that issue and if requested, provide further details. |
Closing as issue being addressed in SWT. |
This is not an SWT issue. The behavior of the Edge browser is different than IE in the sense that whenever setText is called on the browser, A location change is issued with a URL using the data: protocol that contains the Base64 encoded version of the text. The following exception is happening because the URL is not recognized in the JavaElementLinks location listener. Because the URL parsing fails, the listener tries to invoke a hyperlink handler and sets doit to false. Change the code on line 314 to something like the following fixes the issue:
Here is the exception. java.net.MalformedURLException: unknown protocol: data |
Should the check for "data:" be instead added to the lines on 258 so if we recognize "data:" in addition to "about:blank" we call handler.handleTextSet()? |
I suspect you are right. handler.handleTextSet() should probably be called in this case. |
- add check for URL starting with "data:" which occurs when setText is called on Edge browser and use handler.handleTextSet() - fixes: eclipse-jdt#248
@mfvalenta I have posted a PR. Could you verify this works as I don't have access to a Windows machine to test this properly? |
@jjohnstn The patch works for me. |
- add check for URL starting with "data:" which occurs when setText is called on Edge browser and use handler.handleTextSet() - fixes: #248
Thanks @mfvalenta I have merged the patch. |
…ipse-jdt#306) - add check for URL starting with "data:" which occurs when setText is called on Edge browser and use handler.handleTextSet() - fixes: eclipse-jdt#248
* Add check for Edge browser setText issuing a location change url (#306) - add check for URL starting with "data:" which occurs when setText is called on Edge browser and use handler.handleTextSet() - fixes: #248 * Increase plugin version Signed-off-by: Kalyan Prasad Tatavarthi <[email protected]> Signed-off-by: Kalyan Prasad Tatavarthi <[email protected]> Co-authored-by: Jeff Johnston <[email protected]>
The changes have been back-ported to the branch R4_23_maintenance |
If running Eclipse with
-Dorg.eclipse.swt.browser.DefaultType=edge
under e.g. Windows 11 or 10, the tooltips shown by JDT in for example Java editors are empty. This is probably due to SWT issues with theBrowser
component being MS Edge and not MS Internet Explorer (or MS Edge in MSIE compatibility mode on Windows 11).Eclipse 2022-09 RC1 under Windows 11
Below, you will see the tooltip on a boolean variable:
If
-Dorg.eclipse.swt.browser.DefaultType=edge
is not specified, it works, both in Windows 10 and 11:The text was updated successfully, but these errors were encountered: