开发者

Can't execute javascript from com.ibm.rcp.browser.service.WebBrowser on Mac. It works on Windows and Linux

开发者 https://www.devze.com 2023-03-12 21:31 出处:网络
I used WebBrowser.XULRUNNER_SERVICE to construct an instance of com.ibm.rcp.browser.service.WebBrowser.
  1. I used WebBrowser.XULRUNNER_SERVICE to construct an instance of com.ibm.rcp.browser.service.WebBrowser.

  2. I have a piece of javascript code that I need to call the webBrowser's execute() method webBrowser.execute(test);

  3. It works fine on both Windows and Linux, and the webBrowser.execute(test); returns true.

  4. It does not work on Mac at all. webBrowser.execute开发者_开发知识库(test); returns false.

  5. I put in a simple alert message right at the first of the javascript code. String e0 = new String("alert(\'step 0 \');" + "\n"); I can see this alert box on Windows and Linux, but I don't see that on Mac.

Is this a known Mozilla bug?

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消