Hello,
I develop a dll in c++ which simulate the mouse and keyboard actions
for the web pages.
In many situations its works fine, but there is two situations where it
doesn't work with a mozilla blocking :
- Submiting a form
- clicking on a button
Here there are the crash situations: ( 1/ and 2/ for all form with a
post methode, and for all xul button for the 3/)
1/
nsIDOMHTMLFormElement pFormElement = ....
if(!pFormElement)
return false;
pHtmlFormElement->Submit();
2/
nsIDOMHTMLInputElement pInputElement = ....
if(!pInputElement)
return false;
pInputElement->Click();
3/
nsIDOMXULElement pXulElement = ....
if(!pXulElement)
return false;
pXulElement->Click();
Paradoxically for the checkbox buttons and radio buttons, it work fine
with the same methode. This
nsIDOMHTMLInputElement pcheckboxElement = ....
if(!pcheckboxElement)
return false;
pcheckboxElement->SetCheched(true);
This many situations (xul, form and button) leave me to conclude that
there is a probleme to validate the mozilla web pages. Nevertheless i
try to execute the same code in javascript, and it's works fine in all
cases !
So, is there a bug in the c++ functions to evoke it ?
Thank for your help ! :)
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding