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
- Go to http://sdk.ckeditor.com/samples/basicpreset.html.
- 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
Status: | new → confirmed |
---|
comment:2 Changed 8 years ago by
Status: | confirmed → pending |
---|
comment:3 Changed 8 years ago by
Resolution: | → duplicate |
---|---|
Status: | pending → closed |
The second scenario (the one I was looking for) is:
var r1 = CKEDITOR.instances.editor1.getSelection().getRanges()[ 0 ];
CKEDITOR.instances.editor1.setData( '<p>Text...</p>' );
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?