Bug 62665 - Storage event is not fired for documents in b/f cache
Summary: Storage event is not fired for documents in b/f cache
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 15:02 PDT by Alexey Proskuryakov
Modified: 2011-07-27 05:13 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2011-06-14 15:02:53 PDT
From HTML5:

    ...the user agent must queue a task to fire an event with the name storage, which does
    not bubble and is not cancelable, and which uses the StorageEvent interface, at each
    Window object whose Document object has a Storage object that is affected.

    This includes Document objects that are not fully active, but events fired on those are
    ignored by the event loop until the Document becomes fully active again.

We only fire the storage event on documents that are fully active (not in b/f cache), and do not queue the event. This obviously means that documents that come back from b/f cache will not update themselves for changed local storage data.