Index: Source/modules/device_orientation/DeviceMotionController.cpp |
diff --git a/Source/modules/device_orientation/DeviceMotionController.cpp b/Source/modules/device_orientation/DeviceMotionController.cpp |
index 22cdef0a71b8bde87b6e10a35aa9d290b0f86dd3..adb45324a4dc2e939c7c0bd77bef3d0247749600 100644 |
--- a/Source/modules/device_orientation/DeviceMotionController.cpp |
+++ b/Source/modules/device_orientation/DeviceMotionController.cpp |
@@ -45,6 +45,9 @@ DeviceMotionController& DeviceMotionController::from(Document& document) |
void DeviceMotionController::didAddEventListener(LocalDOMWindow* window, const AtomicString& eventType) |
{ |
+ if (eventType != eventTypeName()) |
+ return; |
+ |
if (document().frame()) { |
String errorMessage; |
if (document().securityOrigin()->canAccessFeatureRequiringSecureOrigin(errorMessage)) { |