| Summary: | [Client] Java script error pages outside of requests only in "developer" mode | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Sabine Neubauer <neubauer> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | tbuschto | ||||||
| Version: | 1.4 | ||||||||
| Target Milestone: | 1.5 M6 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | sr142 | ||||||||
| Attachments: |
|
||||||||
|
Description
Sabine Neubauer
Created attachment 206595 [details]
patch for 1.4 branch
We decidid to introduce this behavior for RAP 1.4.2. In standard mode, the error will be logged to the javascript console if present, and otherwise ignored. In the debug-variant it still crashes the entire client application. Errors within a server-response are also still crashing, as the server has to rely on the client being in sync.
As argued by the reporter, total crashes are very enduser-unfriendly. Often these out-of-request errors are non-critical issues, like a failed DOM access while rendering a hover-effect. In addition, if such an error did not occour during developlent, its likely that they may only appear on a very specific configuration, like a certain browser-version with a plugin/addon of a certain version.
Created attachment 206656 [details]
revised patch for 1.4 branch
Revised patch using typeof to check for console.
I agree with Tim. Since this kind of DOM errors is mostly beyond our control and mostly less critical, letting the entire application crash is too aggressive for production mode. As requested, the change only affects errors that occur outside of requests. Committed the second patch to 1.4 maintenance branch, so the fix will be part of 1.4.2. I think we should do the same for HEAD. (In reply to comment #3) > Committed the second patch to 1.4 maintenance branch, so the fix will be part > of 1.4.2. > I think we should do the same for HEAD. First, thanks for solving this issue for RAP 1.4.2. Now I don't have to generate the client.js by myself anymore. I agree with Ralf and think this should be introduced on HEAD, too. Commited changs to CVS HEAD. Also made some small improvements to the printed message itself. (Prints stack if browser supports it). |