Bug 200587

Summary: Web Inspector: REGRESSION(r248454): WK1 inspector frontend client doesn't queue messages to the frontend before it's loaded
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=200110
Bug Depends on: 200109    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from ews103 for mac-highsierra
none
Archive of layout-test-results from ews114 for mac-highsierra
none
Patch none

Description Devin Rousso 2019-08-09 14:05:52 PDT
WK1 inspector pipes messages to the frontend using `WebCore::InspectorClient::doDispatchMessageOnFrontendPage`, which does NOT do any sort of queueing to wait until the frontend is loaded (`InspectorFrontendHost.loaded()`).  Now that we are sending messages immediately, we should always queue.
Comment 1 Devin Rousso 2019-08-09 14:14:42 PDT
Created attachment 375954 [details]
Patch
Comment 2 Devin Rousso 2019-08-09 14:16:04 PDT
I think this might also fix the test failures for <https://webkit.org/b/200110>.
Comment 3 Joseph Pecoraro 2019-08-09 14:20:28 PDT
Comment on attachment 375954 [details]
Patch

r=me assuming tests pass!
Comment 4 EWS Watchlist 2019-08-09 15:26:24 PDT Comment hidden (obsolete)
Comment 5 EWS Watchlist 2019-08-09 15:26:25 PDT Comment hidden (obsolete)
Comment 6 EWS Watchlist 2019-08-09 16:24:35 PDT Comment hidden (obsolete)
Comment 7 EWS Watchlist 2019-08-09 16:24:37 PDT Comment hidden (obsolete)
Comment 8 Devin Rousso 2019-08-09 19:47:18 PDT
Created attachment 375996 [details]
Patch

Add additional code which I mistakenly forgot to copy from `doDispatchMessageOnFrontendPage`
Comment 9 WebKit Commit Bot 2019-08-10 00:02:35 PDT
Comment on attachment 375996 [details]
Patch

Clearing flags on attachment: 375996

Committed r248497: <https://trac.webkit.org/changeset/248497>
Comment 10 WebKit Commit Bot 2019-08-10 00:02:36 PDT
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2019-08-10 00:03:20 PDT
<rdar://problem/54156422>