c# - Windows 窗体关闭时出现 “Unresponsive Script"

标签 c# xulrunner

我正在使用 C# .Net Windows 应用程序。在这里,我使用了来自 bitbucket 的 xulrunner 22.0 + Geckofx 22.0。

我已经使用 Geckofx 浏览器在我的应用程序中显示 flash 内容。

每当我关闭窗体时,我都会收到一条消息

"Unresponsive Script"

'A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.'

有什么想法吗?

最佳答案

尝试使用 GeckoPreference 将 dom.max_script_run_time 设置为大于默认值或设置为 0 以禁用它。

GeckoPreferences.User["dom.max_script_run_time"] = 0;

确保在调用 Xpcom.Initialize 之后执行此操作。

关于c# - Windows 窗体关闭时出现 “Unresponsive Script",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18800105/

相关文章:

javascript - 如何将百分比分配给 CSSStyleDeclaration 的属性

java - 如何使用 SWT 应用程序发送 XulRunner?

Java SWT 浏览器 xulrunner 崩溃 Java VM

C# 迭代泛型对象

c# - 在共享大小组旁边为网格列提供最小宽度

c# - Sublime Text 2 控制台

javascript - 当工作站被锁定时收到通知

c# - 加解密出错,找不到异常原因

c# - 投影到复杂类型时无效的初始值设定项成员声明符