Closed Bug 1622274 Opened 5 years ago Closed 5 years ago

Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_temporary_permissions_navigation.js

Categories

(Firefox :: General, enhancement, P5)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 76
Tracking Status
firefox76 --- fixed

People

(Reporter: prathiksha, Assigned: aleja533, Mentored)

Details

Attachments

(1 file)

This is a good first bug for newcomers to Firefox development.

BrowserTestUtils.waitForCondition in browser_temporary_permissions_navigation.js[0] can be replaced by TestUtils.waitForCondition.

You can run this test with the ./mach test command:
./mach test browser/base/content/test/permissions/browser_temporary_permissions_navigation.js

Please leave a comment if you would like to be assigned to this bug. Feel free to contact us via Matrix in the #osfcep channel or leave a comment here if you're stuck.

[0] https://searchfox.org/mozilla-central/source/browser/base/content/test/permissions/browser_temporary_permissions_navigation.js

I want to work on this bug

Assignee: nobody → aleja533
Status: NEW → ASSIGNED

I run the test and it's pass. Now what would be the next step?

Flags: needinfo?(prathikshaprasadsuman)

(In reply to aleja533 from comment #2)

I run the test and it's pass. Now what would be the next step?

So the test is expected to pass with or without changing BrowserTestUtils to TestUtils. This good-first-bug is more of a task of cleaning up something in the code. The intent is to get beginners acquainted with creating patches, the setup, reviews, Mercurial, running tests, etc. You need to replace BrowserTestUtils with TestUtils in your patch as explained in the bug description.

Flags: needinfo?(prathikshaprasadsuman)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID

Did you mean to close this? I don't think so. Your next step would be to make the suggested changes and submit a patch. :)

Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Status: REOPENED → NEW
Attachment #9134129 - Attachment description: Bug 1622274 - In the file browser_temporary permissions navigation.js [0] replace Browser TestUtils.waitForCondition with BrowserTestUtils.waitForCondition. r=prathiksha → Bug 1622274 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_temporary permissions navigation.js. r=prathiksha
Pushed by prathikshaprasadsuman@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2092cd5fe532 Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_temporary permissions navigation.js. r=prathiksha
Status: NEW → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: