Bug 308805 - It would be preferable that RWT would create a ProgressMonitorDialog when function takes longer to prefend browser error Java Script not responding.
Summary: It would be preferable that RWT would create a ProgressMonitorDialog when fun...
Status: RESOLVED WONTFIX
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-04-12 05:03 EDT by Martijn Cremer CLA
Modified: 2010-04-12 16: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 Martijn Cremer CLA 2010-04-12 05:03:52 EDT
Build Identifier: M20100211-1343

Sometimes when single sourcing things that happen fast in RCP take a bit longer in RCP because of Server Client communication and processing. If this takes to long browsers like Internet Explorer and Mozilla (Chrome does not act like this) will give a warning that the Javascript is not responding and asks the user if it wants to cancel the process.

it would be preferable if RWT has a function that would give the user a ProgressMonitorDialog (after x seconds based on the Browser Client). So that this error is not given.

Reproducible: Sometimes

Steps to Reproduce:
1. Create a function that works for more then 30 seconds
2. Run the function
3. Browser will give error JavaScript not responding.
Comment 1 Ivan Furnadjiev CLA 2010-04-12 05:26:09 EDT
Are there existing javascript functions in RAP (test case), that lead to such an error? Can you provide a snippet to demonstrate the problem.
Comment 2 Rüdiger Herrmann CLA 2010-04-12 16:42:08 EDT
The mentioned warning is issued by browsers if the execution of a continuous piece of Javascript (i.e. the Javascript that is sent in one response) takes longer than a predefined amount of time. The Javascript performance and timout value differs among vendors.
RAP can't do much about this. It is rather the responsibility of the application programmer to keep the amount of widgets that are created at once at a reasonable amount or to use VIRTUAL widgets where appropriate.
Please feel free to reopen if you disagree or if you have further questions.