upgrade-dev v2.3.4

This commit is contained in:
杨红岩 2023-03-14 20:24:08 +08:00
parent bebc4385c0
commit c007b878b5
3 changed files with 16 additions and 4 deletions

View File

@ -353,8 +353,8 @@ func init() {
if !*result {
*result = renderProcessMessageReceived(browse, frame, processId, message)
}
frame.Free()
browse.Free()
//frame.Free()
//browse.Free()
message.Free()
default:
return false

View File

@ -86,8 +86,8 @@ func init() {
if !*result {
*result = browserProcessMessageReceived(browse, frame, processId, message)
}
frame.Free()
browse.Free()
//frame.Free()
//browse.Free()
message.Free()
case ChromiumEventOnResourceLoadComplete:
sender, browse, frame, request, response := resourceEventGet(fn, getVal, true)

View File

@ -139,6 +139,17 @@
});
let tgesi = null
function autotestGoEmit() {
if (tgesi != null) {
clearInterval(tgesi)
tgesi = null
return
}
tgesi = setInterval(testGoEmit, 1)
}
function testGoEmit() {
ipc.emit("testGoEmit");
}
@ -170,6 +181,7 @@
<button onclick="testResultArgs()">testResultArgs</button>
<br>
<button onclick="testGoEmit()">testGoEmit</button>
<button onclick="autotestGoEmit()">自动testGoEmit</button>
<br>
<button onclick="bindFunc()">bindFunc</button>
<button onclick="bindField()">bindField</button>