Closed Bug 1776377 Opened 2 years ago Closed 2 years ago

Start using private fields in MessageHandler

Categories

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

task

Tracking

(firefox105 fixed)

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: Sasha, Assigned: harshraitth2, Mentored)

Details

(Whiteboard: [webdriver:m4][webdriver:external][lang=js])

Attachments

(1 file)

At the moment, we use in MessageHandler (https://searchfox.org/mozilla-central/source/remote/shared/messagehandler/MessageHandler.jsm) prefix _ to indicate internal properties. Instead, we should use JavaScript private fields to make it consistent with other classes.

Priority: -- → P3
Whiteboard: [webdriver:backlog]

Examples for private fields can be found in the following log module for WebDriver BiDi:
https://searchfox.org/mozilla-central/rev/5b2d2863bd315f232a3f769f76e0eb16cdca7cb0/remote/webdriver-bidi/modules/windowglobal/log.jsm

This looks like a nice bug for mentoring.

Mentor: hskupin
Whiteboard: [webdriver:backlog] → [webdriver:backlog][lang=js]

Hello, I am new to open source contribution and want to start my journey with it, I would love to take on this issue but i do not know where to start. Can someone help?

Hi Harshraitth2! Sorry for the delay in the response but I was away and just got back. It's great to hear that you want to contribute to our project and also learn new stuff. To get started I would propose to have a look at https://firefox-source-docs.mozilla.org/contributing/index.html for a generic getting started guide.

Then the related code that needs modification is under /remote/shared/messagehandler. Feel free to ask any questions in https://chat.mozilla.org/#/room/#webdriver:mozilla.org as well in case you have issues.

Flags: needinfo?(harshraitth2)

Hey whimboo, I followed the getting started guide for starting with the contribution, and i have also made changes in the specified file, while raising a revsion it says no reviewers added, so i think i messed up somewhere while committing the changes.

Flags: needinfo?(harshraitth2)
Assignee: nobody → harshraitth2
Status: NEW → ASSIGNED
Attachment #9290277 - Attachment description: Bug 1776377 changed MessageHandler to use private class fields. r=whimboo → Bug 1776377 changed MessageHandler classes to use private class fields. r=whimboo
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ba39a7d457b7 changed MessageHandler classes to use private class fields. r=webdriver-reviewers,jdescottes
Mentor: hskupin → jdescottes
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Priority: P3 → P1
Whiteboard: [webdriver:backlog][lang=js] → [webdriver:m4] [lang=js]
Whiteboard: [webdriver:m4] [lang=js] → [webdriver:m4][webdriver:external][lang=js]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: