Closed Bug 1811459 Opened 1 year ago Closed 1 year ago

TypeError: can't access property "getAttribute", this.node is null" {file: "resource:///modules/PanelMultiView.jsm" line: 634}

Categories

(Firefox :: Toolbars and Customization, task, P1)

task

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Originally encountered in bug 1707305, but plastered over with extra waits. I think that there is an actual issue in PanelMultiView; it looks like the _moveOutKids assumes the panelmultiview to still be instantiated, but in practice it may already have been disconnect()ed before.

Console message: [JavaScript Error: "TypeError: can't access property "getAttribute", this.node is null" {file: "resource:///modules/PanelMultiView.jsm" line: 634}]
INFO - TEST-UNEXPECTED-FAIL | browser/components/extensions/test/browser/browser_ext_incognito_views.js | A promise chain failed to handle a rejection: **can't access property "getAttribute", this.node is null - stack: _moveOutKids@resource:///modules/PanelMultiView.jsm:634:23
INFO - removePopup@resource:///modules/PanelMultiView.jsm:325:24
INFO - panelRemover@chrome://browser/content/customizableui/panelUI.js:471:24
INFO - showSubView@chrome://browser/content/customizableui/panelUI.js:497:9
INFO - async*showWidgetView@resource:///modules/CustomizableUI.jsm:2171:25
INFO - handleWidgetCommand@resource:///modules/CustomizableUI.jsm:2190:12
INFO - openPopup@chrome://browser/content/parent/ext-browserAction.js:523:44
INFO - openPopup@chrome://browser/content/parent/ext-browserAction.js:1004:24
INFO - recvAPICall/result</</<@resource://gre/modules/ExtensionParent.jsm:1155:16

this.forNode (with this being a PanelMultiView instance) may
return a node that was already disconnected before, in which case its
node member will be void. To avoid unexpected promise rejections, add
a null check before _moveOutKids().

Attachment #9313235 - Attachment is obsolete: true
Severity: -- → S3
Priority: -- → P1
Pushed by rob@robwu.nl:
https://hg.mozilla.org/integration/autoland/rev/8a67e337ab7b
Avoid _moveOutKids on disconnected panelmultiview r=Gijs,rpl
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: