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

Bug 343122

Summary: [client] Display javascript errors without using document.write
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: 1.4 RC1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 284422    

Description Tim Buschtoens CLA 2011-04-18 05:43:11 EDT
Request.js#_writeErrorPage usses document.write to print the javascript error message. The problem with this is that (besides beeing very ugly), the entire DOM is rewritten, making debugging very hard. Instead we should overlay an (possibly semi-transparent) div over the entire document and display the messagr there.
Comment 1 Ivan Furnadjiev CLA 2011-05-10 08:42:31 EDT
The document.write is replaced with div. New ErrorHangler.js class is introduced to handle and display all errors. Changes are in CVS HEAD.