Closed Bug 2090970 Opened 21 days ago Closed 20 days ago

browser_console_restore.js fails when run twice in a row: Browser Console session state left true

Categories

(DevTools :: Console, task)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

browser_console_restore.js calls BrowserConsoleManager.storeBrowserConsoleSessionState() while the Browser Console is open and never resets the stored state. When mochitest-repeat runs the test a second time in the same browser, the first check fails: "Session state false by default - Got true, expected false".

The fix: at the end of the test, close the console that session restore reopened, then store the state again, which resets it to false.

The test stored a true session state while the Browser Console was open and left it in BrowserConsoleManager, so a second run of the test in the same browser failed its first check.

Blocks: 2090991
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/814f48c04f81 https://hg.mozilla.org/integration/autoland/rev/c0ace18088ef Reset the Browser Console session state at the end of browser_console_restore.js, r=devtools-reviewers,nchevobbe.
Status: ASSIGNED → RESOLVED
Closed: 20 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: