-
Notifications
You must be signed in to change notification settings - Fork 83
'Your list of blocked hosts' resets to zero when updating to newer version of HTTPSB #193
Comments
Could you look at the console of the extension (assuming you didn't reload the extension since then), and see if there is an error message? |
I already restarted my browser so the console is empty. Next update I'll check right away before doing anything else. |
I was able to reproduce this by using "Load unpacked extension..." too. I had v0.8.1.1 and just did a pull commits, then did a "Reload" in chrome://extensions/. It updated and still said "5 used out of 5". I restart the browser and it resets to zero but the 5 hostnames are still there. There were no error messages only "HTTP Switchboard> Beginning to intercept net requests at 2014-02-21T23:08:53.735Z " in the console. |
Thanks! I was trying to figure what could be wrong with the code, but if there is a way to reproduce it that will be much easier. I will go and try it. |
I couldn't reproduce using the above steps. What version of Chrome are you using? |
Actually, I forgot that I commented out error logging for the "normal" error case of when the cached entry is not found: https://github.com/gorhill/httpswitchboard/blob/master/js/assets.js#L122. Uncommenting this will allow the error to be reported.
|
It was probably the chromium build I was using. I was using Chromium 33.0.1750.0 which was the closest one I find to the current stable version (Google Chrome): 33.0.1750.117 (252094). I uncommented that line and there were nothing but the ""HTTP Switchboard> Beginning to intercept..." message after the restart. I went back to Chromium 32.0.1700.0 and this problem doesn't exist. I'm just going to install regular Chrome 33 and test it. |
Ok, I installed regular 1.) Load unpacked extension... ( i'm using commit "related to #193: report unexpected error cases" ) Hostnames still there in the textarea but it reset to zero for me. No errors in the console either. |
Ok, I get it. It's easy to forget all is async, and in Chromium 33, it appears the request for cached file occurs before the request for file system. |
Thank you. Works nicely. |
HTTPSB just updated to v0.8.1.3 for me from the Chrome Web Store and I had the facebook hostnames in my "Your list of blocked hosts". The 5 hostnames are still there in the textarea but it resets to "Your list of blocked hosts: 0 used out of 0" and in the matrix facebook is no longer hidden with the rest of the blacklisted.
The text was updated successfully, but these errors were encountered: