Bug 234778

Summary: Console message functions need consistent terminology
Product: WebKit Reporter: Darin Adler <darin>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: ASSIGNED ---    
Severity: Normal CC: inspector-bugzilla-changes, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Darin Adler 2022-01-01 01:46:44 PST
Here are the names of functions to put messages in the JavaScript console that I have found:

addConsoleMessage
addMessage
convertToExceptionAndLog
logConsolePersistencyError
logError
logExceptionToConsole
logMockScrollbarsControllerMessage
logSecurityError
printErrorMessage
printToConsole
reportMessage

Note that some of them "add" the messages, some "log" them, some "print" them, and some "report" them. But they are all doing the same thing and so should use the same verb I think.
Comment 1 Darin Adler 2022-01-01 01:47:27 PST
Also, some mention the console, but the ones that say "log" mostly don’t mention the console.
Comment 2 Radar WebKit Bug Importer 2022-01-08 01:47:18 PST
<rdar://problem/87289551>