WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
234965
Web Inspector: Inspector::RemoteInspector::receivedSetupMessage() falls through ASSERT_NOT_REACHED()
https://bugs.webkit.org/show_bug.cgi?id=234965
Summary
Web Inspector: Inspector::RemoteInspector::receivedSetupMessage() falls throu...
David Kilzer (:ddkilzer)
Reported
2022-01-07 10:33:40 PST
Inspector::RemoteInspector::receivedSetupMessage() falls through ASSERT_NOT_REACHED(). Since there are many other early returns in this method, it seems like there should be an early return after ASSERT_NOT_REACHED() as well. void RemoteInspector::receivedSetupMessage(NSDictionary *userInfo) { [...] if (is<RemoteInspectionTarget>(target)) { bool isAutomaticInspection = m_automaticInspectionCandidateTargetIdentifier == target->targetIdentifier(); if (!connectionToTarget->setup(isAutomaticInspection, automaticallyPause)) { connectionToTarget->close(); return; } m_targetConnectionMap.set(targetIdentifier, WTFMove(connectionToTarget)); } else if (is<RemoteAutomationTarget>(target)) { if (!connectionToTarget->setup()) { connectionToTarget->close(); return; } m_targetConnectionMap.set(targetIdentifier, WTFMove(connectionToTarget)); } else ASSERT_NOT_REACHED(); updateHasActiveDebugSession(); } See Source/JavaScriptCore/inspector/remote/cocoa/RemoteInspectorCocoa.mm.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-01-07 10:33:54 PST
<
rdar://problem/87260301
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug