Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334350 - [Browser] setUrl/setText do not work with same text/url
Summary: [Browser] setUrl/setText do not work with same text/url
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 03:18 EST by Ivan Furnadjiev CLA
Modified: 2011-03-31 09:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.