Gmail Labels not displayed as expanded

I am stumped on this one and cannot find it in the Hidden Options or how to get this to work.

I check 14 GMAIL accounts.  Some of the accounta I collapse the folder labels ad in some accounts I want to see the folder labels.

The accounts which are NOT collapsed, if I click on the folder label, GMAIL spawns a New TAB and takes me to that label and remains in the UnCollapsed view state.

The accounts which ARE collapsed, if I click on the arrow to expand the folder view, it immediately takes me to the inbox and expands the folder label.  Once I click on the folder label, I am taken to that folder but the view collapses.

 I cannot figure out how to get the settings to stick.  Help Mr Wizard.........

So... the accounts which -are- collapsed... when you click on the folder label...
...does it spawn a new tab? (like other expanded accts) 
Or just opens the folder in the same tab and collapses the view.

Tr3b's picture

The collapse accounts spawns a new tab and opens inbox and expands.  Clicking on the folder label, it collaspes and goes to the folder label.

Also....the accounts which are expanded DO NOT collapse when you click on the label but it does spawn a new tab which opens in that folder label

It seems the settings are not sticking and I cannot figure out how to make them stick.

 

EDIT

This also hapens to my Hotmail account.

 

ARGH!!!

So... are you talking about the acct/folder list in the X-Notifier sidebar / X-Notifier window?

I have some 'labels' (folders) defined on one of my three gmail accounts...
...if it is already expanded, I can click the acct name - goto inbox, or just click the folder - goto folder ... stays expanded
...if it is collapsed, I can click the acct name - goto inbox, auto-expands folders... click folder - goto folder ... stays expanded.
Also, of course... the little arrow can be clicked to expand/collapse the acct/folders without going anywhere.

I am not seeing anything 'auto-collapse'.  If they are expanded, they stay that way when I restart browser. If collapsed, they stay collapsed... until I expand with the arrow, or click the acct name. If I close browser with them expanded, they will be expanded when I reopen.

Note: I have some of my emails 'aliased' with a 'group' prefix so they are indented in the X-Notifier window/sidebar, under the group header.

Are you using a Firefox variant?

Tr3b's picture

I have used Cyberfox for a few years.  I guess I can try my profile in another portable version of Firefox, but I am still puzzled as to why some work and some do not and settings will not stick.  The way you described it is the way it should work.  But, what saves the settings in XN?

You should be able to expand the box and exit Firefox and that new setting take...or visa versa.  That is the way it worked for me before.  But for some reason the settings are not sticking.

 

jeroen's picture

@Tr3b: Apart from the problem you describe, it seems to me you are not aware of how to define the folder view. It is a checkbox per account in the XN Options: Show labels. It simply sets a hidden setting (about:config), named showFolders. In your case I guess it is (default) checked for all your Gmail accounts. (You can change the default value in the hidden settings too)

In my logic, settings are not expected to get set by (un)collapsing an account in the XN accounts view. I can understand you would expect it to behave in that way thow... It might be a glitch of the Mozilla API when used with Cyberfox (I'm just guessing). Or it might get solved by uninstalling, cleaning registry and reinstalling Cyberfox (guessing again). And remember software is made by humans, who are known to produce mistakes. Or the (human) software developer didn't anticipate a certain scenario to take place.

Gmail:  "Show labels", Hotmail: "Show folders" ...checked on left side in my account definitions.

If UNchecked, no folders/labels, nor expand/collapse arrows, are shown.

[edited]

jeroen's picture

Like I said, I expect them all to be checked, because that is the default (when not changed to false in about:config). It is normal behavior the account view then uncollapses to folder view (just reproduced the behavior)... Ok: when clicking on the account, not when just clicking on the arrow. So that might be a Cyberfox wrong/missing object Mozilla API thing.

jeroen's picture

Ok, it is obviously the Event mechanism that is failing here:
The (MouseClicked or MouseDown)  event for arrow clicked and the event for account or account folder clicked are "merged" (both events get triggered in both occasions, so both event handlers get executed).

jeroen's picture

I might have an idea what is going wrong here. Both event handlers should consume the event after dealing with it (this.event.consume() as last code statement in the eventhandler method implementation) . The event gets propegated (passed on) to the other existing event handlers (with Cyberfox).

I am "triggered" (challenged) now to have a look at the code ;-)

