You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. On firefox 50, with this little page, i have, on console, the message "SecurityError: The operation is insecure." It appears only on firefox, with the an AMD process and the option "async". Like this :
Hello. On firefox 50, with this little page, i have, on console, the message "SecurityError: The operation is insecure." It appears only on firefox, with the an AMD process and the option "async". Like this :
<!DOCTYPE html> < html> < head> <title>test xstyle</title> </ head> < body> < p>Please wait...</p> < script type="text/javascript"> var dojoConfig = { async : true, deps: ['xstyle/main'] }; < /script> < script type="text/javascript" src="dojo/dojo.js"></script> < /body> < /html>
The solution is to modify the "main.js" :
line 31
var needsParsing = sheet.needsParsing, cssRules = sheet.rules || sheet.cssRules;
=>
var needsParsing = sheet.needsParsing, cssRules; try { cssRules = sheet.rules || sheet.cssRules; } catch(e) { if(e.name !== 'SecurityError') throw e; return; };
The text was updated successfully, but these errors were encountered: