Bug: Frequent toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | single tracking bug
Status: NEW
Priority: P5
Created: 2025-02-15 06:42:33+00:00
Resolved: 2025-03-04 14:44:35+00:00

**Filed by:** amarc [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=495100754&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/U7jitmrTTI-7QEjtC6g9iA/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2025-02-15T06:00:26.486Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request has correct operationTypeForDisplay - 
[task 2025-02-15T06:00:26.488Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request filePath should be empty - 
[task 2025-02-15T06:00:26.489Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request textContent should match - 
[task 2025-02-15T06:00:26.489Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request userActionRequestsCount should match - 
[task 2025-02-15T06:00:26.490Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request userActionId should match - 
[task 2025-02-15T06:00:26.491Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request userActionId should not be empty - 
[task 2025-02-15T06:00:26.491Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request printDataHandle should not be 0 - 
[task 2025-02-15T06:00:26.492Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request printDataSize should not be 0 - 
[task 2025-02-15T06:00:26.492Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request requestToken should not be empty - 
[task 2025-02-15T06:00:26.493Z] 06:00:26     INFO - Buffered messages finished
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | Copy and paste html 2 - "Test r Text" == "Test <b>Bold</b>" - got "Test r Text", expected "Test <b>Bold</b>" (operator ==)
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - Stack trace:
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - @chrome://mochitests/content/browser/toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js:290:12
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - execute@resource://testing-common/SpecialPowersSandbox.sys.mjs:139:12
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - _spawnTask@resource://testing-common/SpecialPowersChild.sys.mjs:1620:15
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - receiveMessage@resource://testing-common/SpecialPowersChild.sys.mjs:255:21
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - JSActor query*receiveMessage@resource://testing-common/SpecialPowersParent.sys.mjs:1384:14
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - JSActor query*spawn@resource://testing-common/SpecialPowersChild.sys.mjs:1549:17
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - testClipboardWithContentAnalysis@chrome://mochitests/content/browser/toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js:287:23
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - async*testClipboardWithContentAnalysisBlockCheckPlainTextOnly@chrome://mochitests/content/browser/toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js:476:11
[task 2025-02-15T06:00:26.495Z] 06:00:26     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2025-02-15T06:00:26.496Z] 06:00:26     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2025-02-15T06:00:26.496Z] 06:00:26     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2025-02-15T06:00:26.496Z] 06:00:26     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2025-02-15T06:00:26.496Z] 06:00:26     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2025-02-15T06:00:26.497Z] 06:00:26     INFO - GECKO(7036) | must wait for focus in content
[task 2025-02-15T06:00:26.497Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | Correct number of calls to Content Analysis - 
[task 2025-02-15T06:00:26.497Z] 06:00:26     INFO - Not taking screenshot here: see the one that was previously logged
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | Paste after copy image - "<img id=\"img\" tabindex=\"1\" src=\"http://example.org/browser/browser/base/content/test/general/moz.png\">Test r Text" == "<img id=\"img\" tabindex=\"1\" src=\"http://example.org/browser/browser/base/content/test/general/moz.png\">Test <b>Bold</b>" - got "<img id=\"img\" tabindex=\"1\" src=\"http://example.org/browser/browser/base/content/test/general/moz.png\">Test r Text", expected "<img id=\"img\" tabindex=\"1\" src=\"http://example.org/browser/browser/base/content/test/general/moz.png\">Test <b>Bold</b>" (operator ==)
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - Stack trace:
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - @chrome://mochitests/content/browser/toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js:388:14
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - execute@resource://testing-common/SpecialPowersSandbox.sys.mjs:139:12
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - _spawnTask@resource://testing-common/SpecialPowersChild.sys.mjs:1620:15
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - receiveMessage@resource://testing-common/SpecialPowersChild.sys.mjs:255:21
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - JSActor query*receiveMessage@resource://testing-common/SpecialPowersParent.sys.mjs:1384:14
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - JSActor query*spawn@resource://testing-common/SpecialPowersChild.sys.mjs:1549:17
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - testClipboardWithContentAnalysis@chrome://mochitests/content/browser/toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js:367:23
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - async*testClipboardWithContentAnalysisBlockCheckPlainTextOnly@chrome://mochitests/content/browser/toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js:476:11
[task 2025-02-15T06:00:26.501Z] 06:00:26     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1147:26
[task 2025-02-15T06:00:26.502Z] 06:00:26     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1219:18
[task 2025-02-15T06:00:26.502Z] 06:00:26     INFO - async*Tester_execTest@chrome://mochikit/content/browser-test.js:1360:14
[task 2025-02-15T06:00:26.502Z] 06:00:26     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1136:14
[task 2025-02-15T06:00:26.502Z] 06:00:26     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2025-02-15T06:00:26.502Z] 06:00:26     INFO - Leaving test bound testClipboardWithContentAnalysisBlockCheckPlainTextOnly
[task 2025-02-15T06:00:26.503Z] 06:00:26     INFO - Entering test bound testClipboardWithContentAnalysisBlockCheckAllFormats
[task 2025-02-15T06:00:26.503Z] 06:00:26     INFO - Wait tab event: load
[task 2025-02-15T06:00:26.504Z] 06:00:26     INFO - Tab event received: load
[task 2025-02-15T06:00:26.505Z] 06:00:26     INFO - GECKO(7036) | must wait for focus in content
[task 2025-02-15T06:00:26.506Z] 06:00:26     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "data:text/html,%3Cbody%20style%3D%27margin%3A%200%27%3E%20%20%3Cimg%20id%3D%27img%27%20tabindex%3D%271%27%20src%3D%27http%3A//example.org/browser/browser/base/content/test/general/moz.png%27%3E%20%20%3Cdiv%20id%3D%27main%27%20contenteditable%3D%27true%27%3ETest%20%3Cb%3EBold%3C/b%3E%20After%20Text%3C/div%3E%3C/body%3E" line: 0}]
[task 2025-02-15T06:00:26.507Z] 06:00:26     INFO - Mock ContentAnalysis service: analyzeContentRequestPrivate, this.shouldAllowRequest=false, this.waitForEvent=false
[task 2025-02-15T06:00:26.507Z] 06:00:26     INFO -   Request type: 3 | reason: 1 | operation: 1 | operation string: ''
[task 2025-02-15T06:00:26.508Z] 06:00:26     INFO -   Text content: 't Bold' | filePath: '' | printDataHandle: 0 | printDataSize: 0
[task 2025-02-15T06:00:26.509Z] 06:00:26     INFO -   Printer name: '' | url: 'moz-nullprincipal:{14fb75dc-0747-4cf4-a53b-2e4b9c3467b7}' | Request token: {41fadf8c-740d-4c2a-b9e8-046ebdaa52bc} | user action ID: {e42b14cf-e09a-485d-8820-28942c526981} | user action count: 2
[task 2025-02-15T06:00:26.510Z] 06:00:26     INFO - Mock ContentAnalysis service: analyzeContentRequestPrivate, this.shouldAllowRequest=false, this.waitForEvent=false
[task 2025-02-15T06:00:26.510Z] 06:00:26     INFO -   Request type: 3 | reason: 1 | operation: 1 | operation string: ''
[task 2025-02-15T06:00:26.511Z] 06:00:26     INFO -   Text content: '<html><body>
[task 2025-02-15T06:00:26.511Z] 06:00:26     INFO - <!--StartFragment-->t <b>Bold</b><!--EndFragment-->
[task 2025-02-15T06:00:26.511Z] 06:00:26     INFO - </body>
[task 2025-02-15T06:00:26.511Z] 06:00:26     INFO - </html>' | filePath: '' | printDataHandle: 0 | printDataSize: 0
[task 2025-02-15T06:00:26.512Z] 06:00:26     INFO -   Printer name: '' | url: 'moz-nullprincipal:{14fb75dc-0747-4cf4-a53b-2e4b9c3467b7}' | Request token: {5b564880-4cc2-4620-b489-be17fca2a6d4} | user action ID: {e42b14cf-e09a-485d-8820-28942c526981} | user action count: 2
[task 2025-02-15T06:00:26.513Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | Items on clipboard - 0 == 0 - 
[task 2025-02-15T06:00:26.514Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | Types on clipboard - 0 == 0 - 
[task 2025-02-15T06:00:26.514Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | text/html value - "" == "" - 
[task 2025-02-15T06:00:26.515Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | text/plain value - "" == "" - 
[task 2025-02-15T06:00:26.516Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | Correct number of calls to Content Analysis - 
[task 2025-02-15T06:00:26.517Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request has correct moz-nullprincipal URL, got moz-nullprincipal:{14fb75dc-0747-4cf4-a53b-2e4b9c3467b7} - 
[task 2025-02-15T06:00:26.517Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request has correct analysisType - 
[task 2025-02-15T06:00:26.518Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request has correct reason - 
[task 2025-02-15T06:00:26.519Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request has correct operationTypeForDisplay - 
[task 2025-02-15T06:00:26.519Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request filePath should be empty - 
[task 2025-02-15T06:00:26.520Z] 06:00:26     INFO - TEST-PASS | toolkit/components/contentanalysis/tests/browser/browser_clipboard_content_analysis.js | request textContent should match - 
```