WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
195973
Web Inspector: Debugger: lazily create the agent
https://bugs.webkit.org/show_bug.cgi?id=195973
Summary
Web Inspector: Debugger: lazily create the agent
Devin Rousso
Reported
2019-03-19 15:57:02 PDT
.
Attachments
Patch
(20.75 KB, patch)
2019-03-19 16:53 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(20.56 KB, patch)
2019-03-19 18:14 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews106 for mac-highsierra-wk2
(2.91 MB, application/zip)
2019-03-19 22:18 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews117 for mac-highsierra
(2.57 MB, application/zip)
2019-03-19 22:30 PDT
,
EWS Watchlist
no flags
Details
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-03-19 15:57:18 PDT
<
rdar://problem/49039674
>
Devin Rousso
Comment 2
2019-03-19 16:53:46 PDT
Created
attachment 365264
[details]
Patch
Joseph Pecoraro
Comment 3
2019-03-19 17:32:35 PDT
Comment on
attachment 365264
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=365264&action=review
> Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp:245 > + if (m_debuggerAgent) {
This should always be true. I'd drop the if check. The only path to get here (that we expect) is through InspectorAgent::initialized meaning the agents are alive and a frontend sent a message.
> Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp:107 > + for (auto* listener : copyToVector(m_listeners)) > + listener->debuggerWasDisabled();
Why upgrade this to a list. Do you expect to add more listeners?
Devin Rousso
Comment 4
2019-03-19 18:13:40 PDT
Comment on
attachment 365264
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=365264&action=review
>> Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp:107 >> + listener->debuggerWasDisabled(); > > Why upgrade this to a list. Do you expect to add more listeners?
No "good" reason other than that it seemed "wrong" to only allow for one listener. This way, it also matches `JavaScriptCore::ScriptDebugServer`.
Devin Rousso
Comment 5
2019-03-19 18:14:06 PDT
Created
attachment 365278
[details]
Patch
EWS Watchlist
Comment 6
2019-03-19 22:18:50 PDT
Comment hidden (obsolete)
Comment on
attachment 365278
[details]
Patch
Attachment 365278
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/11575533
New failing tests: http/wpt/mediarecorder/MediaRecorder-AV-audio-video-dataavailable.html
EWS Watchlist
Comment 7
2019-03-19 22:18:52 PDT
Comment hidden (obsolete)
Created
attachment 365310
[details]
Archive of layout-test-results from ews106 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 8
2019-03-19 22:30:13 PDT
Comment hidden (obsolete)
Comment on
attachment 365278
[details]
Patch
Attachment 365278
[details]
did not pass mac-debug-ews (mac): Output:
https://webkit-queues.webkit.org/results/11575413
New failing tests: http/tests/security/cross-origin-worker-indexeddb.html
EWS Watchlist
Comment 9
2019-03-19 22:30:15 PDT
Comment hidden (obsolete)
Created
attachment 365313
[details]
Archive of layout-test-results from ews117 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-highsierra Platform: Mac OS X 10.13.6
WebKit Commit Bot
Comment 10
2019-03-19 22:40:17 PDT
Comment on
attachment 365278
[details]
Patch Clearing flags on attachment: 365278 Committed
r243192
: <
https://trac.webkit.org/changeset/243192
>
WebKit Commit Bot
Comment 11
2019-03-19 22:40:19 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.
Top of Page
Format For Printing
XML
Clone This Bug