simsalabim/sisyphus — Issue #14: javascript error in firefox 8-9. security issue
Author: woodspire
Created: 2011-12-20 16:08:08+00:00
State: open

I was getting this error; only in firefox (tested version 8 & 9).

chrome, opera. no problem.

Error: uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "jquery.min.js Line: 2"]

I loaded the un-minified jquery, and the error was on line 2365 (jquery 1.7.1). inside the each()

and the error was caused by this line:

$('form').sisyphus();

I had 4 forms on my webpage, and the 4th one had a field.

That was why there was an error.

Simple fix: add .not( ":file") where you have added .not( ":submit")
(4 places I think).

I think in this case firefox is right. Getting the value of a file upload field and storing it in local Storage might be a security issue. Same kind as ajaxing url css :visited value to know which website a user had visited.

I wonder what chrome and opera return when we read this field and we selected a file to upload ? (always blank ?)