TypeError: gCurrentFolder is null chrome://messenger/content/SearchDialog.js in Error Console.
Categories
(Thunderbird :: Search, defect)
Tracking
(Not tracked)
People
(Reporter: ishikawa, Unassigned)
Details
Attachments
(4 files)
| Reporter | ||
Comment 1•9 years ago
|
||
| Reporter | ||
Comment 3•9 years ago
|
||
| Reporter | ||
Comment 5•9 years ago
|
||
| Reporter | ||
Comment 6•9 years ago
|
||
| Reporter | ||
Comment 8•9 years ago
|
||
| Reporter | ||
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
| Reporter | ||
Comment 12•3 years ago
|
||
I am using TB 91.11.0 (64-bit) under Windows 10.
The problem still persists.
I have no repeatable procedure at this moment.
In this particular case, what I was doing was this.
I was searching for a bunch of e-mails based on the originating e-mail address for a year.
Store the condition as search folder.
Repeated this for four years.
Then from the stored search folder, I copied the found messages to an ordinary folder for that year.
(Well, if I can immediately copy all the found messages to a folder from the search dialog, I can skip this process, but I digress.)
Then I found that I needed the same procedure for another year and opened the search box, and then
voila. The search dialog missed the rows where I can type in the search conditions (and add by hitting more/+).
There was nothing I could do.
I am posting the copy of error console in the next message and again, the dubious error message suggests that gCurrentFolder is undefined.
I am using one add-on called RemoveDuplicate. Turning it on and off does not have any issues at this moment. Disabling it and opening the search dialog again does not improve the situation.
Oh wait. if |gCurrentFolder| is not set, maybe I can explicitly open a folder by selecting it and presumably it would set |gCurrentFolder|.
I did so.
OK, now when I go from [EDIT]->[Search]-> [Search for messages]
NOW I GET the proper rows for input. (!!!)
I think we probably want to do something about setting gCurrentFolder forcibly to Inbox or something when the error condition is detected
Otherwise, I think someone who got hit by this symptom probably has to shutdown TB for the day, or even reboot Windows (I see many people do this...)
Probably TB will be OK again as far as this occasional erratic behavior is concerned, but we should avoid such waste of peope's time.
Again I have no idea why }gCurrentFolder| is undefined.
(Maybe someone ought to go through the searchfox to figure out where |gCurrentFolder| is destroyed (or the module that defines it unloaded, etc.)
| Reporter | ||
Comment 13•3 years ago
|
||
BTW, I am using Japanese-locale TB under Windows10, but as the previous error (original) report showed it can happen using en_US locale and under linux, too.
The cause seems to be the undefined |gCurrentFolder|.
| Reporter | ||
Comment 14•3 years ago
|
||
|gCurrentFolder| is declared and set in searchDialog.js.
https://searchfox.org/comm-central/search?q=gCurrentFolder&path=
Definitions (gCurrentFolder)
mail/base/content/SearchDialog.js
22 var gCurrentFolder;
...
Assignments (gCurrentFolder)
mail/base/content/SearchDialog.js
330 gCurrentFolder = folder; // found in updateSearchFolderPicker
So there probably is an execution path that skips the invocation of |updateSearchFolderPicker()|.
Updated•3 years ago
|
Description
•