I see that I didn't refresh the forum thread page before answering and I didn't see your latest changes.
Are you using a library for embedding the browser in a native application?
In this case, we cannot ensure that our javascript library works properly.
May you please provide us with more information on your scenario?