wei-spring / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Bugs in the SEBrowserComponent #1324

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed some bugs in the SEBrowserComponent of the JavaSE port which are 
affecting the simulator and desktop versions.

Replacing WebBrowser with an other component and vice verca:
What steps will reproduce the problem?
1. create a Form with a WebBrowser component
2. replace the WebBrowser component with a label
3. replace the label with the WebBrowser

What is the expected output? What do you see instead?
After replacing the WebBrowser it enters the lightweight mode in which only an 
image of the browser is displayed, after replacing the component with the 
WebBrowser it doesn't leave the lightweight mode and therefore keeps displaying 
the image.

Browser hasForward:
the hasForward function of the JavaSE port checks its current history position 
against the maximum number of entries, which is 99, and returns everytime true 
if the current position is lower than that.

The last one isn't really a bug, it's just that the WebBrowser won't update its 
peer image after the first successful creation.
This leads to the WebBrowser always using the same image for a transition or if 
its in the background.

In the attachment is a test case which covers the two bugs, there is also a 
patch to fix these.

Original issue reported on code.google.com by appsepp....@gmail.com on 30 Jan 2015 at 3:49

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by st...@weblite.ca on 30 Jan 2015 at 4:24

GoogleCodeExporter commented 9 years ago
Here is the test case

Original comment by appsepp....@gmail.com on 30 Jan 2015 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago
I have reproduced this behaviour.  Still need to look into it further.

Original comment by st...@weblite.ca on 4 Feb 2015 at 5:01