-
hans@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=94479 Reviewed by Adam Barth. Source/WebCore: There are flags that allows disabling of device orientation and device motion at runtime. These flags determine the availability of the corresponding event constructors in DOMWindow. However, the flags should also control the ability to add event listeners for these events, otherwise the feature can be used even if it is disabled. * page/DOMWindow.cpp: (WebCore::DOMWindow::addEventListener): Source/WebKit/chromium: WebRuntimeFeatures::enableDeviceMotion should not be hard-coded to false. * src/WebViewImpl.cpp: (WebKit::WebView::create): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6bdb108d