fix: webview crash when removing in close event (#38996)
This commit is contained in:
parent
5a77c75753
commit
c7a64ab994
4 changed files with 83 additions and 1 deletions
19
spec/fixtures/crash-cases/webview-remove-on-wc-close/webview.html
vendored
Normal file
19
spec/fixtures/crash-cases/webview-remove-on-wc-close/webview.html
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>webview page</h1>
|
||||
<script>
|
||||
window.addEventListener('beforeunload', event => {
|
||||
event.returnValue = 'test'
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue