[webkit-dev] PageGroups (and the localStorage being stored in it)

Darin Adler darin at apple.com
Thu May 7 17:25:06 PDT 2009


On May 7, 2009, at 4:56 PM, Jeremy Orlow wrote:

> I'm continuing to work on https://bugs.webkit.org/show_bug.cgi?id=25376 
>  and noticed that the map of origins to localStorageAreas is owned  
> by the PageGroup class.  I'm having a bit of trouble understanding  
> what exactly page groups are used for.

PageGroup exists so you can have multiple web pages in a single  
application that share state, including frame namespace, such as the  
multiple windows and tabs in Safari.

Separate page groups allow other web views to be separate, allowing  
the same application to use WebKit for things that should be isolated  
from web browsing; for example Safari on Windows uses web views for  
things like Preferences and text input.

This is exposed as part of the WebKit API on Mac OS X, with the  
setGroupName: method.

It may be a useless concept for Chromium but it’s critical on Mac OS X.

     -- Darin



More information about the webkit-dev mailing list