Bug: Intermittent browser/base/content/test/webextensions/browser_permissions_mozAddonManager.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-02-17 00:56:03+00:00
Resolved: 2025-02-24 12:08:27+00:00

**Filed by:** nfay [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=405949902&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/He1qTFwXS1-4w6I6xDjNnA/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2023-02-16T23:46:48.983Z] 23:46:48     INFO - TEST-PASS | browser/base/content/test/webextensions/browser_permissions_mozAddonManager.js | Permission number 41 is correct - 
[task 2023-02-16T23:46:48.983Z] 23:46:48     INFO - Console message: PopupNotifications._onButtonEvent: Button click happened before the security delay: -19.52759999999762ms
[task 2023-02-16T23:46:48.983Z] 23:46:48     INFO - Buffered messages finished
[task 2023-02-16T23:46:48.983Z] 23:46:48     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/webextensions/browser_permissions_mozAddonManager.js | Test timed out - 
[task 2023-02-16T23:46:48.991Z] 23:46:48     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-16T23:46:48.991Z] 23:46:48     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/webextensions/browser_permissions_mozAddonManager.js | No unexamined telemetry after test is finished - "Got 2, expected +0"
[task 2023-02-16T23:46:48.991Z] 23:46:48     INFO - Stack trace:
[task 2023-02-16T23:46:48.991Z] 23:46:48     INFO - chrome://mochikit/content/browser-test.js:test_is:1493
[task 2023-02-16T23:46:48.991Z] 23:46:48     INFO - chrome://mochitests/content/browser/browser/base/content/test/webextensions/head.js:hookExtensionsTelemetry/<:684
[task 2023-02-16T23:46:48.991Z] 23:46:48     INFO - chrome://mochikit/content/browser-test.js:nextTest:611
[task 2023-02-16T23:46:49.108Z] 23:46:49     INFO - GECKO(3776) | MEMORY STAT | vsize 1286MB | vsizeMaxContiguous 182MB | residentFast 389MB | heapAllocated 409MB
[task 2023-02-16T23:46:49.108Z] 23:46:49     INFO - TEST-OK | browser/base/content/test/webextensions/browser_permissions_mozAddonManager.js | took 45252ms
[task 2023-02-16T23:46:49.108Z] 23:46:49     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-16T23:46:49.116Z] 23:46:49     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/webextensions/browser_permissions_mozAddonManager.js | Found a tab after previous test timed out: https://example.com/browser/browser/base/content/test/webextensions//file_install_extensions.html - 
[task 2023-02-16T23:46:49.155Z] 23:46:49     INFO - checking window state
[task 2023-02-16T23:46:49.233Z] 23:46:49     INFO - TEST-START | browser/base/content/test/webextensions/browser_permissions_optional.js
[task 2023-02-16T23:46:49.249Z] 23:46:49     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-16T23:46:49.249Z] 23:46:49     INFO - Buffered messages logged at 23:46:49
[task 2023-02-16T23:46:49.249Z] 23:46:49     INFO - Entering setup bound head_setup
[task 2023-02-16T23:46:49.249Z] 23:46:49     INFO - Buffered messages finished
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/webextensions/browser_permissions_optional.js | A promise chain failed to handle a rejection: [Exception... "Component not initialized"  nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)"  location: "JS frame :: resource://gre/modules/addonManager.js :: reject :: line 259"  data: no] - stack: reject@resource://gre/modules/addonManager.js:259:14
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - Rejection date: Thu Feb 16 2023 23:46:49 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":563,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":529,"lineNumber":1065,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}}
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - Stack trace:
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - chrome://mochikit/content/browser-test.js:handleTask:1065
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - Leaving setup bound head_setup
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - Entering test bound test_request_permissions_without_prompt
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - Extension loaded
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - GECKO(3776) | JavaScript error: resource://gre/modules/addonManager.js, line 259: NS_ERROR_NOT_INITIALIZED
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - Console message: [JavaScript Error: "NS_ERROR_NOT_INITIALIZED" {file: "resource://gre/modules/addonManager.js" line: 259}]
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - GECKO(3776) | JavaScript error: , line 0: AbortError: Actor 'SpecialPowers' destroyed before query 'Spawn' was resolved
[task 2023-02-16T23:46:49.257Z] 23:46:49     INFO - Console message: [JavaScript Error: "AbortError: Actor 'SpecialPowers' destroyed before query 'Spawn' was resolved"]
[task 2023-02-16T23:46:49.453Z] 23:46:49     INFO - Console message: [JavaScript Warning: "This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use �<!DOCTYPE html>�." {file: "moz-extension://9c0bd7d6-2cfa-41b5-bbea-a3a100a995d0/page.html" line: 0}]
[task 2023-02-16T23:46:49.704Z] 23:46:49     INFO - TEST-PASS | browser/base/content/test/webextensions/browser_permissions_optional.js | activeTab permission was granted. - 
[task 2023-02-16T23:46:49.704Z] 23:46:49     INFO - TEST-PASS | browser/base/content/test/webextensions/browser_permissions_optional.js | activeTab permission exists. - 
[task 2023-02-16T23:46:49.743Z] 23:46:49     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-16T23:46:49.743Z] 23:46:49     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/webextensions/browser_permissions_optional.js | A promise chain failed to handle a rejection: Actor 'SpecialPowers' destroyed before query 'Spawn' was resolved - stack: (No stack available.)
[task 2023-02-16T23:46:49.743Z] 23:46:49     INFO - Rejection date: Thu Feb 16 2023 23:46:49 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":563,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":529,"lineNumber":1065,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1065:22\n","nativeSavedFrame":{}}
[task 2023-02-16T23:46:49.743Z] 23:46:49     INFO - Stack trace:
[task 2023-02-16T23:46:49.743Z] 23:46:49     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-02-16T23:46:49.743Z] 23:46:49     INFO - chrome://mochikit/content/browser-test.js:handleTask:1065
[task 2023-02-16T23:46:49.743Z] 23:46:49     INFO - Leaving test bound test_request_permissions_without_prompt
[task 2023-02-16T23:46:49.977Z] 23:46:49     INFO - GECKO(3776) | MEMORY STAT | vsize 1285MB | vsizeMaxContiguous 182MB | residentFast 393MB | heapAllocated 410MB
[task 2023-02-16T23:46:49.977Z] 23:46:49     INFO - TEST-OK | browser/base/content/test/webextensions/browser_permissions_optional.js | took 731ms
[task 2023-02-16T23:46:49.985Z] 23:46:49     INFO - checking window state
[task 2023-02-16T23:46:50.001Z] 23:46:50     INFO - TEST-START | browser/base/content/test/webextensions/browser_permissions_pointerevent.js
```