| 23 | Sometimes a module needs to associate state with a core object, such as Page or Navigator. Typically, this state doesn't interact with any of the other state associated with this object and simply piggybacks on the lifetime of the core object. Rather than bloating the core objects with your feature-specific state, you can associate your feature's data with the core object using [http://trac.webkit.org/browser/trunk/Source/WebCore/platform/Supplementable.h Supplementable.h]. This mechanism allocates your data lazily, which saves memory on pages that don't use your feature. |