JavaScript strict warning: chrome://messenger/content/preferences/cookies.js, line 527: ReferenceError: reference to undefined property "QueryInterface"
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird68 fixed, thunderbird69 fixed)
People
(Reporter: jorgk-bmo, Assigned: aceman)
References
Details
Attachments
(1 file, 1 obsolete file)
1.56 KB,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
JavaScript strict warning: chrome://messenger/content/preferences/cookies.js, line 527: ReferenceError: reference to undefined property "QueryInterface"
Strange, there is no QI at that line:
https://searchfox.org/comm-central/rev/d3a0f4232bb7b703258d7687572f7ade075c6401/mail/components/preferences/cookies.js#527
This shows in the debug console when pressing "Show Cookies" in the Privacy options.
Aceman, can you see what's going on here?
Yes I can see the error in console.
This patch fixes it for me. It seems to me it produces the same result, just without the QI error.
Also other places in the file use this._view directly.
Reporter | ||
Comment 2•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #2)
Any idea where the QI interface errors comes from?
No, I don't know.
::: mail/components/preferences/cookies.js
_populateList(aInitialLoad) {
this._loadCookies();
this._tree.view = this._view;
Do you still need this assignment? And the one at line 753?
Yes, these are needed otherwise the whole dialog breaks.
Reporter | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
I think gCookiesWindow._view
should have a QueryInterface
function (to nsITreeView
, I guess) and that's what the error's complaining about.
Reporter | ||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Yes, that seems to work too, thanks.
Reporter | ||
Comment 8•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/3004cd1a0a75
add QI to nsITreeView for cookie view to stop JS warning. r=jorgk
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 10•6 years ago
|
||
TB 68 beta 3:
https://hg.mozilla.org/releases/comm-beta/rev/4396446677599c7c565fd29878551e4aa4435870
Description
•