Closed Bug 1905392 Opened 3 months ago Closed 2 months ago

OriginControls.getState throws "policy.extension.tabManager is undefined" when an extension is starting up

Categories

(WebExtensions :: Frontend, defect, P3)

defect

Tracking

(firefox130 fixed)

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

I just encountered a test failure, with a stack trace similar to bug 1876359.

Upon investigation, it looks like OriginControls.getState is called for an extension that is in the middle of extension startup. We should handle that gracefully instead of breaking the UI.

I'm drawing the conclusion that the extension in the test is in the middle of startup, because policy.extension being set implies that the extension has done the minimum to start up, but policy.extension.tabManager being undefined implies that the "startup" event has not fired yet, which is responsible for initializing extension.tabManager.

Blocks: 1876359
No longer depends on: 1876359
Assignee: nobody → rob
Status: NEW → ASSIGNED
Severity: -- → S4
Priority: -- → P3
Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/b13620c0be9d
Fix OriginControls.getState for extensions during startup r=zombie
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: