Diff
Modified: trunk/LayoutTests/ChangeLog (246849 => 246850)
--- trunk/LayoutTests/ChangeLog 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/LayoutTests/ChangeLog 2019-06-26 22:25:48 UTC (rev 246850)
@@ -1,3 +1,14 @@
+2019-06-26 Joseph Pecoraro <[email protected]>
+
+ Web Inspector: Implement console.countReset
+ https://bugs.webkit.org/show_bug.cgi?id=199200
+
+ Reviewed by Devin Rousso.
+
+ * inspector/console/console-count-expected.txt:
+ * inspector/console/console-count.html:
+ * js/console-expected.txt:
+
2019-06-26 Myles C. Maxfield <[email protected]>
REGRESSION: ( r246394 ) webgpu/whlsl-buffer-fragment.html and webgpu/whlsl-buffer-vertex.html are failing
Modified: trunk/LayoutTests/inspector/console/console-count-expected.txt (246849 => 246850)
--- trunk/LayoutTests/inspector/console/console-count-expected.txt 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/LayoutTests/inspector/console/console-count-expected.txt 2019-06-26 22:25:48 UTC (rev 246850)
@@ -1,8 +1,8 @@
-Tests for the console.count API.
+Tests for the console.count and console.countReset APIs.
== Running test suite: console.count
--- Running test case: NoArguments
+-- Running test case: console.count.NoArguments
Global: 1
Global: 2
Global: 3
@@ -20,7 +20,7 @@
Global: 15
Global: 16
--- Running test case: WithLabel
+-- Running test case: console.count.WithLabel
alpha: 1
alpha: 2
beta: 1
@@ -42,3 +42,21 @@
beta: 5
alpha: 15
+-- Running test case: console.countReset.NoCounter
+PASS: Should produce a warning console message.
+Counter "missing-label-1" does not exist
+PASS: Should produce a warning console message.
+Counter "missing-label-2" does not exist
+
+-- Running test case: console.countReset.Basic
+reset-label: 1
+reset-label: 2
+reset-label: 3
+reset-label: 4
+reset-label: 5
+reset-label: 6
+reset-label: 1
+reset-label: 2
+reset-label: 1
+reset-label: 2
+
Modified: trunk/LayoutTests/inspector/console/console-count.html (246849 => 246850)
--- trunk/LayoutTests/inspector/console/console-count.html 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/LayoutTests/inspector/console/console-count.html 2019-06-26 22:25:48 UTC (rev 246850)
@@ -21,12 +21,25 @@
}
}
+function triggerConsoleResetWarnings() {
+ console.countReset("missing-label-1");
+ console.countReset("missing-label-2");
+}
+
+function triggerConsoleResetBasic() {
+ for (let i = 1; i <= 10; ++i) {
+ console.count("reset-label");
+ if (i === 6 || i === 8)
+ console.countReset("reset-label");
+ }
+}
+
function test()
{
let suite = InspectorTest.createAsyncSuite("console.count");
suite.addTestCase({
- name: "NoArguments",
+ name: "console.count.NoArguments",
description: "No arguments increments a shared global counter.",
test(resolve, reject) {
let seen = 0;
@@ -41,13 +54,13 @@
}
}
- InspectorTest.evaluateInPage("triggerCountNoArguments()"); // 15
- InspectorTest.evaluateInPage("console.count()"); // 1
+ InspectorTest.evaluateInPage(`triggerCountNoArguments()`); // 15
+ InspectorTest.evaluateInPage(`console.count()`); // 1
}
});
suite.addTestCase({
- name: "WithLabel",
+ name: "console.count.WithLabel",
description: "Labeled counters increment the label.",
test(resolve, reject) {
let seen = 0;
@@ -62,15 +75,56 @@
}
}
- InspectorTest.evaluateInPage("triggerLabeledCounters()");
+ InspectorTest.evaluateInPage(`triggerLabeledCounters()`);
}
});
+ suite.addTestCase({
+ name: "console.countReset.NoCounter",
+ description: "A reset of a non-existing counter should warn.",
+ test(resolve, reject) {
+ let seen = 0;
+ const expected = 2;
+ WI.consoleManager.addEventListener(WI.ConsoleManager.Event.MessageAdded, handler);
+ function handler(event) {
+ let message = event.data.message;
+ InspectorTest.expectEqual(message.level, WI.ConsoleMessage.MessageLevel.Warning, "Should produce a warning console message.");
+ InspectorTest.log(message.messageText);
+ if (++seen === expected) {
+ WI.consoleManager.removeEventListener(WI.ConsoleManager.Event.MessageAdded, handler);
+ resolve();
+ }
+ }
+
+ InspectorTest.evaluateInPage(`triggerConsoleResetWarnings()`);
+ }
+ });
+
+ suite.addTestCase({
+ name: "console.countReset.Basic",
+ description: "A reset of a non-existing counter should warn.",
+ test(resolve, reject) {
+ let seen = 0;
+ const expected = 10;
+ WI.consoleManager.addEventListener(WI.ConsoleManager.Event.MessageAdded, handler);
+ function handler(event) {
+ let message = event.data.message;
+ InspectorTest.log(message.messageText);
+ if (++seen === expected) {
+ WI.consoleManager.removeEventListener(WI.ConsoleManager.Event.MessageAdded, handler);
+ resolve();
+ }
+ }
+
+ InspectorTest.evaluateInPage(`triggerConsoleResetBasic()`);
+ }
+ });
+
suite.runTestCasesAndFinish();
}
</script>
</head>
<body _onload_="runTest()">
-<p>Tests for the console.count API.</p>
+<p>Tests for the console.count and console.countReset APIs.</p>
</body>
</html>
Modified: trunk/LayoutTests/js/console-expected.txt (246849 => 246850)
--- trunk/LayoutTests/js/console-expected.txt 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/LayoutTests/js/console-expected.txt 2019-06-26 22:25:48 UTC (rev 246850)
@@ -100,6 +100,13 @@
PASS descriptor.writable is true
PASS descriptor.enumerable is true
+console.countReset
+PASS typeof console.countReset is "function"
+PASS console.countReset.length is 0
+PASS descriptor.configurable is true
+PASS descriptor.writable is true
+PASS descriptor.enumerable is true
+
console.profile
PASS typeof console.profile is "function"
PASS console.profile.length is 0
Modified: trunk/Source/_javascript_Core/ChangeLog (246849 => 246850)
--- trunk/Source/_javascript_Core/ChangeLog 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-06-26 22:25:48 UTC (rev 246850)
@@ -1,3 +1,23 @@
+2019-06-26 Joseph Pecoraro <[email protected]>
+
+ Web Inspector: Implement console.countReset
+ https://bugs.webkit.org/show_bug.cgi?id=199200
+
+ Reviewed by Devin Rousso.
+
+ * inspector/JSGlobalObjectConsoleClient.cpp:
+ (Inspector::JSGlobalObjectConsoleClient::countReset):
+ * inspector/JSGlobalObjectConsoleClient.h:
+ * inspector/agents/InspectorConsoleAgent.cpp:
+ (Inspector::InspectorConsoleAgent::getCounterLabel):
+ (Inspector::InspectorConsoleAgent::count):
+ (Inspector::InspectorConsoleAgent::countReset):
+ * inspector/agents/InspectorConsoleAgent.h:
+ * runtime/ConsoleClient.h:
+ * runtime/ConsoleObject.cpp:
+ (JSC::ConsoleObject::finishCreation):
+ (JSC::consoleProtoFuncCountReset):
+
2019-06-26 Keith Miller <[email protected]>
remove unneeded didBecomePrototype() calls
Modified: trunk/Source/_javascript_Core/inspector/JSGlobalObjectConsoleClient.cpp (246849 => 246850)
--- trunk/Source/_javascript_Core/inspector/JSGlobalObjectConsoleClient.cpp 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/_javascript_Core/inspector/JSGlobalObjectConsoleClient.cpp 2019-06-26 22:25:48 UTC (rev 246850)
@@ -75,6 +75,11 @@
m_consoleAgent->count(exec, WTFMove(arguments));
}
+void JSGlobalObjectConsoleClient::countReset(ExecState* exec, Ref<ScriptArguments>&& arguments)
+{
+ m_consoleAgent->countReset(exec, WTFMove(arguments));
+}
+
void JSGlobalObjectConsoleClient::profile(JSC::ExecState*, const String& title)
{
if (!m_consoleAgent->enabled())
Modified: trunk/Source/_javascript_Core/inspector/JSGlobalObjectConsoleClient.h (246849 => 246850)
--- trunk/Source/_javascript_Core/inspector/JSGlobalObjectConsoleClient.h 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/_javascript_Core/inspector/JSGlobalObjectConsoleClient.h 2019-06-26 22:25:48 UTC (rev 246850)
@@ -50,6 +50,7 @@
protected:
void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::ExecState*, Ref<ScriptArguments>&&) override;
void count(JSC::ExecState*, Ref<ScriptArguments>&&) override;
+ void countReset(JSC::ExecState*, Ref<ScriptArguments>&&) override;
void profile(JSC::ExecState*, const String& title) override;
void profileEnd(JSC::ExecState*, const String& title) override;
void takeHeapSnapshot(JSC::ExecState*, const String& title) override;
Modified: trunk/Source/_javascript_Core/inspector/agents/InspectorConsoleAgent.cpp (246849 => 246850)
--- trunk/Source/_javascript_Core/inspector/agents/InspectorConsoleAgent.cpp 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/_javascript_Core/inspector/agents/InspectorConsoleAgent.cpp 2019-06-26 22:25:48 UTC (rev 246850)
@@ -208,15 +208,8 @@
m_frontendDispatcher->heapSnapshot(timestamp, snapshotData, title.isEmpty() ? nullptr : &title);
}
-void InspectorConsoleAgent::count(JSC::ExecState* state, Ref<ScriptArguments>&& arguments)
+void InspectorConsoleAgent::getCounterLabel(Ref<ScriptArguments>&& arguments, String& title, String& identifier)
{
- if (!m_injectedScriptManager.inspectorEnvironment().developerExtrasEnabled())
- return;
-
- Ref<ScriptCallStack> callStack = createScriptCallStackForConsole(state);
-
- String title;
- String identifier;
if (!arguments->argumentCount()) {
// '@' prefix for engine generated labels.
title = "Global"_s;
@@ -226,7 +219,17 @@
arguments->getFirstArgumentAsString(title);
identifier = makeString('#', title);
}
+}
+void InspectorConsoleAgent::count(JSC::ExecState* state, Ref<ScriptArguments>&& arguments)
+{
+ if (!m_injectedScriptManager.inspectorEnvironment().developerExtrasEnabled())
+ return;
+
+ String title;
+ String identifier;
+ getCounterLabel(WTFMove(arguments), title, identifier);
+
auto result = m_counts.add(identifier, 1);
if (!result.isNewEntry)
result.iterator->value += 1;
@@ -234,9 +237,32 @@
// FIXME: Web Inspector should have a better UI for counters, but for now we just log an updated counter value.
String message = makeString(title, ": ", result.iterator->value);
+ Ref<ScriptCallStack> callStack = createScriptCallStackForConsole(state);
addMessageToConsole(std::make_unique<ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Log, MessageLevel::Debug, message, WTFMove(callStack)));
}
+void InspectorConsoleAgent::countReset(JSC::ExecState*, Ref<ScriptArguments>&& arguments)
+{
+ if (!m_injectedScriptManager.inspectorEnvironment().developerExtrasEnabled())
+ return;
+
+ String title;
+ String identifier;
+ getCounterLabel(WTFMove(arguments), title, identifier);
+
+ auto it = m_counts.find(identifier);
+ if (it == m_counts.end()) {
+ // FIXME: Send an enum to the frontend for localization?
+ String warning = makeString("Counter \"", title, "\" does not exist");
+ addMessageToConsole(std::make_unique<ConsoleMessage>(MessageSource::ConsoleAPI, MessageType::Log, MessageLevel::Warning, warning));
+ return;
+ }
+
+ it->value = 0;
+
+ // FIXME: Web Inspector should have a better UI for counters, but for now we just log an updated counter value.
+}
+
static bool isGroupMessage(MessageType type)
{
return type == MessageType::StartGroup
Modified: trunk/Source/_javascript_Core/inspector/agents/InspectorConsoleAgent.h (246849 => 246850)
--- trunk/Source/_javascript_Core/inspector/agents/InspectorConsoleAgent.h 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/_javascript_Core/inspector/agents/InspectorConsoleAgent.h 2019-06-26 22:25:48 UTC (rev 246850)
@@ -75,11 +75,13 @@
void stopTiming(const String& title, Ref<ScriptCallStack>&&);
void takeHeapSnapshot(const String& title);
void count(JSC::ExecState*, Ref<ScriptArguments>&&);
+ void countReset(JSC::ExecState*, Ref<ScriptArguments>&&);
void getLoggingChannels(ErrorString&, RefPtr<JSON::ArrayOf<Protocol::Console::Channel>>&) override;
void setLoggingChannelLevel(ErrorString&, const String& channel, const String& level) override;
protected:
+ void getCounterLabel(Ref<ScriptArguments>&&, String& title, String& identifier);
void addConsoleMessage(std::unique_ptr<ConsoleMessage>);
InjectedScriptManager& m_injectedScriptManager;
Modified: trunk/Source/_javascript_Core/runtime/ConsoleClient.h (246849 => 246850)
--- trunk/Source/_javascript_Core/runtime/ConsoleClient.h 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/_javascript_Core/runtime/ConsoleClient.h 2019-06-26 22:25:48 UTC (rev 246850)
@@ -56,6 +56,7 @@
virtual void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) = 0;
virtual void count(ExecState*, Ref<Inspector::ScriptArguments>&&) = 0;
+ virtual void countReset(ExecState*, Ref<Inspector::ScriptArguments>&&) = 0;
virtual void profile(ExecState*, const String& title) = 0;
virtual void profileEnd(ExecState*, const String& title) = 0;
virtual void takeHeapSnapshot(ExecState*, const String& title) = 0;
Modified: trunk/Source/_javascript_Core/runtime/ConsoleObject.cpp (246849 => 246850)
--- trunk/Source/_javascript_Core/runtime/ConsoleObject.cpp 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/_javascript_Core/runtime/ConsoleObject.cpp 2019-06-26 22:25:48 UTC (rev 246850)
@@ -48,6 +48,7 @@
static EncodedJSValue JSC_HOST_CALL consoleProtoFuncTrace(ExecState*);
static EncodedJSValue JSC_HOST_CALL consoleProtoFuncAssert(ExecState*);
static EncodedJSValue JSC_HOST_CALL consoleProtoFuncCount(ExecState*);
+static EncodedJSValue JSC_HOST_CALL consoleProtoFuncCountReset(ExecState*);
static EncodedJSValue JSC_HOST_CALL consoleProtoFuncProfile(ExecState*);
static EncodedJSValue JSC_HOST_CALL consoleProtoFuncProfileEnd(ExecState*);
static EncodedJSValue JSC_HOST_CALL consoleProtoFuncTakeHeapSnapshot(ExecState*);
@@ -90,6 +91,7 @@
JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("trace", consoleProtoFuncTrace, static_cast<unsigned>(PropertyAttribute::None), 0);
JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("assert", consoleProtoFuncAssert, static_cast<unsigned>(PropertyAttribute::None), 0);
JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->count, consoleProtoFuncCount, static_cast<unsigned>(PropertyAttribute::None), 0);
+ JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("countReset", consoleProtoFuncCountReset, static_cast<unsigned>(PropertyAttribute::None), 0);
JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("profile", consoleProtoFuncProfile, static_cast<unsigned>(PropertyAttribute::None), 0);
JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("profileEnd", consoleProtoFuncProfileEnd, static_cast<unsigned>(PropertyAttribute::None), 0);
JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION("time", consoleProtoFuncTime, static_cast<unsigned>(PropertyAttribute::None), 0);
@@ -225,6 +227,16 @@
return JSValue::encode(jsUndefined());
}
+static EncodedJSValue JSC_HOST_CALL consoleProtoFuncCountReset(ExecState* exec)
+{
+ ConsoleClient* client = exec->lexicalGlobalObject()->consoleClient();
+ if (!client)
+ return JSValue::encode(jsUndefined());
+
+ client->countReset(exec, Inspector::createScriptArguments(exec, 0));
+ return JSValue::encode(jsUndefined());
+}
+
static EncodedJSValue JSC_HOST_CALL consoleProtoFuncProfile(ExecState* exec)
{
VM& vm = exec->vm();
Modified: trunk/Source/WebCore/ChangeLog (246849 => 246850)
--- trunk/Source/WebCore/ChangeLog 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/ChangeLog 2019-06-26 22:25:48 UTC (rev 246850)
@@ -1,3 +1,27 @@
+2019-06-26 Joseph Pecoraro <[email protected]>
+
+ Web Inspector: Implement console.countReset
+ https://bugs.webkit.org/show_bug.cgi?id=199200
+
+ Reviewed by Devin Rousso.
+
+ Updated existing tests.
+
+ * inspector/InspectorInstrumentation.cpp:
+ (WebCore::InspectorInstrumentation::consoleCountImpl):
+ (WebCore::InspectorInstrumentation::consoleCountResetImpl):
+ * inspector/InspectorInstrumentation.h:
+ (WebCore::InspectorInstrumentation::consoleCountReset):
+ * page/PageConsoleClient.cpp:
+ (WebCore::PageConsoleClient::countReset):
+ * page/PageConsoleClient.h:
+ * workers/WorkerConsoleClient.cpp:
+ (WebCore::WorkerConsoleClient::countReset):
+ * workers/WorkerConsoleClient.h:
+ * worklets/WorkletConsoleClient.cpp:
+ (WebCore::WorkletConsoleClient::countReset):
+ * worklets/WorkletConsoleClient.h:
+
2019-06-26 Antoine Quint <[email protected]>
[Pointer Events] Respect pointer capture when dispatching mouse boundary events and updating :hover
Modified: trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp (246849 => 246850)
--- trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp 2019-06-26 22:25:48 UTC (rev 246850)
@@ -853,13 +853,16 @@
void InspectorInstrumentation::consoleCountImpl(InstrumentingAgents& instrumentingAgents, JSC::ExecState* state, Ref<ScriptArguments>&& arguments)
{
- if (!instrumentingAgents.inspectorEnvironment().developerExtrasEnabled())
- return;
-
if (WebConsoleAgent* consoleAgent = instrumentingAgents.webConsoleAgent())
consoleAgent->count(state, WTFMove(arguments));
}
+void InspectorInstrumentation::consoleCountResetImpl(InstrumentingAgents& instrumentingAgents, JSC::ExecState* state, Ref<ScriptArguments>&& arguments)
+{
+ if (WebConsoleAgent* consoleAgent = instrumentingAgents.webConsoleAgent())
+ consoleAgent->countReset(state, WTFMove(arguments));
+}
+
void InspectorInstrumentation::takeHeapSnapshotImpl(InstrumentingAgents& instrumentingAgents, const String& title)
{
if (WebConsoleAgent* consoleAgent = instrumentingAgents.webConsoleAgent())
Modified: trunk/Source/WebCore/inspector/InspectorInstrumentation.h (246849 => 246850)
--- trunk/Source/WebCore/inspector/InspectorInstrumentation.h 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/inspector/InspectorInstrumentation.h 2019-06-26 22:25:48 UTC (rev 246850)
@@ -223,6 +223,9 @@
static void consoleCount(Page&, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&);
static void consoleCount(WorkerGlobalScope&, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&);
+ static void consoleCountReset(Page&, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&);
+ static void consoleCountReset(WorkerGlobalScope&, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&);
+
static void takeHeapSnapshot(Frame&, const String& title);
static void startConsoleTiming(Frame&, const String& title);
static void startConsoleTiming(WorkerGlobalScope&, const String& title);
@@ -403,6 +406,7 @@
static void addMessageToConsoleImpl(InstrumentingAgents&, std::unique_ptr<Inspector::ConsoleMessage>);
static void consoleCountImpl(InstrumentingAgents&, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&);
+ static void consoleCountResetImpl(InstrumentingAgents&, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&);
static void takeHeapSnapshotImpl(InstrumentingAgents&, const String& title);
static void startConsoleTimingImpl(InstrumentingAgents&, Frame&, const String& title);
static void startConsoleTimingImpl(InstrumentingAgents&, const String& title);
@@ -1393,6 +1397,16 @@
consoleCountImpl(instrumentingAgentsForWorkerGlobalScope(workerGlobalScope), state, WTFMove(arguments));
}
+inline void InspectorInstrumentation::consoleCountReset(Page& page, JSC::ExecState* state, Ref<Inspector::ScriptArguments>&& arguments)
+{
+ consoleCountResetImpl(instrumentingAgentsForPage(page), state, WTFMove(arguments));
+}
+
+inline void InspectorInstrumentation::consoleCountReset(WorkerGlobalScope& workerGlobalScope, JSC::ExecState* state, Ref<Inspector::ScriptArguments>&& arguments)
+{
+ consoleCountResetImpl(instrumentingAgentsForWorkerGlobalScope(workerGlobalScope), state, WTFMove(arguments));
+}
+
inline void InspectorInstrumentation::takeHeapSnapshot(Frame& frame, const String& title)
{
FAST_RETURN_IF_NO_FRONTENDS(void());
Modified: trunk/Source/WebCore/page/PageConsoleClient.cpp (246849 => 246850)
--- trunk/Source/WebCore/page/PageConsoleClient.cpp 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/page/PageConsoleClient.cpp 2019-06-26 22:25:48 UTC (rev 246850)
@@ -175,6 +175,11 @@
InspectorInstrumentation::consoleCount(m_page, exec, WTFMove(arguments));
}
+void PageConsoleClient::countReset(JSC::ExecState* exec, Ref<ScriptArguments>&& arguments)
+{
+ InspectorInstrumentation::consoleCountReset(m_page, exec, WTFMove(arguments));
+}
+
void PageConsoleClient::profile(JSC::ExecState* exec, const String& title)
{
// FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler
Modified: trunk/Source/WebCore/page/PageConsoleClient.h (246849 => 246850)
--- trunk/Source/WebCore/page/PageConsoleClient.h 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/page/PageConsoleClient.h 2019-06-26 22:25:48 UTC (rev 246850)
@@ -68,6 +68,7 @@
protected:
void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) override;
void count(JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) override;
+ void countReset(JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) override;
void profile(JSC::ExecState*, const String& title) override;
void profileEnd(JSC::ExecState*, const String& title) override;
void takeHeapSnapshot(JSC::ExecState*, const String& title) override;
Modified: trunk/Source/WebCore/workers/WorkerConsoleClient.cpp (246849 => 246850)
--- trunk/Source/WebCore/workers/WorkerConsoleClient.cpp 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/workers/WorkerConsoleClient.cpp 2019-06-26 22:25:48 UTC (rev 246850)
@@ -55,6 +55,11 @@
InspectorInstrumentation::consoleCount(m_workerGlobalScope, exec, WTFMove(arguments));
}
+void WorkerConsoleClient::countReset(JSC::ExecState* exec, Ref<ScriptArguments>&& arguments)
+{
+ InspectorInstrumentation::consoleCountReset(m_workerGlobalScope, exec, WTFMove(arguments));
+}
+
void WorkerConsoleClient::time(JSC::ExecState*, const String& title)
{
InspectorInstrumentation::startConsoleTiming(m_workerGlobalScope, title);
Modified: trunk/Source/WebCore/workers/WorkerConsoleClient.h (246849 => 246850)
--- trunk/Source/WebCore/workers/WorkerConsoleClient.h 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/workers/WorkerConsoleClient.h 2019-06-26 22:25:48 UTC (rev 246850)
@@ -44,6 +44,7 @@
protected:
void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) override;
void count(JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) override;
+ void countReset(JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) override;
void profile(JSC::ExecState*, const String& title) override;
void profileEnd(JSC::ExecState*, const String& title) override;
void takeHeapSnapshot(JSC::ExecState*, const String& title) override;
Modified: trunk/Source/WebCore/worklets/WorkletConsoleClient.cpp (246849 => 246850)
--- trunk/Source/WebCore/worklets/WorkletConsoleClient.cpp 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/worklets/WorkletConsoleClient.cpp 2019-06-26 22:25:48 UTC (rev 246850)
@@ -53,6 +53,7 @@
}
void WorkletConsoleClient::count(JSC::ExecState*, Ref<ScriptArguments>&&) { }
+void WorkletConsoleClient::countReset(JSC::ExecState*, Ref<ScriptArguments>&&) { }
void WorkletConsoleClient::time(JSC::ExecState*, const String&) { }
void WorkletConsoleClient::timeLog(JSC::ExecState*, const String&, Ref<ScriptArguments>&&) { }
Modified: trunk/Source/WebCore/worklets/WorkletConsoleClient.h (246849 => 246850)
--- trunk/Source/WebCore/worklets/WorkletConsoleClient.h 2019-06-26 22:11:30 UTC (rev 246849)
+++ trunk/Source/WebCore/worklets/WorkletConsoleClient.h 2019-06-26 22:25:48 UTC (rev 246850)
@@ -46,6 +46,7 @@
private:
void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) final;
void count(JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) final;
+ void countReset(JSC::ExecState*, Ref<Inspector::ScriptArguments>&&) final;
void profile(JSC::ExecState*, const String& title) final;
void profileEnd(JSC::ExecState*, const String& title) final;
void takeHeapSnapshot(JSC::ExecState*, const String& title) final;