Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Block locked icon missing from version 0.5.5 #56

Closed
bjgood opened this issue Nov 15, 2013 · 17 comments
Closed

Block locked icon missing from version 0.5.5 #56

bjgood opened this issue Nov 15, 2013 · 17 comments
Labels

Comments

@bjgood
Copy link

bjgood commented Nov 15, 2013

Hi,
I don't know if others are seeing this, but the half circle icon indicating that a block is already locked is missing from version 0.5.5, at least on my PC.

Thank you.

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 15, 2013

I checked, all the files are in.

In another issue you said you fiddled with the CSS of the popup menu: can you check with a diff to ensure there is no difference with your version which could break the CSS rule to display the "permanent" icon?

Original popup.hml: https://raw.github.com/gorhill/httpswitchboard/master/popup.html
Online diff tool: http://www.diffchecker.com/

@bjgood
Copy link
Author

bjgood commented Nov 15, 2013

Hey Raymond,
I have a copy of the Chrome Default folder saved that's untouched by me. After I tried fiddling with the css files (font.css...bootstrap.min.css), and it didn't work, I always replaced the folder with the one I hadn't touched. The block locked icon (permanent) issue started this morning after the 0.5.5 update. Also, I had never even looked inside the popup.html file at all.

Best regards,

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 15, 2013

Ok. I checked with version 0.5.5 from the store here, and I can see the pictogram of the locked status of a cell. If you can, I would greatly appreciate if you could look at the console of the popup menu using "Inspect popup". I would like to know if there is an error message in there (and also maybe the console of the background page).

@bjgood
Copy link
Author

bjgood commented Nov 15, 2013

The only thing I got showing when I right click on the popup menu is Inspect Element, not Inspect Popup. I'm running Ubuntu, BTW.

Thanks.

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 16, 2013

It's kinda difficult for me to diagnose remotely, I wish I was able to just open the dev console, I probably would be able to figure what is going on right away. How comfortable are you with the developer console? If you right-click on the extension icon, there is a "Inspect Pop-up" entry, but only if "developer mode" is checked on the extensions page.

I would first look at the class names for a permanently blocked matrix cell, the class 'rdp' is supposed to be present for permanently blocked cell.

If it is, then the background property should look like:

background: ... url(img/permanent-black-small.png) ...

And if it is, then to verify that the file img/permanent-black-small.png is present in the extension folder.

That would be a start.

@bjgood
Copy link
Author

bjgood commented Nov 16, 2013

Raymond,
First off, permanent-black-small.png and permanent-white-small.png are present in img folder.

Second, is a Copy as HTML of a matrix row in which a number of blocks are locked to allow (green...Yahoo Mail) yet as you'll see no rdp is showing...

<div class="matRow rw g0 l2">
<div class="matCell rpt"><b>us-mg6.mail.</b>yahoo.com</div>
<div class="matCell gdt">4</div>
<div class="matCell gpt">16</div>
<div class="matCell gdt">1</div>
<div class="matCell gdt">1</div>
<div class="matCell gdt">20</div>
<div class="matCell gdt">11</div>
<div class="matCell rpt">&nbsp;</div>
</div>

Regards,

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 16, 2013

Trick: to quote code, quote using three consecutives backquotes (I did it for you).

@gorhill
Copy link
Owner

gorhill commented Nov 16, 2013

Ok my understanding is that no rdp is showing because specifically in the above snippet of HTML there is no permanently blocked cell. Is that right? Never mind, I re-read your first post, and this affect permanently whitelisted cells, right? (I had in mind this was for blacklisted cell because of the word "block" in the first post, my bad).

@bjgood
Copy link
Author

bjgood commented Nov 16, 2013

Correct. us-mg6.mail.yahoo.com is a light red but not blocked or locked.

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 16, 2013

Err correction again: the snippet of HTML code you pasted above suggest that the whitelisted cells are not padlocked (gdt = temporarily whitelisted). Can you padlock them?

@bjgood
Copy link
Author

bjgood commented Nov 16, 2013

In the matrix row us-mg6.mail.yahoo.com the blocks are showing as temporarily allow (green...no semi-circle) yet I can close out Chrome, clear cache, reboot, open Chrome back to Yahoo Mail and our correspondences, click HTTPSwitchboard icon and everything allowed is still showing as temporary. Obviously, the settings are remembered somewhere.

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 16, 2013

Ok I understand now. A few things more to check:

When you leave chromium, is there any other instances of chromium running in memory? Can you check with System Monitor? For now that is the only thing I can think of.

@bjgood
Copy link
Author

bjgood commented Nov 16, 2013

No instance of chrome is showing in System Monitor

and...

"Continue running background apps when Google Chrome is closed" is unchecked.

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 16, 2013

If you could open the extension console (available in extensions page when "Developer mode" is checked), and press "Pause script execution (F8)" in the "Sources" tab, then once paused, go in "Console" tab and paste:

HTTPSB.permanentScopes.scopes['*'].white.list

You will be able to see the permanent rules. Do you see the rules us-mg6.mail.yahoo.com ... you reported above?

I just can't reproduce what you see as much as I try. I double-, triple-checked the persistence code, and its quite straightforward.

Ultimately if I could use your saved settings I would probably be able to figure what is going on. If you do not mind that I see the content of your whitelist/blacklist, you could send me the files matching ~/.config/chromium/Defaults/Local Extension Settings/bgdnahgfnkneapahgkejhjcenmopifdi/*, otherwise I just don't know anymore.

@bjgood
Copy link
Author

bjgood commented Nov 16, 2013

Hi Raymond,
There is no option for Sources tab once I put a check in Developer mode. So I can't pause script execution. I checked it many times. I even stepped the resolution up to 1024x768...still no Sources tab. I did find Inspect Popup once I had placed the check in Developer mode and right clicked on httpsb icon. :). At least something positive.

Also, my httpsb folder in ~/.config/google-chrome/Defaults/Extensions is named mghdpehejfekicfjcdbfofhcmnjhgaag, not bgdnahgfnkneapahgkejhjcenmopifdi (probably a minor point but I thought I'd point it out). The same for ~/.config/google-chrome/Defaults/Local Extension Settings. And there is no sst file in Local Extension Settings either. If you want me to send you the other non sst files I'll be glad to do it. Just supply me with an email address please. Just send it to my email address that I'm registered with.

Thanks.

Bob

@gorhill
Copy link
Owner

gorhill commented Nov 18, 2013

Next version which I shall release soon will have a page where you can look at the white/black/graylist rules, and see their permanent status. Then you can report to me what you see.

@gorhill
Copy link
Owner

gorhill commented Nov 18, 2013

Ha!! Finally, the bug just showed up here, now I have to investigate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants