Closed Bug 2092296 Opened 15 days ago Closed 11 days ago

browser_privbrowsing_perwindowpb.js fails when run twice: 'In PB mode, we don't add any entries - 1 == 0'

Categories

(Toolkit :: Form Manager, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js saves a field=value form history entry in its non-private step and never removes it. When the test runs again in the same profile (the upcoming mochitest-browser-chrome-repeat jobs, or --verify), the private-window check finds the previous run's entry and fails with In PB mode, we don't add any entries - 1 == 0.

The patch removes the entry in a cleanup function and drops the verify-standalone skip-if added in bug 1995208.

The entry the non-private step saves outlives the test, so a second run finds it during its private-window check. Also remove the verify-standalone skip-if from bug 1995208.

Blocks: 2092566
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d6cb1088a7f1 https://hg.mozilla.org/integration/autoland/rev/aa54c70d5e45 Remove the form history entry browser_privbrowsing_perwindowpb.js adds, r=credential-management-reviewers,mtigley.
Status: ASSIGNED → RESOLVED
Closed: 11 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: