Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: closing a window with htmleditor throws permission denied error in IE

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Aug 2014
    Posts
    7

    Default closing a window with htmleditor throws permission denied error in IE

    Ext version tested - 5.0.1
    Browser version tested - IE 10/11. Not reproducible on Chrome

    If a window contains the xtype html editor, closing the window causes a script error - Permission denied in internet explorer browsers. The error does not appear immediately, which leads me to believe it is something to do with garbage collection. The error happens repeatedly afterwards making the application unusable.

    Steps to reproduce -
    1) Use the getting started guide of Extjs 5.0 to create the sample app.
    2) Change the OnClickButton function in maincontroller.js to the following -
    Code:
    onClickButton: function () {
    		var form = new Ext.Window({
          title      : '',
          layout     : 'form',
          labelWidth : 100,
          height     : 300,
          width      : 640,
          bodyStyle  : 'padding: 5px',
          items      :[
    {
    		xtype:'htmleditor'
    		}]
        });
           form.show();
        }
    3) Open index.html, click on the button
    4) Type some text in the htmleditor control and close the window
    5) Press F12 and observe the console

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. I wasn't able to recreate this issue. Can you please post a Fiddle which reproduces the behavior?
    https://fiddle.sencha.com/#home

  3. #3
    Sencha User
    Join Date
    Aug 2014
    Posts
    7

    Default Wait for some time after closing the window containing htmleditor

    https://fiddle.sencha.com/#fiddle/8l0

    E
    DIT -
    strangely, I am unable to reproduce it on the above fiddle after saving it. However, you can still see 2 other issues with the above fiddle -

    1) The center align and right align icons are interchanged
    2) If you type very fast and press enter, the first line is shown twice.

    For the original issue, can you please try putting the code as a seperate project and test in IE?

    EDIT 2-
    Able to reproduce again...but only on a fresh fiddle, without saving. The error message is -
    SCRIPT70: Permission denied
    ext-all-debug.js, line 21673 character 9

    Here is the code in my second unsaved fiddle-
    Code:
    Ext.application({
        name : 'Fiddle',
    
    
        launch : function() {
            Ext.create('Ext.panel.Panel', {
        width: 750,
                items:[{
                    xtype:'button',
                    text: 'Launch htmleditor',
                    listeners:{
                        click:function(){
                            var form = new Ext.Window({
          title      : '',
          layout     : 'form',
          labelWidth : 100,
          height     : 300,
          width      : 640,
          bodyStyle  : 'padding: 5px',
          items      :[
    {
            xtype:'htmleditor'
            }]
        });
           form.show();
                        }
                    }
                }],
        height: 250,
        renderTo: Ext.getBody()
    });
           
        }
    });

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    The alignment button issue is being tracked on this thread:
    http://www.sencha.com/forum/showthread.php?289803

    I'm still unable to recreate this issue. I tried the code you posted using an unsaved Fiddle, but I don't get the error when I close the window. I'm using Windows 8.1/IE11. Any suggestions for reproducing this?

  5. #5
    Sencha User
    Join Date
    Aug 2014
    Posts
    7

    Default

    I am consistently able to reproduce the issue on an unsaved fiddle using the above code. A quick google search on Script70 error in IE shows that it is related to iFrame. This link - http://stackoverflow.com/questions/5...ion-denied-ie9 also points a registry entry that could prevent this error from happening. Maybe you have this registry entry in your environment?

    My environment is windows 7 with IE 11. Here is the screenshot -
    htmlscripterror.JPG

  6. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I tried it with both IE10 and IE11 in Windows 7, but I've still been unable to replicate this issue. I checked the registry key referenced in the thread you included, but it was set appropriately to 1.

  7. #7
    Sencha User
    Join Date
    Aug 2014
    Posts
    7

    Default Wait for garbage collection

    Hi,
    It looks like the issue happens when garbage collection happens. I was able to reproduce it even with the saved fiddle. However, the error happened after a long time.
    Is there any way you can trigger garbage collection or confirm that you waited till this part of the code ran?
    Ext.isGarbage = function(dom) {


    return dom &&

    dom.nodeType === 1 && dom.tagName !== 'BODY' && dom.tagName !== 'HTML' &&


    (!dom.parentNode ||


    (!dom.offsetParent &&







    ((Ext.isIE8 ? DOC.all[dom.id] : DOC.getElementById(dom.id)) !== dom) &&


    !(Ext.detachedBodyEl && Ext.detachedBodyEl.isAncestor(dom))));
    };

  8. #8
    Sencha User
    Join Date
    Aug 2014
    Posts
    7

    Default Result of debugging

    I managed to put a breakpoint in Ext.isGarbage and took a screenshot. See attached file.htmleditorerror.jpg

  9. #9
    Sencha User
    Join Date
    Oct 2014
    Posts
    2

    Default

    Hi,
    I have the same issue.
    I can not reproduce it with a saved fiddle but I can reproduce the problem if I use the code iashishi provides.
    I just open the HTML Editor and wait for 30 seconds.It seems that the document of the frame is somehow loaded into the cache and during garbage collection the IE throws an exception during the isGarbage method.

    We get this problem with our application with extjs 5.0.0.970 and 5.0.1.1255 with IE10 and IE11 on Windows 7.
    We can not reproduce this issue with IE9

    Thanks in advance.

  10. #10
    Sencha User
    Join Date
    Oct 2014
    Posts
    2

    Default

    Hi,any update on this issue?

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •