MozillaZine

The operation is insecure

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
internetique
 
Posts: 50
Joined: August 20th, 2005, 6:40 pm

Post Posted November 11th, 2014, 9:27 am

Hi,

I'm a developer in Web applications.
Since I implemented a Javascript error log, I'm getting errors like "The operation is insecure" on this instruction:
[code]else if (styleSheet.cssRules) return styleSheet.cssRules;[/code]
As far as I can see in the Web, this error is nornaly fired when the style sheet comes fron anoter domain, bu I can guaranty it is not the case.
Is it possible that this error can occur in the same domain due to some settings in the visitor's browser?

LoudNoise
New Member

User avatar
 
Posts: 40048
Joined: October 18th, 2007, 1:45 pm
Location: Next door to the west

Post Posted November 11th, 2014, 10:00 am

Moving to Web Development.
Post wrangler
"Choose between the Food Select Feature or other Functions. If no food or function is chosen, Toast is the default."

jscher2000

User avatar
 
Posts: 10761
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted November 14th, 2014, 4:50 pm

Can you post a link to a test case which generates the error when you know it should not occur?

internetique
 
Posts: 50
Joined: August 20th, 2005, 6:40 pm

Post Posted November 14th, 2014, 4:57 pm

>>Can you post a link to a test case which generates the error when you know it should not occur?

Sorry, I can't reproduce the case in a test.
The error occurs from time to time in the script that manages the menu bar, but it never happened to me.

Many sites, for instance :
http://www.aqpf.qc.ca/
http://www.agpq.ca/
http://www.addiroum.org/
The error occurs from time to time in the script that create the bar menu.

jscher2000

User avatar
 
Posts: 10761
Joined: December 19th, 2004, 12:26 am
Location: Silicon Valley, CA USA

Post Posted November 14th, 2014, 5:14 pm

Okay, that's difficult to investigate.

Some users have noticed that when using recent versions of Firefox, they may get a mixed content warning in the address bar (gray exclamation triangle instead of a gray padlock) when using the Back button that did not appear for the page on first viewing, and that it vanishes when you reload the page. "Something" seems to be wrong with the cache (probably the fast back-forward cache) in those cases.

Perhaps some cache issue could explain the intermittent nature of this problem?

internetique
 
Posts: 50
Joined: August 20th, 2005, 6:40 pm

Post Posted November 15th, 2014, 10:17 am

>>Perhaps some cache issue could explain the intermittent nature of this problem?

Yes, perhaps.
Anyway, the cache has always been buggy, even with Explorer and all other browser: they do not check the date correctly of the javascript file on the server.
I had to implement a workorund on the server to insert a date/time stamp in the name of the file to make sure that the last version is effectively read.

Return to Web Development / Standards Evangelism


Who is online

Users browsing this forum: No registered users and 1 guest