https://bugs.webkit.org/show_bug.cgi?id=144411
Patch by Joseph Pecoraro <pecoraro@apple.com> on 2015-04-29
Reviewed by Timothy Hatcher.
* inspector/remote/RemoteInspector.mm:
(Inspector::RemoteInspector::receivedSetupMessage):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183590
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2015-04-29 Joseph Pecoraro <pecoraro@apple.com>
+ Gracefully handle missing auto pause key on remote inspector setup
+ https://bugs.webkit.org/show_bug.cgi?id=144411
+
+ Reviewed by Timothy Hatcher.
+
+ * inspector/remote/RemoteInspector.mm:
+ (Inspector::RemoteInspector::receivedSetupMessage):
+
+2015-04-29 Joseph Pecoraro <pecoraro@apple.com>
+
NodeList has issues with Symbol and empty string
https://bugs.webkit.org/show_bug.cgi?id=144310
RemoteInspectorDebuggableInfo debuggableInfo = it->value.second;
RefPtr<RemoteInspectorDebuggableConnection> connection = adoptRef(new RemoteInspectorDebuggableConnection(debuggable, connectionIdentifier, sender, debuggableInfo.type));
bool isAutomaticInspection = m_automaticInspectionCandidateIdentifier == debuggable->identifier();
- bool automaticallyPause = [[userInfo objectForKey:WIRAutomaticallyPause] boolValue];
+
+ bool automaticallyPause = false;
+ NSNumber *automaticallyPauseObject = [userInfo objectForKey:WIRAutomaticallyPause];
+ if ([automaticallyPauseObject isKindOfClass:[NSNumber class]])
+ automaticallyPause = [automaticallyPauseObject boolValue];
+
if (!connection->setup(isAutomaticInspection, automaticallyPause)) {
connection->close();
return;