Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 525647

Summary: javascriptPlugin references variable not available in IE 11
Product: [ECD] Orion Reporter: Michael Valenta <Michael.Valenta>
Component: EditorAssignee: Project Inbox <orion.editor-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: trivial    
Priority: P3 CC: Michael_Rennie
Version: 15.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Valenta CLA 2017-10-05 15:30:38 EDT
We are using the Orion code-editor v 15.0 in our product. When we open a page that contains the editor in IE 11, the page takes a long time (30 to 60 seconds) to load. The issue appears to be that the javascriptPlugin.js file uses the navigator.language variable which is not defined in IE 11. The problem is that the code throws an exception if the variable is not defined. This causes the javascriptPlguin.js to fail to load along with the jsonPlugin.js which seems to rely on a Map type defined in the javascriptPlugin.js.

See https://stackoverflow.com/questions/2678230/how-to-getting-browser-current-locale-preference-using-javascript for the name of the variables available in IE 11.
Comment 1 Michael Valenta CLA 2017-10-05 16:33:17 EDT
Actually, we tried a workaround for this and still got the "Map is undefined" error in the josnPlugin.js so it looks like there are 2 separate issues for IE 11.
Comment 2 Michael Valenta CLA 2017-10-05 16:53:34 EDT
In regards to comment 1, it looks like the web page we are usign specified  <meta http-equiv="X-UA-Compatible" content="IE=10">  which is probably why the Map isn;t found so that is likely our issue and not yours.
Comment 3 Michael Valenta CLA 2017-10-06 08:36:46 EDT
It looks like both the issue are caused by the IE=10 directive. Switching it to IE=11 fixed both issues. Please close this bug as invalid. Sorry for the noise.
Comment 4 Michael Rennie CLA 2017-10-06 10:33:07 EDT
Closing.