Commit ca6b7f5f authored by haraken's avatar haraken Committed by Commit bot

Add stopUpdating to ScreenOrientationControllerImpl::frameDestroyed()

When the frame is destroyed, ScreenOrientationController needs to stop updating.

BUG=

Review-Url: https://codereview.chromium.org/2584453005
Cr-Commit-Position: refs/heads/master@{#439123}
parent 1cb02823
......@@ -209,6 +209,7 @@ bool ScreenOrientationControllerImpl::hasLastData() {
}
void ScreenOrientationControllerImpl::frameDestroyed() {
stopUpdating();
m_client = nullptr;
DOMWindowProperty::frameDestroyed();
m_activeLock = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment