| Index: third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| diff --git a/third_party/WebKit/Source/modules/sensor/Sensor.cpp b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| index 57faf7541adba4fe11261d42f7eace3eb949678f..d617472e497c613704a35f8395e23f5def62b549 100644
|
| --- a/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| +++ b/third_party/WebKit/Source/modules/sensor/Sensor.cpp
|
| @@ -132,7 +132,7 @@ bool Sensor::hasPendingActivity() const {
|
| if (m_state == Sensor::SensorState::Idle ||
|
| m_state == Sensor::SensorState::Errored)
|
| return false;
|
| - return hasEventListeners();
|
| + return getExecutionContext() && hasEventListeners();
|
| }
|
|
|
| auto Sensor::createSensorConfig() -> SensorConfigurationPtr {
|
|
|