-
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] Browser with SWT.EDGE returns blank image when using print() #373
Comments
it would be helpful if you provide complete standalone program to reproduce the issue |
I've edited Snippet 292 (take a snapshot of a control) to add an IE browser (SWT.NONE) and an Edge browser (SWT.EDGE) to show the difference in control.print behavior. I just tested it on swt 4.28, Windows 11, Edge installed, Temurin-17.0.2+8 and the print control section for the Edge browser is a black box. Hope this helps!
|
@codegoddesskh This is the environment i have tried on |
This is also a problem for me... In my case I've been using the following code
to capture the browser display, which my code then reduces in size to make a kind of thumbnail. This works properly with "browser = new Browser(shell, SWT.NONE);" but returns an empty, white, area with "browser = new Browser(shell, SWT.EDGE);". I have some basic code (based on Snippet 128) which demonstrates the problem. My application cannot use SWT.NONE since IE doesn't work properly displaying many of web sites to which the app is directed. Any hints for a workaround? |
@johnBradley501 |
Here is my modified Snippet 128. switch "//" comment between line 65 and 66 to see what happens with SWT.EDGE and SWT.NONE. With NONE the screen is successfully captured and stored to a file, with EDGE it is not. To run this, you'll need to fix the file path in line 141. package org.eclipse.swt.snippets; import org.eclipse.swt.SWT; public class Snippet128JB {
} |
Describe the bug
In our app, we have the functionality of printing images from an internal browser window. We previously used Internet Explorer as an internal browser but we changed it to Edge by default for Windows systems. Previously this functionality correctly created the image of browser composite, but it doesn't work for Edge.
To Reproduce
Expected behavior
Correct image with browser content shown on it.
Environment:
Windows 10, Edge installed
java.vendor.version=Temurin-11.0.15+10
java.version=11.0.15
found on:
org.eclipse.swt.browser.EdgeVersion=105.0.1343.27
Workaround (or) Additional context
Probably screenshots can be done via browser functionality. But I was not able to do that.
The text was updated successfully, but these errors were encountered: