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

Bug 430385

Summary: Using require.toUrl() in fileUtils.js breaks readonly file widget build.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: 5.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 426045    

Description libing wang CLA 2014-03-14 09:11:01 EDT
In commit 36ca66c2c62d8727f6533ac974c14a012d496fa0, a require.toUrl() call was added in fileUtils.js at the script loading time. this was to to cache the workspace for isAtRoot function.
The readonly file widget will not eventually call this function but the chain dependency requires that the fileUtils.js be loaded.
The require.toUrl is not available in an almond build so it breaks the readoly widget build.