#16939 closed defect (fixed)
IE hangs when switching between multiple editors / refocusing browser window
Reported by: | nkurdybakha | Owned by: | bill |
---|---|---|---|
Priority: | undecided | Milestone: | 1.8.6 |
Component: | Editor | Version: | 1.8.3 |
Keywords: | Cc: | haysmark | |
Blocked By: | Blocking: |
Description (last modified by )
Steps to reproduce:
- Open: http://download.dojotoolkit.org/release-1.8.3/dojo-release-1.8.3/dijit/tests/editor/test_Editor.html
- Click editor 'No plugin, initially empty'
- Click editor 'Created from div'
- Click Desktop or other app (so editor loose focus)
- Repeat steps 2-4 several times
Result: IE hangs. At the point IE hangs, both of editors endlessly receive a lot of 'focus' and 'blur' events.
Reproducible: Browsers: IE9 and IE10 OS: Win 7 x64 (host machine, 4 processors), Win 8 x32 (VM, 2 processors)
Attachments (2)
Change History (17)
Changed 7 years ago by
Attachment: | SystemInfo.png added |
---|
Changed 7 years ago by
Attachment: | IEInfo.png added |
---|
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Cc: | Douglas Hays added |
---|---|
Component: | Dijit → Editor |
Presumably fixed already by [30984] but need to test to confirm.
comment:3 Changed 7 years ago by
Description: | modified (diff) |
---|---|
Milestone: | tbd → 1.9 |
Status: | new → assigned |
Hmm, actually it's still broken on trunk, perhaps even worse, seems to hang just by opening the Editor (testing on Win8 / IE10).
comment:4 Changed 7 years ago by
It's hard to debug this problem since IE hangs as soon as the problem occurs, but I can reproduce it by:
- clicking editor1
- click outside the browser
- click editor0
One thing I've noticed is that even on Chrome/mac, if you focus editor1, then click outside the browser, and then click back in the browser *but not on editor1*, editor1 still gets focus. AFAICT there's no dijit code calling focus() on anything.
The problems on IE9+ are possibly exacerbated by the fact that the focusout event on the iframe comes *after* the focusin event on the main window, see #16928. But (as an experiment) I modified dijit/focus to do nothing on the focusin/focusout events, and the problem still happens.
comment:7 Changed 6 years ago by
Milestone: | 1.9 |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
This also hangs on IE8, it is an easy fix to change the test for the fix added into _onBlur from if(has("ie") >= 9){ to if(has("ie")){
comment:8 Changed 6 years ago by
Summary: | IE9 and IE10 hangs when working with dijit.Editor → IE hangs when switching between multiple editors / refocusing browser window |
---|
comment:9 Changed 6 years ago by
Milestone: | → 1.8.6 |
---|
comment:10 Changed 6 years ago by
This also fails with IE11, so the new check will be
if(has("ie") || has("trident")){
comment:11 Changed 6 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:14 Changed 6 years ago by
I am not sure why the links to the changesets above did not work, but here are the links: https://github.com/dojo/dijit/commit/95cc48933bef6ed4217a527dae4eef7a83f71059
https://github.com/dojo/dijit/commit/06f348a8ecb9e9d9c212e90406068528b6e2e795
https://github.com/dojo/dijit/commit/4b181d1df4a457284297ab76ab70091f8af55d60
comment:15 Changed 6 years ago by
Cc: | haysmark added; Douglas Hays removed |
---|
Mark - You should add this to the list of IE11 fixes that you backport to 1.7.
See recorded video for details: http://youtu.be/5KgV6kZlUWQ