cleanup private method / internal command declarations in windowglobal/log.jsm
Categories
(Remote Protocol :: WebDriver BiDi, task, P3)
Tracking
(firefox102 fixed)
| Tracking | Status | |
|---|---|---|
| firefox102 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
Details
(Whiteboard: [bidi-m3-mvp])
Attachments
(1 file)
We are now using private methods in webdriver bidi modules. Methods starting with an underscore are supposed to be internal commands.
_getLogEntryLevelFromConsoleMethod was probably created before we started to follow this rule, but it's now confusing because it looks like it's an internal command whereas it's just a private method.
Should be renamed to #getLogEntryLevelFromConsoleMethod and moved before #onConsoleAPIMessage for fix alphabetical sorting of methods.
Also the comments in the file are incorrect: https://searchfox.org/mozilla-central/rev/7f729f601c0b738f870ae0ed49098f9268e250f9/remote/webdriver-bidi/modules/windowglobal/log.jsm#51 should actually say "Internal commands", and the 3 internal commands should be declared at the end of the class (see https://searchfox.org/mozilla-central/source/remote/webdriver-bidi/modules/windowglobal/browsingContext.jsm for a proper example).
| Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Description
•