In firefox, i am trying to open ckfinder in popup or iframe but its giving me following error
ckfinder_gecko.js (line 36)
Permission denied to get property Window.ShowFileInfo
gE()ckfinder_gecko.js (line 48)
du(Object DOMDocument=document)ckfinder_gecko.js (line 48)
gZ()()ckfinder_gecko.js (line 36)
[Break on this error] var ab={aN:[],eo:'',bW:'i1l1',Init:funct...dI=D['SetUrl'];}else A=null;};ab.dS=A;};
In IE, its working find in popup but in iframe i am getting same error "Permission Denied"
ckfinder_gecko.js (line 36)
Permission denied to get property Window.ShowFileInfo
gE()ckfinder_gecko.js (line 48)
du(Object DOMDocument=document)ckfinder_gecko.js (line 48)
gZ()()ckfinder_gecko.js (line 36)
[Break on this error] var ab={aN:[],eo:'',bW:'i1l1',Init:funct...dI=D['SetUrl'];}else A=null;};ab.dS=A;};
In IE, its working find in popup but in iframe i am getting same error "Permission Denied"
Re: CkFinder in popup or iframe: Permission Denied Error
A webpage can't access code from another webpage which is on a different domain.
Maybe it's same problem.
Did you ever find a solution
Did you ever find a solution for this? We're using CKEditor v3.6.2 along w/ the framework Ext JS in a modal popup we invoke using showModalDialog(). In IE, we'd get Permission Denied error when Ext JS garbage collects an element inside the editor iframe.
I looked at the domains and locations of the main page vs the iframe, and the only difference is the port # (image attached). It seems IE automatically adds port # when we use showModalDialog(), and it has a strict same-origin policy, so we think that's the cause for the error.
Tried changing location.port in the main page, but it can’t be removed (tried document.location.port = null, document.location.port = ‘’, delete document.location.port; none of them worked). Also there doesn’t seem to be a way to change the port in the ckeditor iframe, at least I haven’t seen.
Also tried set the main document and iframe document to have the same domain. But the ckeditor iframe is srcless, so setting the main document domain triggers “Access denied” error instead.
Perhaps I'm missing something, so I'd really appreciate any comments or insight into this problem.
Update: Looks like this might not be a port problem. I just tried pasting the webpage url into a tab in IE to skip showModalDialog(), and still get Permission Denied when Ext JS garbage collects an element inside editor iframe. The port # is the same now in main doc and editor doc.
Attachments:
We found the cause for the
We found the cause for the problem. IE invalidates elements removed from the ckeditor iframe, and access to those, e.g. by Ext garbage collector, causes "Permission denied". I found the comment by dmethvin in this post helpful for my case: http://bugs.jquery.com/ticket/4280 The solution is to avoid accessing removed elements in the iframe.