executeJavascript not executing in context of parent window

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

executeJavascript not executing in context of parent window

Postby piyush » Tue Nov 24, 2015 12:53 am

I am running a web application with JCEF integrated through eclipse SWT.

From client(chromium browser instance) side, I have few javascript functions attached to window namespace as part of scripts loaded into my webapp.
As part of one of the flows,
client posts a well formed query(json string) through winow.cefQuery, Which Java part of the app listens through cefQueryListner. After processing the query, java part of the app executes javascript(functions attached to window namespace of webapp) using executeJavascript API of JCEF.

This works fine when client side query is initiated from parent window.

If I have an iFrame inside my webapp on the client side and cefQuery is initiated from client, after processing the query, when executeJavaScript tries to execute the functions attached to window, those are not defined anymore.
My suspicion is , somehow executeJavaScript is not being executed in correct window context.

CEF Version: 3.1750.1738
CEF URL: http://chromiumembedded.googlecode.com/ ... /cef3@1738

Chromium Verison: 33.0.1750.170
Chromium URL: http://chromiumembedded.googlecode.com/ ... /cef3@1738
piyush
Newbie
 
Posts: 3
Joined: Mon Nov 23, 2015 10:41 am

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 41 guests