Closed
Bug 1443861
Opened 7 years ago
Closed 6 years ago
Replace promiseWaitForCondition with TestUtils.waitForCondition in browser_devices_get_user_media_anim.js
Categories
(Firefox :: Site Permissions, enhancement, P5)
Tracking
()
RESOLVED
FIXED
Firefox 63
People
(Reporter: johannh, Assigned: arshadkazmi42, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(1 file)
This is a good first bug for newcomers to Firefox development.
promiseWaitForCondition in the browser_devices_get_user_media_anim.js test file can be replaced by the TestUtils.waitForCondition[0] utility function.
The code in question is here: https://searchfox.org/mozilla-central/rev/efce4ceddfbe5fe4e2d74f1aed93894bada9b273/browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js#62
For instructions on how to get your local build of Firefox up and running and submit your patch, see https://developer.mozilla.org/en-US/docs/Introduction.
You can run this test with the ./mach mochitest command:
./mach mochitest browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js
Please leave a comment if you would like to be assigned to this bug and feel free to ask questions here or via IRC if you're stuck.
[0] https://searchfox.org/mozilla-central/rev/efce4ceddfbe5fe4e2d74f1aed93894bada9b273/testing/modules/TestUtils.jsm#114
Comment 1•7 years ago
|
||
Hey! Can i work on this?
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → hritvi2801
Status: NEW → ASSIGNED
Comment 2•7 years ago
|
||
Can u please tell me from where to start :). Thankyou
Flags: needinfo?(jhofmann)
Reporter | ||
Comment 3•7 years ago
|
||
Hey, sorry, this slipped through the cracks for me. What exactly do you need help with? As mentioned, the instructions are here: https://developer.mozilla.org/en-US/docs/Introduction
The whole process of setting up is a bit lengthy at the beginning, so it doesn't really make sense for me to write it down again. I'm happy to answer any questions or help troubleshoot any problems you may encounter following that document...
Thanks!
Flags: needinfo?(jhofmann)
Reporter | ||
Comment 4•7 years ago
|
||
Hi Hritvi, I'm going to unassign you for now. If you're still interested in taking up this bug, please let me know!
Assignee: hritvi2801 → nobody
Status: ASSIGNED → NEW
Comment 5•7 years ago
|
||
Hey Johann! I am a newcomer to the FireFox development and was wondering if I can be assigned to this bug?
Reporter | ||
Comment 6•7 years ago
|
||
(In reply to vraghubir0418 from comment #5)
> Hey Johann! I am a newcomer to the FireFox development and was wondering if
> I can be assigned to this bug?
Hi! I just assigned you to bug 1445261, I hope that works as a good first bug for now! Feel free to attack this one once you're done with the other bug, otherwise I also have plenty of good beginner bugs in the backlog. Just let me know!
Thanks!
Johann,
I am in the same boat as vraghublr! I have build firefox per the instructions and am looking to tackle a first bug. Can I be assigned to this one or a different one?
Thanks!
Reporter | ||
Comment 8•7 years ago
|
||
There you go, please let me know if you have any questions!
Assignee: nobody → mitchellslavens
Status: NEW → ASSIGNED
Johann,
So I committed a change and pushed it using hg push review. I think my commit message may have been incorrect, though. When I view the log it doesn't show the format "Bug - 1443861" like the others do. I did not format it like I should have. What should I do at this point?
Thanks for the help.
Comment 10•7 years ago
|
||
Johann,
Any word on this? I'd like to start working on another bug if I did this one properly.
Thanks
Reporter | ||
Comment 11•7 years ago
|
||
(In reply to Mitchell from comment #10)
> Johann,
>
> Any word on this? I'd like to start working on another bug if I did this one
> properly.
>
> Thanks
Hi Mitchell, sorry for the delay, had a long public easter holiday :)
What does your commit message say right now? You can always amend it using
hg commit --amend
and do hg push review again. Otherwise you can just attach the patch manually using Bugzilla.
If you run into other issues it might be good to contact me on IRC (https://wiki.mozilla.org/IRC). Keep in mind that my timezone is UTC+2.
Reporter | ||
Comment 12•7 years ago
|
||
Hi Mitchell, are you still working on this? :)
Flags: needinfo?(mitchellslavens)
Reporter | ||
Updated•7 years ago
|
Assignee: mitchellslavens → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(mitchellslavens)
Comment 13•7 years ago
|
||
Johann,
Sorry about that, I have been very busy. When I tried to append my commit message I ended up running into some issue. I should be able to work on a bug this Sunday at the earliest. If this can remain assigned to me until I get back to town I can work on this one. Otherwise I can look for a new one to work on.
Thanks
Reporter | ||
Comment 14•7 years ago
|
||
No worries, let me know if you need help!
Assignee: nobody → mitchellslavens
Status: NEW → ASSIGNED
Comment 15•7 years ago
|
||
Johann,
At the moment and when I try to use hg I get the following error. "ignoring unknown working parent e9a85d0aa974" I know I must have done something to mess up my repo. Any suggestions on how to fix this?
Thanks,
Mitchell Slavens
Reporter | ||
Comment 16•7 years ago
|
||
Not sure what it is with this bug for me. I'm really sorry for missing this, it's usually best to set needinfo? flags on questions. I remember answering you on IRC though, but you might not have caught it. I'm not 100% sure where that message comes from, but you should check whether it's an actual error or just a warning (in which case you can still do "hg commit" and "hg export" and so on).
It's probably really best to tackle this on IRC so please feel free to contact me again any time.
Thanks
Reporter | ||
Comment 17•6 years ago
|
||
Unassigning for inactivity, let me know if anyone wants to pick this one up.
Assignee: mitchellslavens → nobody
Status: ASSIGNED → NEW
Updated•6 years ago
|
Assignee: nobody → arshadkazmi42
Assignee | ||
Comment 19•6 years ago
|
||
So I tried doing this change but getting error saying
`Uncaught exception - at chrome://mochitests/content/browser/browser/base/content/test/webrtc/browser_devices_get_user_media_anim.js:62 - TypeError: TestUtils.waitForCondition[0] is not a functio`
I have made this change
Changed this
`await promiseWaitForCondition(() => !tab.getAttribute("sharing"));`
to this
`await TestUtils.waitForCondition[0](() => !tab.getAttribute("sharing"));`
I event tried doing this
`await BrowserTestUtils.waitForCondition[0](() => !tab.getAttribute("sharing"));`
Is there something which I am missing here?
Reporter | ||
Comment 20•6 years ago
|
||
Hey, thanks for helping out!
I see that I was a little ambiguous in comment 0, the "[0]" in this case was just a reference to the URL at the bottom, not part of the JS syntax. So if you change "TestUtils.waitForCondition[0]" to "TestUtils.waitForCondition" it should work fine :)
Flags: needinfo?(jhofmann)
Assignee | ||
Comment 21•6 years ago
|
||
Oh. Yes. Just seen your full comment now. By mad.
Made that change and tested the script. Pushing code for review to Phabricator
Assignee | ||
Comment 22•6 years ago
|
||
Typo spotted :P
By mad => My Bad
:P :P
Assignee | ||
Comment 23•6 years ago
|
||
Assignee | ||
Comment 24•6 years ago
|
||
Added code for review in Phabricator.
https://phabricator.services.mozilla.com/D4293
I am not sure whom to add as reviewer. Should I add you?
Flags: needinfo?(jhofmann)
Reporter | ||
Comment 25•6 years ago
|
||
(In reply to Arshad Kazmi from comment #24)
> Added code for review in Phabricator.
>
> https://phabricator.services.mozilla.com/D4293
>
> I am not sure whom to add as reviewer. Should I add you?
Yup, that works, thanks!
Flags: needinfo?(jhofmann)
Assignee | ||
Comment 26•6 years ago
|
||
Added you as reviewer!
Reporter | ||
Comment 27•6 years ago
|
||
Comment on attachment 9004054 [details]
Bug 1443861 - Replace promiseWaitForCondition with TestUtils.waitForCondition
Johann Hofmann [:johannh] has approved the revision.
Attachment #9004054 -
Flags: review+
Assignee | ||
Comment 28•6 years ago
|
||
Thanks :)
This is my first approved patch :)
Assignee | ||
Comment 29•6 years ago
|
||
What are the next steps here? do i have to do anything else?
Flags: needinfo?(jhofmann)
Reporter | ||
Comment 30•6 years ago
|
||
Congrats :)
To get this checked in, you'll have to set the checkin-needed keyword in Bugzilla. Since you probably don't have editbugs access yet, I can do it for you.
Let me know if you want to work on something else!
Flags: needinfo?(jhofmann)
Reporter | ||
Updated•6 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 31•6 years ago
|
||
Thanks for adding checkin-needed keyword.
And Yes. I want to work on more bugs.
I have added two more patches in Phabricator for review.
I am still looking for bugs which I can work on. Do you have anything in your mind which I can take up?
Flags: needinfo?(jhofmann)
Reporter | ||
Comment 32•6 years ago
|
||
(In reply to Arshad Kazmi from comment #31)
> Thanks for adding checkin-needed keyword.
>
> And Yes. I want to work on more bugs.
>
> I have added two more patches in Phabricator for review.
>
> I am still looking for bugs which I can work on. Do you have anything in
> your mind which I can take up?
Great! How about bug 1486313? It's more cleanup work but that's a great way to get into the contributing workflow.
Flags: needinfo?(jhofmann)
Comment 33•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Comment 34•6 years ago
|
||
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8d42de3d9245
Replace promiseWaitForCondition with TestUtils.waitForCondition
Assignee | ||
Comment 35•6 years ago
|
||
:johannh.
Sure I will look into that bug
Updated•6 years ago
|
status-firefox61:
--- → wontfix
status-firefox62:
--- → wontfix
You need to log in
before you can comment on or make changes to this bug.
Description
•