Summary: | [Win32][Edge] Failed to evaluate javascript expression [WebView2: deadlock detected] | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Serhiy Davydiuk <s.davyduik> | ||||
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | CC: | kelly, nikita, niraj.modi, OSKozlov | ||||
Version: | 4.21 | ||||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Windows 10 | ||||||
Whiteboard: | |||||||
Bug Depends on: | |||||||
Bug Blocks: | 575660, 573985 | ||||||
Attachments: |
|
Description
Serhiy Davydiuk
2021-07-02 13:46:02 EDT
Please check fixed code in attachments Created attachment 286719 [details]
Example
Not reproducible using WebView 120.0.2210.144, can be closed My bad, still reproducible with example (eclipse platform 4-27, WebView2 120.0.2210.144) public class WebView2DeadLock { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FillLayout()); shell.setText("WebView2DeadLock"); final Browser browser = new Browser(shell, SWT.EDGE); shell.open(); browser.setText("<!DOCTYPE html><html><body>" + "<p>Click the button to open a new browser window.</p>" + "<a href=\"http://eclipse.org\">Try it</a>" + "</body></html>"); browser.addLocationListener(LocationListener.changingAdapter(e -> { if (!e.location.contains("eclipse.org")) return; Shell sh = new Shell(e.display); sh.setLayout(new FillLayout()); Browser br = new Browser(sh, SWT.EDGE); try { br.setUrl(new URL(e.location).toExternalForm()); } catch (MalformedURLException ex) { } e.doit = false; })); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } |