No control over JS opened windows

Having problems with building or using the JCEF Java binding? Ask your questions here.

No control over JS opened windows

Postby edominic » Fri Jun 12, 2015 5:09 am

Hey guys,
I have a problem again and I don't know if it's a bug or missing implementation in JCEF.

If I open a window with Javascript (window.open("http://www.google.com");) then I have no control over this window from JCef. No handler is working with this window.

Is there a solution for it, or do I have to implement sth in cef? I need to get downloadhelper working on this kind of window

Thanks for help :)

regards,
Dominic
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: No control over JS opened windows

Postby edominic » Fri Jun 19, 2015 1:15 am

Still no answer... -.-"

I debugged jcef and I have seen, that OnBeforeDownload will be executed but on this part

Code: Select all
  jobject jcallback  = NewJNIObject(env, "org/cef/callback/CefBeforeDownloadCallback_N");
  if (!jcallback)
    return;


it returns, so it won't pass it to Java. The problem is, if a download-request is send/executed in a java-script window, it won't be passed to Java.
You can try it yourself.

- Open JCef (mac or windows)
- Open DevTools
- Go to Console
- Open a new JavaScript Window:
Code: Select all
open("http://www.google.com");

- navigate to a page where you can dl sth
- when you will start dl, nothing happens
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: No control over JS opened windows

Postby edominic » Mon Jul 13, 2015 12:51 am

Sth I can do, report bug?
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: No control over JS opened windows

Postby magreenblatt » Mon Jul 13, 2015 10:12 am

edominic wrote:Sth I can do, report bug?

Yes, please report a bug.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm



Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 112 guests