Hi There should be an issue in xwalk about onCreateWindowRequested, and we already have a bug related it. You can track it here: https://crosswalk-project.org/jira/browse/XWALK-7001 Even the description is not the same with you, but we have found the root cause maybe the same. Thanks.
Best Regards ☺ Xiaofeng Zhang From: Michael Goffioul [mailto:[email protected]] Sent: Wednesday, July 27, 2016 8:07 PM To: Zhang, Xiaofeng <[email protected]> Cc: [email protected] Subject: Re: [Crosswalk-help] XWalkUIClient.onCreateWindowRequested() not called for 3-argument version of window.open() At the moment, it doesn't do anything, just print something in the logs, then calls the super implementation: @Override public boolean onCreateWindowRequested(XWalkView view, XWalkUIClient.InitiateBy initiator, ValueCallback<XWalkView> callback) { Log.d(TAG, "onCreateWindowRequested called"); return super.onCreateWindowRequested(view, initiator, callback); } I only see the log entry when window.open() is called with 1 argument. I don't see it when the JS code uses 3 arguments. I'm not saying the number of arguments is the cause, but that's the only difference I can see so far between the 2 web sites. Michael. On Wed, Jul 27, 2016 at 2:34 AM, Zhang, Xiaofeng <[email protected]<mailto:[email protected]>> wrote: Could you share your implementation of onCreateWindowRequested? Best Regards ☺ Xiaofeng Zhang From: Crosswalk-help [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Michael Goffioul Sent: Wednesday, July 27, 2016 12:15 AM To: [email protected]<mailto:[email protected]> Subject: [Crosswalk-help] XWalkUIClient.onCreateWindowRequested() not called for 3-argument version of window.open() Hi, I'm using crosswalk-18. In my app, I've overridden XWalkUIClient.onCreateWindowRequested(). Both settings SUPPORT_MULTIPLE_WINDOWS and JAVASCRIPT_CAN_OPEN_WINDOW are set to true. The problem is that onCreateWindowRequested is not always called. It is called in http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open It is not called in http://www.psiauto.com/is/root/tools_testWinindex.cfm The main difference I can see between these 2 sites is that the former is using 1 argument for window.open, while the latter uses 3 arguments. Is this a know problem? Is there a workaround? Is it fixed in newer versions of crosswalk? Thanks, Michael.
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
