| Index: third_party/WebKit/Source/core/css/MediaQueryList.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/MediaQueryList.cpp b/third_party/WebKit/Source/core/css/MediaQueryList.cpp
|
| index b036426edd1a264976acb1852b406a8a88bfc62e..3f1ee61405e20e7a545c2d92984f8020c130cbf8 100644
|
| --- a/third_party/WebKit/Source/core/css/MediaQueryList.cpp
|
| +++ b/third_party/WebKit/Source/core/css/MediaQueryList.cpp
|
| @@ -83,7 +83,8 @@ void MediaQueryList::removeListener(MediaQueryListListener* listener) {
|
| }
|
|
|
| bool MediaQueryList::hasPendingActivity() const {
|
| - return m_listeners.size() || hasEventListeners(EventTypeNames::change);
|
| + return getExecutionContext() &&
|
| + (m_listeners.size() || hasEventListeners(EventTypeNames::change));
|
| }
|
|
|
| void MediaQueryList::contextDestroyed() {
|
|
|