chore: address TODO for WebContents.prototype.setSize / reportRemovedAttribute removal (#14517)
* chore: remove WebContents.prototype.setSize * chore: remove reportRemovedAttribute * chore: remove unused fixtures
This commit is contained in:
parent
f5aac36421
commit
38419e3a6a
4 changed files with 0 additions and 71 deletions
17
spec/fixtures/pages/webview-move-to-window.html
vendored
17
spec/fixtures/pages/webview-move-to-window.html
vendored
|
@ -1,17 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
var ipcRenderer = require('electron').ipcRenderer
|
||||
|
||||
ipcRenderer.on('guestinstance', function(event, instance) {
|
||||
var webview = new WebView()
|
||||
webview.setAttribute('guestinstance', instance)
|
||||
document.body.appendChild(webview)
|
||||
|
||||
webview.addEventListener('did-attach', function (){
|
||||
ipcRenderer.send('pong')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
23
spec/fixtures/pages/webview-no-guest-resize.html
vendored
23
spec/fixtures/pages/webview-no-guest-resize.html
vendored
|
@ -1,23 +0,0 @@
|
|||
<html>
|
||||
<style>
|
||||
* {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<webview id="webview" nodeintegration disableguestresize src="resize.html"/>
|
||||
</body>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
const {ipcRenderer} = require('electron')
|
||||
|
||||
const webview = document.getElementById('webview')
|
||||
webview.addEventListener('did-finish-load', () => {
|
||||
ipcRenderer.send('webview-loaded')
|
||||
}, {once: true})
|
||||
webview.addEventListener('resize', event => {
|
||||
ipcRenderer.send('webview-element-resize', event.newWidth, event.newHeight)
|
||||
}, false)
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue