WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151848
Web Inspector: Remove untested and unused Worker inspection
https://bugs.webkit.org/show_bug.cgi?id=151848
Summary
Web Inspector: Remove untested and unused Worker inspection
Joseph Pecoraro
Reported
2015-12-03 20:48:34 PST
* SUMMARY Remove untested and unused Worker inspection. * NOTES The inspector frontend currently doesn't expose UI for debugging workers, so this code has been maintained for a few years without any way for a user to access it. Likewise, some pieces were implemented in V8 and not implemented in JavaScriptCore so it is possible that if tested some pieces would not be fully functional. Rather then keep the code in half-maintained, lets remove it and re-add it when we will focus on adding proper Worker Inspection. See: <
https://webkit.org/b/127634
> Web Inspector: support debugging web workers
Attachments
[PATCH] Proposed Fix
(142.82 KB, patch)
2015-12-03 20:50 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(141.02 KB, patch)
2015-12-03 21:01 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(141.53 KB, patch)
2015-12-03 21:07 PST
,
Joseph Pecoraro
bburg
: review+
bburg
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-12-03 20:49:21 PST
<
rdar://problem/23755748
>
Joseph Pecoraro
Comment 2
2015-12-03 20:50:10 PST
Created
attachment 266592
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2015-12-03 21:01:08 PST
Created
attachment 266593
[details]
[PATCH] Proposed Fix Rebased.
WebKit Commit Bot
Comment 4
2015-12-03 21:02:20 PST
Attachment 266593
[details]
did not pass style-queue: ERROR: Source/WebCore/ChangeLog:8: You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible. [changelog/nonewtests] [5] Total errors found: 1 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Joseph Pecoraro
Comment 5
2015-12-03 21:07:48 PST
Created
attachment 266596
[details]
[PATCH] Proposed Fix
Blaze Burg
Comment 6
2015-12-04 08:38:49 PST
Comment on
attachment 266596
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=266596&action=review
r=me with some nits.
> Source/JavaScriptCore/inspector/protocol/Worker.json:-8 > - },
Please update the legacy protocol files as well.
> Source/WebCore/WebCore.vcxproj/WebCore.vcxproj:-19059 > - <ClCompile Include="..\bindings\js\WorkerScriptDebugServer.cpp">
You don't need to modify the vcxproj files, they aren't used by anything.
> Source/WebCore/inspector/InspectorConsoleInstrumentation.h:-47 > -inline void InspectorInstrumentation::addMessageToConsole(WorkerGlobalScope* workerGlobalScope, std::unique_ptr<Inspector::ConsoleMessage> message)
Why not remove this method entirely?
> Source/WebCore/inspector/InspectorTimelineAgent.h:95 > + enum InspectorType { PageInspector };
Might as well nuke this enum too.
> Source/WebCore/inspector/InspectorWebAgentBase.h:58 >
Should we sink PageAgentContext into WebAgentContext, or keep this around for the future?
> Source/WebCore/inspector/WorkerDebuggerAgent.h:-42 > -class WorkerDebuggerAgent final : public WebDebuggerAgent {
Let's mark WebDebuggerAgent (as well as other similar sibling classes) as final.
Joseph Pecoraro
Comment 7
2015-12-04 10:26:47 PST
(In reply to
comment #6
)
> Comment on
attachment 266596
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=266596&action=review
> > r=me with some nits.
Thanks!
> > Source/JavaScriptCore/inspector/protocol/Worker.json:-8 > > - }, > > Please update the legacy protocol files as well.
Okay.
> > Source/WebCore/WebCore.vcxproj/WebCore.vcxproj:-19059 > > - <ClCompile Include="..\bindings\js\WorkerScriptDebugServer.cpp"> > > You don't need to modify the vcxproj files, they aren't used by anything.
Yeah, but as long as the files exist I'm going to update them.
> > Source/WebCore/inspector/InspectorConsoleInstrumentation.h:-47 > > -inline void InspectorInstrumentation::addMessageToConsole(WorkerGlobalScope* workerGlobalScope, std::unique_ptr<Inspector::ConsoleMessage> message) > > Why not remove this method entirely?
I think it would be a good starting point to get console.log working within a Worker without adding complete Worker inspection.
> > Source/WebCore/inspector/InspectorWebAgentBase.h:58 > > > > Should we sink PageAgentContext into WebAgentContext, or keep this around > for the future?
Keep it around. If we can't get to Worker support soon, then maybe, but I'm optimistic.
> > Source/WebCore/inspector/WorkerDebuggerAgent.h:-42 > > -class WorkerDebuggerAgent final : public WebDebuggerAgent { > > Let's mark WebDebuggerAgent (as well as other similar sibling classes) as > final.
Where there was a "Web" there was normally a "Page" and "Worker".
Joseph Pecoraro
Comment 8
2015-12-04 10:53:11 PST
<
http://trac.webkit.org/changeset/193426
>
Brent Fulgham
Comment 9
2016-07-13 13:23:43 PDT
***
Bug 148642
has been marked as a duplicate of this 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