Closed Bug 1770195 Opened 2 years ago Closed 2 years ago

cleanup private method / internal command declarations in windowglobal/log.jsm

Categories

(Remote Protocol :: WebDriver BiDi, task, P3)

task
Points:
1

Tracking

(firefox102 fixed)

RESOLVED FIXED
102 Branch
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.

https://searchfox.org/mozilla-central/rev/7f729f601c0b738f870ae0ed49098f9268e250f9/remote/webdriver-bidi/modules/windowglobal/log.jsm#198

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: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d8d5494dd1a5
[bidi] cleanup method declarations in windowglobal/log.jsm r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Points: --- → 1
Whiteboard: [bidi-m3-mvp]
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: