Title: [107056] trunk/Source/WebCore
Revision
107056
Author
[email protected]
Date
2012-02-08 02:11:31 -0800 (Wed, 08 Feb 2012)

Log Message

Web Inspector: [CRASH] InspectorDOMAgent::updateTouchEventEmulationInPage()
https://bugs.webkit.org/show_bug.cgi?id=78090

Reviewed by Vsevolod Vlasov.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::updateTouchEventEmulationInPage):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (107055 => 107056)


--- trunk/Source/WebCore/ChangeLog	2012-02-08 10:00:52 UTC (rev 107055)
+++ trunk/Source/WebCore/ChangeLog	2012-02-08 10:11:31 UTC (rev 107056)
@@ -1,3 +1,13 @@
+2012-02-08  Alexander Pavlov  <[email protected]>
+
+        Web Inspector: [CRASH] InspectorDOMAgent::updateTouchEventEmulationInPage()
+        https://bugs.webkit.org/show_bug.cgi?id=78090
+
+        Reviewed by Vsevolod Vlasov.
+
+        * inspector/InspectorDOMAgent.cpp:
+        (WebCore::InspectorDOMAgent::updateTouchEventEmulationInPage):
+
 2012-02-07  Alexander Pavlov  <[email protected]>
 
         Web Inspector: Closed computed style sidebar pane rebuilds, resulting in slowness

Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (107055 => 107056)


--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp	2012-02-08 10:00:52 UTC (rev 107055)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp	2012-02-08 10:11:31 UTC (rev 107056)
@@ -640,7 +640,8 @@
 void InspectorDOMAgent::updateTouchEventEmulationInPage(bool enabled)
 {
     m_state->setBoolean(DOMAgentState::touchEventEmulationEnabled, enabled);
-    m_pageAgent->mainFrame()->settings()->setTouchEventEmulationEnabled(enabled);
+    if (m_pageAgent->mainFrame() && m_pageAgent->mainFrame()->settings())
+        m_pageAgent->mainFrame()->settings()->setTouchEventEmulationEnabled(enabled);
 }
 #endif
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to