Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Error: Permission denied to access object

  • Akukho zimpendulo
  • 1 inale nkinga
  • 2 views
more options

Please can anybody tell me why I'm getting an error message “Intermittently”



"Error: Permission denied to access object"

Here is the html structure



<iframe src="’A’"><br/> <iframe src=”B”><br/> <iframe src=”C”><br/> <iframe src=”D”><br/> "<image src=”someSrc”>"<br/> //-- written as image to bypass html rendering -- </iframe>




When the image inside iframe D loads , it notifies iframe C about it using a postmessage.
The code for the postmessage is as follows:

P.Gadget.Container.prototype.fireMessage = function (a, b) {
P.logger.log('Container - Sending to hosted content - ' + b.action),
P.logger.log(b),
(P.utils.browser.msie || P.utils.browser.moz) && (b = JSON.stringify(b)),
a.contentWindow.postMessage(b, '*')
},



Whenver the listener to this postmessage tries to access "b" . An error is thrown stating
“Error: Permission denied to access object”

Note: A,B,C,D are relative sources from same domain.
This problem doesn't occur with any other browsers but in mozilla.

Please can anybody tell me why I'm getting an error message “Intermittently” <br/><br/> "Error: Permission denied to access object" <br/><br/> Here is the html structure <br/><br/> <code> <pre> <html> <body> <br/><br/> <iframe src=’A’><br/> <iframe src=”B”><br/> <iframe src=”C”><br/> <iframe src=”D”><br/> "<image src=”someSrc”>"<br/> //-- written as image to bypass html rendering -- </iframe><br/> </iframe><br/> </iframe><br/> </iframe><br/> </pre> </code> <br/> When the image inside iframe D loads , it notifies iframe C about it using a postmessage. <br/> The code for the postmessage is as follows: <br/> <br/> <code> P.Gadget.Container.prototype.fireMessage = function (a, b) { <br/> P.logger.log('Container - Sending to hosted content - ' + b.action), <br/> P.logger.log(b), <br/> (P.utils.browser.msie || P.utils.browser.moz) && (b = JSON.stringify(b)), <br/> a.contentWindow.postMessage(b, '*') <br/> }, <br/> <br/> </code> <br/> <br/> Whenver the listener to this postmessage tries to access "b" . An error is thrown stating <br/> “Error: Permission denied to access object” <br/> <br/> Note: A,B,C,D are relative sources from same domain. <br/> This problem doesn't occur with any other browsers but in mozilla.

Okulungisiwe ngu tirthapriya.banerjee