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

Bug 354091

Summary: BrowserHistory.createEntry changes browser title
Product: [RT] RAP Reporter: Andreas Hoegger <Andreas.Hoegger>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
IMG shows history entries with null title. none

Description Andreas Hoegger CLA 2011-08-07 11:24:43 EDT
The branding extension point does provide the attribute title. What is described to be the title of the application shown in Browsers headers. 
Using the BrowserHistory service the application title is changed for every entry which is added to the history. This automatism is not desired in lots of cases. 

BR
andy
Comment 1 Ivan Furnadjiev CLA 2011-08-08 03:37:36 EDT
Hi Andreas, creating a browser history entry with null title should do exactly what you want:
RWT.getBrowserHistory().createEntry( entryId, null );
Does it fix your problem?
Comment 2 Andreas Hoegger CLA 2011-08-08 04:55:48 EDT
Thank you Ivan. Using 'RWT.getBrowserHistory().createEntry( entryId, null );' does not have any impact to the browsers header - perfect. But the distinction of history entries is not anymore possible. All history entries are named with the applications title. See attached img.
Comment 3 Andreas Hoegger CLA 2011-08-08 04:56:30 EDT
Created attachment 201057 [details]
IMG shows history entries with null title.
Comment 4 Ivan Furnadjiev CLA 2011-08-08 07:29:42 EDT
Andreas, unfortunately we have no control over the native browser history list. If you want to have a history list with different items (titles) you have to set the title for every entry. This is in contradiction with the subject of this bug. To my knowledge it's impossible to have both - unchangeable title and different history list entries, as they are coupled.
Comment 5 Ivan Furnadjiev CLA 2011-08-09 05:48:24 EDT
(In reply to comment #2)
> Thank you Ivan. Using 'RWT.getBrowserHistory().createEntry( entryId, null );'
> does not have any impact to the browsers header - perfect.
Andy, I will close it as INVALID as there is a possibility not to change the title. Please reopen if you disagree.
Comment 6 Ralf Sternberg CLA 2011-08-09 06:00:49 EDT
Andy, maybe it is an option for you to prefix the browser title to have something like:
* Contacts - Scout Example Application
* Customers - Scout Example Application
...
See also bug 343075.