[Webkit-unassigned] [Bug 19207] Inspector should remember the size of sidebars set by the user

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 20 14:44:15 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=19207





------- Comment #4 from timothy at hatcher.name  2008-08-20 14:44 PDT -------
(In reply to comment #3)
> (In reply to comment #2)
> > I would say localStorage is the best bet. But it would be lumped into all file
> > URL's localStorage. So Database with a unique name for the inspector might be
> > better. 
> > 
> 
> Database is async, which is a problem when retrieving the information, so
> unless I'm missing a really obvious (or sneaky) way of making the database
> stuff synchronous, it's probably going to have to be localStorage.
> 

Yes asynchronous makes it annoying. But you can still use it.

When the Inspector opens, read all the preferences from the database into a
Preferences object. Then when a preferences needs to change store the
preference in the database and in the Preferences object. Any clients of the
preferences will read only from the Preferences object, but the values do still
persist.

This is basically how localStorage works behind the scenes.

Maybe we could consider a way to tell the Web Inspector's WebKit to use a
special backing database for it's localStorage, so it does not conflict with
other file URLs?


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list