The controllers for DeviceOrientation and DeviceMotion stop the client when all listeners are removed. We want the client to be stopped as soon as the page is navigated away, but listeners are not removed if the page goes into the page cache. Therefore, we should prevent documents using DeviceOrientation and DeviceMotion from entering the page cache.
Created attachment 70225 [details] Patch
Long term, we want such pages to stay in page cache, right?
> Long term, we want such pages to stay in page cache, right? Yes, that's probably true.
Alexey, would you be able to review?
Comment on attachment 70225 [details] Patch Loks sane, except for the part where test code is in a separate .js file.
Comment on attachment 70225 [details] Patch Clearing flags on attachment: 70225 Committed r69646: <http://trac.webkit.org/changeset/69646>
All reviewed patches have been landed. Closing bug.
(In reply to comment #3) > > Long term, we want such pages to stay in page cache, right? > Yes, that's probably true. Has a bug been filed to track this?
> Has a bug been filed to track this? Filed Bug 47670