Closed Bug 1646409 Opened 5 years ago Closed 5 years ago

Remove unecessary `gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);` in devtools tests

Categories

(DevTools :: General, task)

task

Tracking

(firefox79 fixed)

RESOLVED FIXED
Firefox 79
Tracking Status
firefox79 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We copy pasted uncesarry gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser); in many devtools tests:
https://searchfox.org/mozilla-central/search?q=gBrowser.selectedTab+%3D+BrowserTestUtils.addTab%28gBrowser%29%3B&path=devtools%2F&case=true&regexp=false
as they are often followed by a call to addTab(...), without expecting to have more than one additional tab being opened.

Assignee: nobody → poirot.alex
Summary: Remove unecessary `gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);` is devtools tests → Remove unecessary `gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);` in devtools tests
Attachment #9157565 - Attachment description: Bug 1646409 - Remove unecessary `gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);` is devtools tests. → Bug 1646409 - Remove unecessary `gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);` in devtools tests.
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f69ae64240f5 Remove unecessary `gBrowser.selectedTab = BrowserTestUtils.addTab(gBrowser);` in devtools tests. r=nchevobbe
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: