| Summary: | Browser loads URL twice after single setURL | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Wolfgang Pedot <wolfgang.pedot> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P1 | CC: | ivan | ||||||
| Version: | 1.4 | Flags: | rsternberg:
review+
|
||||||
| Target Milestone: | 1.4 RC3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Wolfgang Pedot
Hi Wolfgang, I can't reproduce it with current CVS HEAD/v14_Maintenance branch. Could you test it with RC1? As written in the inital post I expected that because as I see it the solution to bug 345082 was to essentially fall back to the M6 browser which does not have this issue. But Chris also posted in bug 345082 that this fix might bring back bug 334350 and if it does I fear that the combined solution might bring back my bug from M7. Since you seem to have the latest 1.4 Maintenance available can you test bug 334350? If that one did not reappear I would expect that there is now also a stable solution for this bug. I will try to test against current CVS later this day. Thanks. If it is still reproducible for you, please attach a snippet to the bug (maybe the order of setting the url matters). I have now tested this using org.eclipse.rap.rwt and q07 from the v14_Maintenance branch and the problem does not occur with this version. I also tried setting the same URL twice and that does work correctly as well so appearantly bug 334350 was not resurrected by the fix for bug 345082. Looks like my problem is solved in v14_Maintenance already. (In reply to comment #4) Closed as invalid. Wolfgang, if you still experiencing the same problem please reopen this bug and attach a complete self-running project/snippet to reproduce the issue. Thanks. Created attachment 196433 [details]
Patch for org.eclipse.rap.example project
Patch against example-project
After creating a new target for our application based on 1.4RC1 I noticed that the problem still persists. I have attached a patch against the org.eclipse.rap.examples project to show you my test-case. With this source the html-page is loaded twice when the application is first opened (2x "Hello world" alert). If you then reload the application in your browser you will get the alert just once but then again after the first resize-event. Also interesting is that the problem does not occur when I create a project without a workbench (just browser in a shell). Please have a look. Hi Wolfgang, with your explanation I can see where is the problem and I'm working on a fix. The problem was in BrowserLCA#hasUrlChanged method. In case of not initialized browser the internal Browser urlChanged flag was not reset. Thus, on "next" request, the url was rendered again. Fixed in CVS HEAD. Created attachment 196522 [details]
Proposed patch for 1.4 branch
Comment on attachment 196522 [details]
Proposed patch for 1.4 branch
Simple solution that guarentees that getAndResetUrlChanged is executed.
Applied second patch to 1.4 Maintenance branch in agreement with Ivan and Tim. Will be included in 1.4 RC3. |