Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334045 - [client] Use prefs instead of cookies
Summary: [client] Use prefs instead of cookies
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Simon Kaegi CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 17:29 EST by Mark Macdonald CLA
Modified: 2015-01-26 15:18 EST (History)
3 users (show)

See Also:


Attachments

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