mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: crash when clicking links with target=_blank from webview (#29951)
Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
10
spec/fixtures/api/native-window-open-noopener.html
vendored
Normal file
10
spec/fixtures/api/native-window-open-noopener.html
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<a href="blank.html" target="_blank">noopener example</a>
|
||||
</body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
window.onload = () => {
|
||||
document.querySelector('a').click()
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user