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

Bug 410730

Summary: Loading the Bootstrap module before domReady results in an invalid access of the Body tag
Product: [ECD] Orion Reporter: Brian Svihovec <svihovec>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Brian Svihovec CLA 2013-06-13 10:39:17 EDT
I don't have a specific test case any more, but I believe this issue occurred when I was trying to use the Orion i18n module before the Bootstrap module was loaded and before domReady had been issued.

In the i18n module, the Bootstrap module will be loaded if it is not ready:

parentRequire(['orion/bootstrap'], function(bootstrap) { //$NON-NLS-0$

In the Bootstrap module, the PluginRegistry is loaded, and in the PluginRegistry, the body tag is accessed:

iframe.sandbox = "allow-scripts allow-same-origin";
document.body.appendChild(iframe);


At runtime, I was receiving an error message regarding an invalid access to the body tag, which was resolved after I put a 'domReady!' dependency in the Bootstrap module.

Note: I am running with Dojo 1.7.4 as my AMD loader.
Comment 1 John Arthorne CLA 2015-05-05 14:50:08 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html