Bug 211251 - Web Inspector: Browser: crash when handling `disable`
Summary: Web Inspector: Browser: crash when handling `disable`
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-04-30 14:07 PDT by Devin Rousso
Modified: 2020-05-01 14:10 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.73 KB, patch)
2020-04-30 14:24 PDT, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Rousso 2020-04-30 14:07:24 PDT
ASSERTION FAILED: inspector
/Volumes/DATA/OpenSource/Source/WebKit/UIProcess/Inspector/Agents/InspectorBrowserAgent.cpp(91) : virtual void WebKit::InspectorBrowserAgent::disable(WebKit::ErrorString &)
1   0x10dcc8919 WTFCrash
2   0x114704d8b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x1158b1234 WebKit::InspectorBrowserAgent::disable(WTF::String&)
4   0x1158b1140 WebKit::InspectorBrowserAgent::willDestroyFrontendAndBackend(Inspector::DisconnectReason)
5   0x10ee6e7fc Inspector::AgentRegistry::willDestroyFrontendAndBackend(Inspector::DisconnectReason)
6   0x1158ae225 WebKit::WebPageInspectorController::disconnectFrontend(Inspector::FrontendChannel&)
7   0x1158ab5d5 WebKit::WebInspectorProxy::closeFrontendPageAndWindow()
8   0x1158ab49c WebKit::WebInspectorProxy::invalidate()
9   0x1155a8587 WebKit::WebPageProxy::close()
10  0x1157c066d WKPageClose
Comment 1 Devin Rousso 2020-04-30 14:24:21 PDT
Created attachment 398090 [details]
Patch
Comment 2 Daniel Bates 2020-05-01 13:09:49 PDT
Comment on attachment 398090 [details]
Patch

Patch looks good. A better patch would add a unit test for this as it looks testable.
Comment 3 EWS 2020-05-01 14:09:56 PDT
Committed r261020: <https://trac.webkit.org/changeset/261020>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 398090 [details].
Comment 4 Radar WebKit Bug Importer 2020-05-01 14:10:19 PDT
<rdar://problem/62746484>