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

Bug 334045

Summary: [client] Use prefs instead of cookies
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ahunter.eclipse, john.arthorne, simon_kaegi
Version: 0.2   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2011-01-11 17:29:19 EST
Must convert the places where we're using cookies to persist settings to use the Preferences API instead.
To do:
- saved searches
- favorites
- splitter state in coding.html
Comment 1 Mark Macdonald CLA 2011-01-11 17:29:52 EST
Previous discussion:

1.Mark MacDonald Nov 19, 2010 11:56 A.M.
The first 2 items have been fixed, but the 3rd raises the issue of how to handle Dojo widgets, which currently rely on cookies to store all their state. If we want to use these widgets for our UI, we need to save their settings to the user's preference store instead.

Forcing every widget to manage asynchronous communication with the preference store is probably not the right answer. (Among other things, it means they couldn't work offline). Instead we should have a "local storage" layer which gets saved to the preference store when the server is available. Reads/writes to the local store could happen instantly, so replacing dojo.cookie() with localstore calls would be straightforward.

However, this means save conflicts could arise between the local store and the preferences, so we should think about that.
Comment 2 John Arthorne CLA 2011-03-07 11:04:08 EST
This depends on preference work Simon is doing in M6.
Comment 3 Simon Kaegi CLA 2011-03-07 11:15:43 EST
We're likely to have nearly exactly what Mark describes for M6 however I haven't been looking at the cookies case. Instead more focused on default and user preferences for storing plugins. I'm going to defer to m7 for now.
Comment 4 Anthony Hunter CLA 2015-01-26 15:18:25 EST
(In reply to Mark Macdonald from comment #0)
> Must convert the places where we're using cookies to persist settings to use
> the Preferences API instead. 
> To do:
> - saved searches
> - favorites
> - splitter state in coding.html

This work has been completed.