test: remove usage of 'remote' module from webview spec (#20048)

This commit is contained in:
Jeremy Apthorp 2019-09-03 10:10:58 -07:00 committed by GitHub
parent cad73732c0
commit 96c3fec855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 567 additions and 508 deletions

View file

@ -1,6 +1,6 @@
<html>
<body>
<webview nodeintegration src="zoom://host1" id="view" partition="webview-temp"/>
<webview nodeintegration src="app://host1" id="view" partition="webview-temp"/>
</body>
<script>
const {ipcRenderer, webFrame} = require('electron')
@ -14,7 +14,7 @@
const zoomFactor = view.getZoomFactor()
ipcRenderer.send('webview-zoom-level', zoomLevel, zoomFactor, view.canGoBack(), finalNavigation)
if (!view.canGoBack() && !finalNavigation) {
view.src = 'zoom://host2'
view.src = 'app://host2'
} else if (!finalNavigation) {
finalNavigation = true
view.goBack()