TypeError "class heritage customElements.get(...) is not an object or null" in mailWidgets.js during Thunderbird startup
Categories
(Thunderbird :: General, defect)
Tracking
(Not tracked)
People
(Reporter: ssitter, Assigned: mkmelin)
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
arshad
:
review+
|
Details | Diff | Splinter Review |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Comment 3•6 years ago
|
||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
In what way is it a racing issue?
If it's a racing issue, why would this make treecol-image work consistently? Of course it would remove the exception in the console for the cases where treecol isn't set yet, but for those cases, the treecol-image would not work, right?
Comment 7•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #6)
In what way is it a racing issue?
If it's a racing issue, why would this make treecol-image work consistently? Of course it would remove the exception in the console for the cases where treecol isn't set yet, but for those cases, the treecol-image would not work, right?
treecol-image is called a lot of times.. so for the first few times the treecol-image throws that exception/error but after sometime when treecol is available in scope, the further calls to get the custom element doesn't throw error/exeception.
IMO it is a racing issue in the way that the custom element code of TB is called earlier than FX's custom element code so the Tb custom element that depends/extends the fx's custom element will throw error/exception.
Comment 8•6 years ago
|
||
*treecol-image custom element definition is called many times, as the custom element code is attached to domWindowCreated event so maybe for the first few window creation event the fx custom elements are not loaded in scope but then later they are added to scope, I hope what I am sayin makes sense.
Kinda like bug 1519653?
Assignee | ||
Comment 10•6 years ago
|
||
Why would there be more than one domWindowCreated event for a window?
I don't think the customElements.js is ever loaded more than once for a window.
Comment 11•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #10)
Why would there be more than one domWindowCreated event for a window?
I don't think the customElements.js is ever loaded more than once for a window.
the DOMWindowCreated is called on the creation of each window right?
Assignee | ||
Comment 12•6 years ago
|
||
Yes, but the loaded customElements are put (only) into the scope of the specific window, so shouldn't leak between windows.
Comment 13•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #12)
Yes, but the loaded customElements are put (only) into the scope of the specific window, so shouldn't leak between windows.
yes you are right.
Assignee | ||
Comment 14•6 years ago
|
||
Turns out the problem comes from loading the dummy document.
https://searchfox.org/comm-central/source/mozilla/toolkit/content/customElements.js#299
I don't know why that is loaded or what it's used for, but I'm pretty sure we don't need to load our elements into there.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 15•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/bffe1c0bac89
don't load the Thunderbird custom elements in the dummy.xul document. r=arshad
Updated•6 years ago
|
Comment 16•6 years ago
|
||
I was hoping this might fix Bug 1517818, but it doesn't.
Description
•