Opened 12 years ago

Closed 11 years ago

#10563 closed Bug (wontfix)

CKeditor 4.1.2: Access denied error in IE7

Reported by: Cédric Delécluse Owned by:
Priority: Normal Milestone:
Component: General Version: 4.1.2
Keywords: IE7 Cc:

Description

Hello,

In my site I have this code in the page's header:

<script type="text/javascript">
   document.domain = mysite.com
</script>

I have a "Access denied" error with IE7 even if I add this line :

CKEDITOR.tools.fixDomain(true);

before :

CKEDITOR.replace(
        'detail',
        {
            width: '430px',
            height:'200px',	
        }
    );

To correct the problem I forced the domain in all cases. In core/tools.js, function fixDomain() I have added:

try {
   // Try to access the parent document. It throws
   // "access denied" if restricted by the "Same Origin" policy.
   domain = window.parent.document.domain;
   
   // Here I force the domain
   document.domain = domain;
   break;
} catch ( e ) {
...

And now it's ok for me, I don't have "Access denied".

Change History (3)

comment:1 Changed 12 years ago by Jakub Ś

Hi,

Sorry for late reply. I didn't check this problem and I'm getting it in quite weird case (at least for me weird).

Before i start making mess by adding comments - @clusserman could you describe exactly what issue you are having?. I would like to know how what domain (perhaps few domains) have you set for your application. What do you set in document.domain property and what have you got in browser URL bar?

Version 0, edited 12 years ago by Jakub Ś (next)

comment:2 Changed 12 years ago by Jakub Ś

Keywords: IE7 added
Status: newconfirmed

comment:3 Changed 11 years ago by Jakub Ś

Resolution: wontfix
Status: confirmedclosed

We have dropped support for IE7 so I'm closing this ticket.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy