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 { if !*result {
*result = renderProcessMessageReceived(browse, frame, processId, message) *result = renderProcessMessageReceived(browse, frame, processId, message)
} }
frame.Free() //frame.Free()
browse.Free() //browse.Free()
message.Free() message.Free()
default: default:
return false return false

View File

@ -86,8 +86,8 @@ func init() {
if !*result { if !*result {
*result = browserProcessMessageReceived(browse, frame, processId, message) *result = browserProcessMessageReceived(browse, frame, processId, message)
} }
frame.Free() //frame.Free()
browse.Free() //browse.Free()
message.Free() message.Free()
case ChromiumEventOnResourceLoadComplete: case ChromiumEventOnResourceLoadComplete:
sender, browse, frame, request, response := resourceEventGet(fn, getVal, true) 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() { function testGoEmit() {
ipc.emit("testGoEmit"); ipc.emit("testGoEmit");
} }
@ -170,6 +181,7 @@
<button onclick="testResultArgs()">testResultArgs</button> <button onclick="testResultArgs()">testResultArgs</button>
<br> <br>
<button onclick="testGoEmit()">testGoEmit</button> <button onclick="testGoEmit()">testGoEmit</button>
<button onclick="autotestGoEmit()">自动testGoEmit</button>
<br> <br>
<button onclick="bindFunc()">bindFunc</button> <button onclick="bindFunc()">bindFunc</button>
<button onclick="bindField()">bindField</button> <button onclick="bindField()">bindField</button>