RESOLVED FIXED 184865
Web Inspector: WebInspectorProxy releases WKWebInspectorProxyObjCAdapter without removing corresponding observer
https://bugs.webkit.org/show_bug.cgi?id=184865
Summary Web Inspector: WebInspectorProxy releases WKWebInspectorProxyObjCAdapter with...
Matt Baker
Reported 2018-04-21 13:25:30 PDT
Summary: WebInspectorProxy releases WKWebInspectorProxyObjCAdapter without removing corresponding observer. As an optimization we keep the Inspector WebView alive for a minute after it's been closed, so that it can be reused if reopened quickly. If the Inspector is reopened within this time, WebInspectorProxy::platformCreateFrontendPage() will be called while the WKWebInspectorProxyObjCAdapter still exists. It then gets recreated, causing the original instance to be released while still registered as a a notification observer. Prior to macOS 10.12, NSNotificationCenter didn't perform any sanity checks on observers before dispatching notifications, resulting in an access violation.
Attachments
Patch (2.69 KB, patch)
2018-04-21 13:29 PDT, Matt Baker
no flags
Patch (1.96 KB, patch)
2018-04-22 12:36 PDT, Matt Baker
no flags
Archive of layout-test-results from ews204 for win-future (12.59 MB, application/zip)
2018-04-22 14:14 PDT, EWS Watchlist
no flags
Matt Baker
Comment 1 2018-04-21 13:25:45 PDT
Matt Baker
Comment 2 2018-04-21 13:29:10 PDT
Matt Baker
Comment 3 2018-04-22 12:36:54 PDT
EWS Watchlist
Comment 4 2018-04-22 14:14:18 PDT
Comment on attachment 338558 [details] Patch Attachment 338558 [details] did not pass win-ews (win): Output: http://webkit-queues.webkit.org/results/7406043 New failing tests: http/tests/security/contentSecurityPolicy/userAgentShadowDOM/allow-audio.html
EWS Watchlist
Comment 5 2018-04-22 14:14:29 PDT
Created attachment 338559 [details] Archive of layout-test-results from ews204 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews204 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Blaze Burg
Comment 6 2018-04-22 15:37:35 PDT
Comment on attachment 338558 [details] Patch r=me
WebKit Commit Bot
Comment 7 2018-04-22 16:03:50 PDT
Comment on attachment 338558 [details] Patch Clearing flags on attachment: 338558 Committed r230903: <https://trac.webkit.org/changeset/230903>
WebKit Commit Bot
Comment 8 2018-04-22 16:03:51 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.