Bug 571901 - [Edge] OpenWindowListener cannot control opening new window
Summary: [Edge] OpenWindowListener cannot control opening new window
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.19   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 575660 571909 573985
  Show dependency tree
 
Reported: 2021-03-11 23:52 EST by Nobuhiko Yasunaka CLA
Modified: 2021-08-27 04:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".