jeroen's picture

Found the two event handlers in xn-overlay.js:
(they get assigned in xn-overlay.xul)
onTreeClicked: function(event)
openViews: function(event)

The Javascript Event interface does not have a consume() method like Java, C++ and C# have, but a stopPropagation() method and a readonly bubbles property (A boolean indicating whether the event bubbles up through the DOM or not).
(It used to be the cancelBubble(), which is obsolete since Gecko 24)

Neither of the two event handlers end with
if(event.bubbles) event.stopPropagation();
and I really think they (as the majority of eventhandlers) should...
So I will suggest it to admin by email, expecting it will solve Tr3b's problem.

I know: too much info, but I couldn't stop myself ;-)

Tr3b's picture

A lot of this went over my head.  :)

 

I was just going to try on a 32bit Firefox, but I will now wait for Admin.

jeroen's picture

I noticed I made the wrong assumption about openViews. It belongs to the Open button in the Toolbox at the bottom of the XN sidebar and window. The (un)collapsed state of the "placesList" tree DOM object children is not controlled by xn code. It is just part of the DOM object's functionality.

But admin added stopPropagation() to the other event handler onTreeClicked. The event might bubble up to the DOM object... Curious if it will fix your Cyberfox behavior, Tr3b! (I couldn't test it, because Cyberfox doesn't work with Windows XP)

tobwithu's picture
Tr3b's picture

If the tree is collapsed and I expand the tree, click on the label, the tree collapses.

Also....I cannt seem to keep the label setting to stick.  If the Label is collapsed and I expand it and shut down the browser, the label is collapsed when I reopen the browser.

jeroen's picture

Tr3b, correct me when I am wrong:
I am guessing you mean nothing has changed by the fix.
Well, that's a pity, but my fix was kind of a longshot.

I am still wondering, since you only passed the info halfway this thread that you are using Cyberfox, whether you had X-notifier ever working correctly with Cyberfox in this aspect at any time. When that is the case I would still recommend to do a total deinstall, clean (including registry) and reinstall of both X-notifier and Cyberfox.

When not fixable by above procedure, you might consider a reality that this is not a X-notifier bug, but possibly an incorrect behavior of mouse events in Cyberfox, while working with add-ons. I could be considered very stout to draw such a conclusion, but the fact Firefox is working correctly in this aspect is my advocate.

Tr3b's picture

Yes jeroen, XN worked perfect before and I have been using Cyberfox for a couple of years now.  Since I am using portable version of Cyberfox, I will rename my Profile folder and install only XN with my config and see what happens.  But I did all the cleaning and editing prior with no change.  Plus it happens on 4 of my seperate systems so I am doubtful it is my settings.

jeroen's picture

Clear and good plan.
In the meantime I am having a look at the Mozilla API, that is used to add user interface elements for X-notifier to the browser's user interface.

tobwithu's picture

I tested X-notifier with Cyberfox.

It works fine.

I have no idea what is wrong.

Tr3b's picture

Sorry I have had no time.  I will try with new config and test and report back.

Tr3b's picture

When I get a chance to being to troubleshoot.  Is there a setting somewhere that tells XN to save it's settigns so I can see if it sticks?  How does XN know to either leave the folder expanded or collapsed?  Can I see that setting or is it hidden?

Tr3b's picture

OK....had time to do a little bit of troubleshooting.  I disabled all my addons, cleaed xn# cookies, shut down, deleted all cache folders within the profile folder, fired up Cyberfox and no change.  Everytime I click on a folder which I expanded, the folder collapses and takes me to the mail folder. 

Just wondering if we should have a pic of what you have... just before you click that collapses the folder... ?
Can do a screenshot and upload a link?

Tr3b's picture

Hopefully this will make sense:

http://i.imgur.com/KmWixyn.png

When you click on any folder in the top image, the folders collapse and it then takes you to the mail folder.

 

Are you using 32 or 64bit?  Are you using the Australis UI ?  And are you on Windows 10?

My last test, of Firefox, was on Windows 8.1 Pro.
I'm now on Windows 10 and I loaded up the 64 bit Cyberfox... and I couldn't get the folders to collapse (unless I click the collapse arrow)... they just stay open.  And if I collapse them by clicking the arrow... and restart the 64bit Cyberfox ...the folders are expanded.

Perhaps I will try 32 bit, then the Australis UI.

Tr3b's picture

Using 64bit, W7, AMD and Intel versions of Portable Cyberfox

So I loaded up 32bit portable Cyberfox... installed X-Notifier ...imported my accounts.

And... my folders/labels are always expanded, unless I click the arrow to collapse; on restart of browser, they're expanded again.

And... if I don't have any new email in a folder... it doesn't show up at all... not until I get a new email.

Don't know what's what!

Tr3b's picture

For a minute I thought I had it resolved this AM when I had a few mins to test, but back to square one.

I started with a fresh seup ant imported/added all my apps/passwords.  After Cyberfox was set to how I wanted it and it checked all my mail acounts, the  account which I displayed above displayed EXPANDED folders.  I thought GREAT, I fixed it.  I clicked on one of the folders and it took me to the mail folder without collasping.  GREAT GREAT.  I colapsed the folder, shut down the browser, opened the browser again and the accunt that I had collapsed the folder is now expanded again..  NOT GREAT.  I then noticed one of my Hotmail accounts which I always have in the collapsed state since it has about 70 folder labels is now expanded.  Co I collapsed the account, shut down the browser, opened the browser agian and the folder is expanded.   So....this is doing just the oposite with the folders.

I am now back to my previous version of Cyberfox since I would refer to start up with a collapsed folder branch then an expanded.

@ tobwithu - Is there a area in the settings in about:config that I can see if the settings remain when the browser is closed?  what tells xn to ether expand or collapse that folder branch?

jeroen's picture

Tr3b, the collapsed state of that folder is (as confirmed by admin over email) not handled by X-notifier (javascript) code. It is html (a DOM object in the html) handled by Cyberfox program code. So the setting gets locally cached by Cyberfox (in a hidden Cyberfox folder on your computer). And reading your observation the functionality gets reversed (doing the opposite), I get the impression the cached setting is a so-called 'toggle', meaning it is a variable that either is true or false (zero or one) which gets its value by being toggled. Such a variable is called a boolean and either false or true. Lets assume the boolean is named collapsedState in the Cyberfox program code. Then the toggle code could be collapsedState=!collapsedState, meaning when its value is true it becomes false and vice versa. This is a style of coding that is considered unsafe (error-prone), because it is not explicit, possibly causing the result you are experiencing in certain circumstances (like a Cyberfox crash).

Did you execute what you mentioned earlier: to start a new Cyberfox profile?

Tr3b's picture

Same issue but reversed. 

I will try one more thing and take my existing x64 Cyberfox profile and use it within Firefox 32bit and see if my results are the same.  I will report back.

 

Tr3b's picture

Used my profile with Firefox Portable 39.0 and exact same problem with Cyberfox.  Wonder if I have reached some sort of limit within xn with the number of accounts.  Looks like I need to do some heavy digging and start nuking some accounts to see if that changes at all.

Tr3b's picture

I am stumped and will have to put this on a back burner for now.  I just did a totally separate Cyberfox Portable with new Profile and xn is all expanded and will not launch in a collapsed state when I start the browser.  So.....I'd rather have it frozen in the collapsed folder state then have all my GMAIL, HOTMAIL, YAHOO, RSS, COMCAST, LinkedIn, Facebook all start in the expanded state along with it's expaned labels.

jeroen's picture

Well, I am lost for words now: NOT Cyberfox related at all?

(Export your X-notifier accounts)
Easy to test then:

  1. Start new profile
  2. Install X-notifier
  3. Add your one problem account

[edited] Our posts crossed in Cyberspace time, Tr3b ;-)

Tr3b's picture

Yeah out of ideas.  I was hoping it was an addon problem but that was my 1st test.  Need to figure out how the xn settings are saved and that will bring me closer

Tr3b's picture

As I found some free time and a clearer head and not rushing, I am more convinced something broke within xn to not allow the save to work properly.  I have some older versions of both Firefox and Cyberfox archived with the profile folder.  I may fire up one at a time and see at which version it broke.  But....I thought of one more test I can do before I go that route.  Maybe I have too many accounts and will nuke everything but GMAIL, export, fireup a fresh profile and import to see if the problem went away.