Everyday I log into Passpack and leave it open all day. So here’s the problem after having Passpack open for a while I get the following message (it is extremely annoying as it interupts whatever else your up to on the net). This only happens for me in Chrome. It works like butter in Firefox and I can’t speak for IE.
The initial trigger for the message seems to be random. But after it initial message is seems to come back around every 3 minutes. So I did some digging. After poking around in the source I discovered that they’re using an older version of Tako Sano’s jQuery history plugin.
So I added some code to the historyCallback do some logging so I could get a better feel for what was going on.
After letting this run for a while I started to see a pattern. Here’s an excerpt of the results.
- hh: 8, m: 7, delta: 209901 (~3.4 minutes)
- hh: 8, m: 7, delta: 200888 (~3.3 minutes)
- hh: 8, m: 7, delta: 190944 (~3.2 minutes)
- hh: 8, m: 7, delta: 183514 (~3.0 minutes)
- hh: 8, m: 7, delta: 197517 (~3.3 minutes)
For webkit (Chrome/Safari) based browsers the jQuery history plugin manually creates a stack to keep track of the history. So this is where I believe we are encountering the problem. If you look at line 4426 you can see that we create a history with a stack length of 9.
But on line 4419 we are working with a stack with a length of 8.
var m = $.browser.netscape ? 2 : $.browser.msie ? 3 : 7;
Shouldn’t this read as follows?
var m = $.browser.netscape ? 2 : $.browser.msie ? 4 : 8;
Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /var/www/funkjedi.com/wp-includes/functions.php on line 3437
6 Responses to “Passpack + Chrome = Frustration”
Leave a Reply
You must be logged in to post a comment.