Closed Bug 2067909 Opened 2 months ago Closed 2 months ago

Various contentanalysis browser tests failing in Enterprise

Categories

(Enterprise Products :: Firefox, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmendez, Assigned: jmendez)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

Changes made for Bug 2058222 triggered failures in various content analysis browser tests.

The trigger is primarily because the central entry point to analysis requests now early-returns if content analysis is "disabled". Being enabled in that context means that content analysis has to have been enabled by policy or via a test-specific CLI arg (to avoid someone turning on content analysis simply by flipping prefs). These tests only flipped the prefs which was enough for the mock content analysis setup before but now triggers the early-return path.

A separate trigger that affects the print tests is that the CA tests for printing use PrintHelper.withTestPage, which has leftover bare popPrefEnv calls (Bug 2067888). These pops would clear the enabling of content analysis in the middle of the test and combined with the early-return path, that triggered test failures.

Authored by https://github.com/jonathanmendez
https://github.com/mozilla/enterprise-firefox/commit/1bc9201bbc8d4a4d1e77dea6f4a4be3b78b6eb46
[enterprise-main] Bug 2067909 - Fix test environment for content analysis browser tests.

Authored by https://github.com/jonathanmendez
https://github.com/mozilla/enterprise-firefox/commit/c9d44e885d09fb584b141a426813b777fe5a1872
[enterprise-main] Merge pull request #1369 from jonathanmendez/fix-dlp-tests

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Flags: qe-verify-
Blocks: 2086267
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: