mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[remote-driver] JCef support: do not use runBlockingCancelable
GitOrigin-RevId: 92ac3fc289e719287edb133cdaae845b7b025ce0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
19988eb864
commit
f91ae1ad6d
+2
-2
@@ -1,6 +1,5 @@
|
||||
package com.jetbrains.performancePlugin.remotedriver.jcef
|
||||
|
||||
import com.intellij.openapi.progress.runBlockingCancellable
|
||||
import com.intellij.ui.jcef.JBCefBrowserBase
|
||||
import com.intellij.ui.jcef.JBCefJSQuery
|
||||
import kotlinx.coroutines.*
|
||||
@@ -29,7 +28,8 @@ internal class JcefComponentWrapper(private val component: Component) {
|
||||
* @return the result of the JavaScript code execution
|
||||
* @throws IllegalStateException if no result is received from the script within the specified timeout
|
||||
*/
|
||||
fun callJs(js: String, executeTimeoutMs: Long): String = runBlockingCancellable { jsExecutor.callJs(js, executeTimeoutMs) }
|
||||
@Suppress("SSBasedInspection")
|
||||
fun callJs(js: String, executeTimeoutMs: Long): String = runBlocking { jsExecutor.callJs(js, executeTimeoutMs) }
|
||||
|
||||
/**
|
||||
* Finds the JBCefBrowserBase component associated with the given component.
|
||||
|
||||
Reference in New Issue
Block a user