Bug 5603 - Visually indicate uncought javascript errors in the HTML5 client
Summary: Visually indicate uncought javascript errors in the HTML5 client
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Web Access (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.5.0
Assignee: Samuel Mannehed
Keywords: ossman_tester, prosaic
Depends on:
Reported: 2015-08-10 17:01 CEST by Samuel Mannehed
Modified: 2015-09-25 13:57 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Description Samuel Mannehed cendio 2015-08-10 17:01:51 CEST
For example, if the HTML5 client doesn't start and there is an error in the browser console the user will still only see "The HTML5 client is loading..." while it in fact isn't.

We should visually indicate that something went wrong in these cases.
Comment 3 Pierre Ossman cendio 2015-09-21 14:15:51 CEST
Doesn't work if the crash is after UI.connect() has been called.
Comment 5 Samuel Mannehed cendio 2015-09-22 14:40:13 CEST
Fixed now.
Comment 7 Pierre Ossman cendio 2015-09-23 13:33:17 CEST
Doesn't work properly when in a handler for incoming data. Managed to provoke this crash:

recv_message, caught exception: 
    name: ReferenceError
    message: fooo is not defined
Comment 8 Pierre Ossman cendio 2015-09-23 13:34:17 CEST
It is also might need some more layout improvements. You can't clearly tell what's the error message and what's the background behind it.
Comment 9 Pierre Ossman cendio 2015-09-23 13:37:22 CEST
The error message is also not seen when the crash happens with the canvas visible.
Comment 10 Pierre Ossman cendio 2015-09-23 13:42:15 CEST
A normal terminated session now also results in the message "Failed to connect.".
Comment 14 Samuel Mannehed cendio 2015-09-23 18:03:15 CEST
r30842 fixes comment #7
r30845 fixes comment #8 and comment #9
r30846 fixes comment #10
Comment 15 Pierre Ossman cendio 2015-09-25 13:51:43 CEST
Everything seems to work fine now.

Note You need to log in before you can comment on or make changes to this bug.