Bug 47670 - Pages that use DeviceOrientation and DeviceMotion should be able to use the PageCache
Summary: Pages that use DeviceOrientation and DeviceMotion should be able to use the P...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 30335
  Show dependency treegraph
 
Reported: 2010-10-14 07:15 PDT by Steve Block
Modified: 2010-10-14 10:08 PDT (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 Steve Block 2010-10-14 07:15:36 PDT
Pages that use DeviceOrientation and DeviceMotion were prevented from using the PageCache in http://trac.webkit.org/changeset/69646. This is because we want the client to be stopped as soon as the page is navigated away, but listeners are not removed, and hence the client is not stopped, if the page goes into the page cache.

We should update the logic of the clients to allow them to be paused without the listeners being removed. This would allow the clients to be paused while the page is in the page cache and then resumed when the page is taken from the page cache.

See also the test fast/dom/DeviceOrientation/event-after-navigation.html added in http://trac.webkit.org/changeset/69764.