Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343122 - [client] Display javascript errors without using document.write
Summary: [client] Display javascript errors without using document.write
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 RC1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 284422
  Show dependency tree
 
Reported: 2011-04-18 05:43 EDT by Tim Buschtoens CLA
Modified: 2011-05-10 08:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.