From f91ae1ad6db2cb33db1bececf9b7b13615567818 Mon Sep 17 00:00:00 2001 From: "eugene.nizienko" Date: Fri, 1 Mar 2024 12:13:21 +0100 Subject: [PATCH] [remote-driver] JCef support: do not use runBlockingCancelable GitOrigin-RevId: 92ac3fc289e719287edb133cdaae845b7b025ce0 --- .../remotedriver/jcef/JcefComponentWrapper.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/performanceTesting/remote-driver/src/com/jetbrains/performancePlugin/remotedriver/jcef/JcefComponentWrapper.kt b/plugins/performanceTesting/remote-driver/src/com/jetbrains/performancePlugin/remotedriver/jcef/JcefComponentWrapper.kt index 14199fca1354..9077e0bd9083 100644 --- a/plugins/performanceTesting/remote-driver/src/com/jetbrains/performancePlugin/remotedriver/jcef/JcefComponentWrapper.kt +++ b/plugins/performanceTesting/remote-driver/src/com/jetbrains/performancePlugin/remotedriver/jcef/JcefComponentWrapper.kt @@ -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.