When running a selenium IDE script to autofill a form, I receive the following:
[error] There was an unexpected Alert! [Javascript Error :MY-SUPER-TOP-SECRET-URL line 37 Error: NS_ERROR_XPC_SECURITY_MANAGER_VETO: ]
When I checked line 37, it is a tiny block of code setting a global bool, wrapped in a jQuery click() anon function.
parent.jQuery(parent.document).click(function () {
parent.sharedVars.enableGenderKey = false;
});
I am running jQuery 1.8.3. Any tips? Interestingly, the form DOES fill successfully once, but on attempt 2 and above, it errors.
We traced it down, we believe to bad SSL certs. We couldn't confirm it absolutely, but once the certs got settled, the issue seemed to vanish
I know this is an old post, but I got this error today (jQuery 2.2.3 and Firefox 46.0.1). I had (A) a form post that caused (B) an iframe to load with jQuery code that (C) created elements in the parent of the iframe. Some of these had an anonymous function to handle click events. When clicked, this function caused (D) a form submit, again to the iframe.
The function in (D) worked once, then on the second (and every subsequent) click the above mentioned veto-error occurred. This is a similar setting to what the OP describes: an anonymous jQuery function doing something with a form more than once.
With that theory, I refactored my whole solution to avoid this and got rid of the error.
Here's the workaround that did it in my case: I have a javascript function in the page (outside the iframe) to handle what I want to do.
function myclick(e)
{
if (!$(e.target.hasClass('wantclick'))) return;
actualstuff();
}
I bind onclick='myclick(event);'
to the div where the jQuery code from the iframe places new stuff into. Inside the iframe, I have jQuery do .addClass('wantclick')
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With