Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NS_ERROR_XPC_SECURITY_MANAGER_VETO Error In FF 30.0 Using Selenium IDE 2.5.0 To Populate Page

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.

like image 660
cdaringe Avatar asked Jul 01 '14 00:07

cdaringe


2 Answers

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

like image 156
cdaringe Avatar answered Oct 17 '22 06:10

cdaringe


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').

like image 42
gonesoft Avatar answered Oct 17 '22 04:10

gonesoft