Opened 8 years ago

Closed 8 years ago

#16926 closed Bug (duplicate)

[IE11] Permission denied when setData called more than once in a row.

Reported by: kkrzton Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Steps to reproduce

  1. Go to http://sdk.ckeditor.com/samples/basicpreset.html.
  2. In a console run:
setTimeout( function() { CKEDITOR.instances.editor1.setData( '<p>Text...</p>' );CKEDITOR.instances.editor1.setData( '<p>Text...</p>' ); }, 0 );

Expected result

Data is set and no error is thrown.

Actual result

Error is thrown (after second setData call is executed). In the SDK sample the correct line for error is not reported. The same issue can be reproduced on ckeditor-dev/samples/index.html and the error is

SCRIPT70: Permission denied
File: node.js, Line: 338, Column: 3

Other details (browser, OS, CKEditor version, installed plugins)

This does not happen for inline editor, so it might be connected to iframe. I am still looking into it as it seems there are few paths causing the error to be thrown. When there is no setTimeout the error is also thrown but IE does not reports any details...

Change History (3)

comment:1 Changed 8 years ago by kkrzton

Status: newconfirmed

comment:2 Changed 8 years ago by kkrzton

Status: confirmedpending

The second scenario (the one I was looking for) is:

  1. Go to http://sdk.ckeditor.com/samples/basicpreset.html.
  2. Select something inside editor.
  3. Run var r1 = CKEDITOR.instances.editor1.getSelection().getRanges()[ 0 ];
  4. Run CKEDITOR.instances.editor1.setData( '<p>Text...</p>' );
  5. Run r1.startPath();

The same error is thrown. It works in other browsers. However, I am not sure if it should be considered as a bug. The fact that this specific usage causes an issue, is browser specific behavior for IE (it permits access to detached DOM in an IFrame?) and maybe should be considered as an browser issue? WDYT?

comment:3 Changed 8 years ago by Jakub Ś

Resolution: duplicate
Status: pendingclosed

DUP of #10501 which is a DUP of #11502

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