{"action":"created","issue":{"url":"https://api.github.com/repos/gorhill/uMatrix/issues/357","labels_url":"https://api.github.com/repos/gorhill/uMatrix/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/gorhill/uMatrix/issues/357/comments","events_url":"https://api.github.com/repos/gorhill/uMatrix/issues/357/events","html_url":"https://github.com/gorhill/uMatrix/issues/357","id":107283920,"number":357,"title":"uMatrix icon only available in one browser window when auto-restoring multi-window session","user":{"login":"DjogaRo","id":14353227,"avatar_url":"https://avatars.githubusercontent.com/u/14353227?v=3","gravatar_id":"","url":"https://api.github.com/users/DjogaRo","html_url":"https://github.com/DjogaRo","followers_url":"https://api.github.com/users/DjogaRo/followers","following_url":"https://api.github.com/users/DjogaRo/following{/other_user}","gists_url":"https://api.github.com/users/DjogaRo/gists{/gist_id}","starred_url":"https://api.github.com/users/DjogaRo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DjogaRo/subscriptions","organizations_url":"https://api.github.com/users/DjogaRo/orgs","repos_url":"https://api.github.com/users/DjogaRo/repos","events_url":"https://api.github.com/users/DjogaRo/events{/privacy}","received_events_url":"https://api.github.com/users/DjogaRo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-18T21:45:52Z","updated_at":"2015-10-17T23:33:56Z","closed_at":null,"body":"Hi there,\r\nfirst, thanks for this add-on! When I learned about it, I even considered using Firefox again - well for a moment at least. Love that you made the efford to make it compatible with Pale Moon.\r\n\r\nI'm using Pale Moon 25.7.0 (x64) with TabMixPlus on Win7 Pro SP1 64-Bit.\r\n*Edit*: uMatrix 0.9.2.1\r\nTMP might be relevant, since I use its session manager. *Edit/Update: It is irrelevant.*\r\n\r\nThe problem manifests, when I start Pale Moon and a previous session containing multiple windows gets automatically restored. Only the first window gets to have the uMatrix icon. For the other windows not having the icon means, it's neither where I placed it (if I placed it) nor does it show up in the \"Customize Toolbar\" icon pool window.\r\n\r\nWhen I open additional windows, those will have the icon. When I restored a 3-window session manually, 2 out of 3 windows did have the icon.\r\n\r\nI use my setup for years now, my ongoing session having more then one window ain't anything new either, and I use several add-ons that come with buttons I placed in the toolbar, but for this behaviour I cannot give another example.\r\n\r\nI hope there's a straight forward fix to this and coming soon, since TabMixPlus restores a sessions windows in weird order and I seldomly get the icon in the most important one.\r\n\r\n**Update**:\r\nI just disabled TabMixPlus, closed all tabs and windows, restarted, set Pale Moon to restore last time tabs and windows on start, opened some windows with a few tabs (at that point all windows had the icon), exited PM, started it again, and experienced the same problem.\r\nSo TabMixPlus seems not to be relevant.\r\n\r\nAfter that I re-enabled TMP, restarted Pale Moon - only one window with pinned tabs at that moment -, restored my main session manually (not replacing the open window). I noticed that now it was reversed which window had the icon and which not. The already open window did have it, the first from the session that got opened did not, the second and third did, curious.\r\n\r\n**Update**:\r\n*Sidenote: uBlock Origin suffers the same problem, plus being a bit forgetfull regarding its settings. I've got a feeling the n/a-thing and the forgetfullness might share some common ground. The latter I will make an issue in the other project.*\r\n\r\nPale Moons first start after booting Windows today was different. The last session (3 windows) got auto-restored as usual, but the problem didn't manifest at all. All 3 windows had the icons of uMatrix and uBlock_o on the addressbars right side, where I put them. *Also uBlock_o had re-remembered its settings.* I promptly exited PM and started over and both problems were back. That's why I tend to assume common ground.\r\nBTW, what I've reported before this 2nd update all happened with uBlock_o not being installed yet.\r\n\r\nBy now I'd say when PM starts for the 2nd, 3rd etc. time during a Windows session not all events get fired you rely upon for initialization. ? Or you register differently than other add-ons do? (just guessing; don't know the API)\r\n\r\nNext I'll try with fresh, clean PM profiles, try it from a problem-free state closing a window and restoring it through History -> Recently closed windows ..., and maybe I'll install FF and try to reproduce the problem there. Till then ..."},"comment":{"url":"https://api.github.com/repos/gorhill/uMatrix/issues/comments/148960619","html_url":"https://github.com/gorhill/uMatrix/issues/357#issuecomment-148960619","issue_url":"https://api.github.com/repos/gorhill/uMatrix/issues/357","id":148960619,"user":{"login":"DjogaRo","id":14353227,"avatar_url":"https://avatars.githubusercontent.com/u/14353227?v=3","gravatar_id":"","url":"https://api.github.com/users/DjogaRo","html_url":"https://github.com/DjogaRo","followers_url":"https://api.github.com/users/DjogaRo/followers","following_url":"https://api.github.com/users/DjogaRo/following{/other_user}","gists_url":"https://api.github.com/users/DjogaRo/gists{/gist_id}","starred_url":"https://api.github.com/users/DjogaRo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DjogaRo/subscriptions","organizations_url":"https://api.github.com/users/DjogaRo/orgs","repos_url":"https://api.github.com/users/DjogaRo/repos","events_url":"https://api.github.com/users/DjogaRo/events{/privacy}","received_events_url":"https://api.github.com/users/DjogaRo/received_events","type":"User","site_admin":false},"created_at":"2015-10-17T23:33:56Z","updated_at":"2015-10-17T23:33:56Z","body":"Thanks for your response.\r\nSo I just made a new profile and installed uBlock0 from the link you provided and went through my test routine.\r\nWhatever you did definetly has an effect. Now when I cycle through (Main Menu -> \"Exit\", Start PM) the toolbar button is missing every second time. When I mess around like changing which window's Main Menu I use to exit, it sometimes needs a few iterations to fall back into this pattern. But apart from that the pattern is stable. So, not statistically every second time, but literally.\r\nStrange, but a change. :)"}}