Skip to content

スクリプト実行関連の問題点 #4

Description

@tablacus

問題点:Tablacus Explorer側からJavaScriptのオブジェクトを実行するとエラー

WebView2 クラス (CoreWebView2 クラス) に書いている通り

HRESULT_FROM_WIN32 (ERROR_POSSIBLE_DEADLOCK) で失敗します。

オブジェクトは AddHostObjectToScript で渡せるので、引数はオブジェクトで渡すことにして、ExecuteScriptAsync を実行すればなんとかならないかな。

2020-9-21追記
Blink側で非同期でオブジェクトを受け取ると 返り値は受け取れないが呼び出すことは可能であった。
async await 辺りを使って行くが、IEでエラーを出さないためにはどうすれば……

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions