WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
199252
Web Inspector: throw an error if console.count/console.countReset is called with an object that throws an error from toString
https://bugs.webkit.org/show_bug.cgi?id=199252
Summary
Web Inspector: throw an error if console.count/console.countReset is called w...
Devin Rousso
Reported
2019-06-26 17:49:37 PDT
This should throw an error, but doesn't :( ``` console.count({ toString() { throw new Error('conversion error'); } }) ```
Attachments
Patch
(61.55 KB, patch)
2019-06-26 18:20 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(61.50 KB, patch)
2019-06-26 18:24 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Patch
(61.50 KB, patch)
2019-06-27 00:41 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Devin Rousso
Comment 1
2019-06-26 18:20:49 PDT
Created
attachment 372986
[details]
Patch
EWS Watchlist
Comment 2
2019-06-26 18:23:09 PDT
Comment hidden (obsolete)
Attachment 372986
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/inspector/JSGlobalObjectConsoleClient.h:58: The parameter name "arguments" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 25 files If any of these errors are false positives, please file a bug against check-webkit-style.
Devin Rousso
Comment 3
2019-06-26 18:24:13 PDT
Created
attachment 372987
[details]
Patch
Joseph Pecoraro
Comment 4
2019-06-26 18:53:51 PDT
Comment on
attachment 372987
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=372987&action=review
r=me
> Source/JavaScriptCore/ChangeLog:13 > + for `console.time`, `console.timeLog`, and `console.TimeEnd`. Limit the call stack to only
Nit: "TimeEnd" => "timeEnd" (multiple times in multiple ChangeLogs)
> Source/WebCore/inspector/InspectorInstrumentation.cpp:880 > - if (InspectorTimelineAgent* timelineAgent = instrumentingAgents.inspectorTimelineAgent()) > - timelineAgent->time(frame, title); > - if (WebConsoleAgent* consoleAgent = instrumentingAgents.webConsoleAgent()) > - consoleAgent->startTiming(title); > + if (auto* timelineAgent = instrumentingAgents.inspectorTimelineAgent()) > + timelineAgent->time(frame, label); > + if (auto* consoleAgent = instrumentingAgents.webConsoleAgent()) > + consoleAgent->startTiming(exec, label);
I find the complete types in this file more useful when you need to search for them. But auto is fine.
> Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js:183 > + timeLog: "label = \"default\"",
Nice!
Devin Rousso
Comment 5
2019-06-27 00:41:49 PDT
Created
attachment 373007
[details]
Patch
WebKit Commit Bot
Comment 6
2019-06-27 01:25:10 PDT
Comment on
attachment 373007
[details]
Patch Clearing flags on attachment: 373007 Committed
r246876
: <
https://trac.webkit.org/changeset/246876
>
WebKit Commit Bot
Comment 7
2019-06-27 01:25:12 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2019-06-27 01:33:39 PDT
<
rdar://problem/52242935
>
Truitt Savell
Comment 9
2019-06-27 08:56:12 PDT
Looks like the changes in
https://trac.webkit.org/changeset/246876/webkit
broke inspector/worker/console-basic.html History:
http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=inspector%2Fworker%2Fconsole-basic.html
I was able to reproduce this locally. Diff: @@ -148,7 +148,7 @@ { "_source": "console-api", "_level": "debug", - "_messageText": "Global: 1", + "_messageText": "default: 1", "_type": "log", "_url": "inspector/worker/resources/worker-console.js", "_line": 21,
Devin Rousso
Comment 10
2019-06-27 09:36:21 PDT
(In reply to Truitt Savell from
comment #9
)
> Looks like the changes in
https://trac.webkit.org/changeset/246876/webkit
> broke inspector/worker/console-basic.html > > History: >
http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard
. > html#showAllRuns=true&tests=inspector%2Fworker%2Fconsole-basic.html > > I was able to reproduce this locally. > > Diff: > @@ -148,7 +148,7 @@ > { > "_source": "console-api", > "_level": "debug", > - "_messageText": "Global: 1", > + "_messageText": "default: 1", > "_type": "log", > "_url": "inspector/worker/resources/worker-console.js", > "_line": 21,
Ah crap I missed a test 😅 That just needs to be rebased. "default" is now the correct behavior.
Ryan Haddad
Comment 11
2019-06-27 11:24:16 PDT
(In reply to Devin Rousso from
comment #10
)
> That just needs to be rebased. "default" is now the correct behavior.
Done in
https://trac.webkit.org/r246893
Devin Rousso
Comment 12
2019-06-27 11:29:11 PDT
(In reply to Ryan Haddad from
comment #11
)
> (In reply to Devin Rousso from
comment #10
) > > That just needs to be rebased. "default" is now the correct behavior. > > Done in
https://trac.webkit.org/r246893
You "beat" me to it 😅 <
https://trac.webkit.org/r246894
>
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