Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334350

Summary: [Browser] setUrl/setText do not work with same text/url
Product: [RT] RAP Reporter: Ivan Furnadjiev <ivan>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tbuschto
Version: unspecified   
Target Milestone: 1.4 M7   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Furnadjiev CLA 2011-01-14 03:18:37 EST
Steps to reproduce:
1. Start Controls Demo -> Browser Tab
2. Click on the button "Go" to set the URL.
3. In the Browser navigate with the page links
4. Click on the button "Go" to set the URL again (same URL to return to the initial page)
5. This URL is not set due to LCA preserve value mechanism.
Because in RAP we have no idea if there is an additional navigation after the URL/text is set, we should always set the URL when the Browser#setUrl is called. Same for Browser#setText. This works as expected in SWT.
Comment 1 Tim Buschtoens CLA 2011-03-31 09:23:54 EDT
Fixed in CVS HEAD.

To detect that a the url was set, an internal flag in Browser.java is used. To force the client to update the url even if it appears unchanged, "syncSource" (new to Browseer.js) is also called by the server after setUrl.