OnJSBinding handler executed twice per page

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

OnJSBinding handler executed twice per page

Postby fddima » Wed Sep 28, 2011 3:25 pm

Currently OnJSBinding handler executed twice per page, it happens 'cause it executed from didClearWindowObject. As i understood that didClearWindowObject used to prepare window object and clear window object when page is unloaded, or something else. In fact it executed in this order:
OnJSBinding
OnLoadStart
OnJSBinding
...look as html parser works...
OnLoadEnd

but second page load (navigating by url, etc...) have little other order:

OnLoadStart
OnJSBinding
OnJSBinding
...look as html parser works...
OnLoadEnd

there is not too big problem, 'cause we have not many exported objects, but in any way we create two instances of all objects, wrappers, wrappers per each function, etc...
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: OnJSBinding handler executed twice per page

Postby emerick » Fri Sep 30, 2011 6:43 pm

I noticed this as well; meant to mention it, but it slipped my mind.

Emerick
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA

Re: OnJSBinding handler executed twice per page

Postby magreenblatt » Sat Oct 01, 2011 3:31 am

fddima: Please create an issue for this in the issue tracker.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: OnJSBinding handler executed twice per page

Postby fddima » Sat Oct 01, 2011 3:57 am

magreenblatt wrote:fddima: Please create an issue for this in the issue tracker.

Done. http://code.google.com/p/chromiumembedd ... ail?id=359
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am


Return to CEF Discussion

Who is online

Users browsing this forum: Majestic-12 [Bot] and 129 guests

cron