| Index: Source/core/frame/LocalFrame.cpp
|
| diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
|
| index e321c337713b91e0a6dec4724b374546a099a56d..1f83ef1573790435f7f86b5c2065822983d11949 100644
|
| --- a/Source/core/frame/LocalFrame.cpp
|
| +++ b/Source/core/frame/LocalFrame.cpp
|
| @@ -166,6 +166,9 @@ void LocalFrame::sendOrientationChangeEvent()
|
| if (!RuntimeEnabledFeatures::orientationEventEnabled() && !RuntimeEnabledFeatures::screenOrientationEnabled())
|
| return;
|
|
|
| + if (page()->visibilityState() != PageVisibilityStateVisible)
|
| + return;
|
| +
|
| DOMWindow* window = domWindow();
|
| if (!window)
|
| return;
|
|
|