Bug 571901

Summary: [Edge] OpenWindowListener cannot control opening new window
Product: [Eclipse Project] Platform Reporter: Nobuhiko Yasunaka <yasunaka>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: digga1404
Version: 4.19   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Bug Depends on:    
Bug Blocks: 575660, 571909, 573985    

Description Nobuhiko Yasunaka CLA 2021-03-11 23:52:41 EST
Using the new WebView2 edge browser, it can not control opening new window when the event.browser is set.

The sample code written in WindowEvent class javadoc shows that when the event.browser is set, it prevent opening new window of native web browser, and the contents of the link will be drawn in the prepared browser by java code.

It works when the link is clicked with CTRL key, or fired from the context menu 'Open in new window', but when clicking <a> tag link with target="_blank", native web browser's window is open.

This behavior can be checked with the Internal Web Browser of Eclipse 4.19RC2 on Windows 10 + WebView2 when clicking the  <a> tag link with target="_blank".