[Pidgin] #15760: Area of UI where friends/contacts are listed is a blank gray background.

Pidgin trac at pidgin.im
Thu Sep 19 16:55:22 EDT 2013


#15760: Area of UI where friends/contacts are listed is a blank gray background.
-------------------------+-------------------------------------------------
 Reporter:  joshpidgin   |      Owner:  rekkanoryo
     Type:  defect       |     Status:  new
Milestone:               |  Component:  unclassified
  Version:  2.10.7       |   Keywords:  html buddy list dissapear
                         |  background gray grayed out
-------------------------+-------------------------------------------------
 After starting Pidgin the same area as described in the ticket Summary
 contains the following plain text, which is pretty weird:
 "erText != undefined ? true : false;
   var gaia_attachEvent = function(element, event, callback) {
   if (element.addEventListener) {
   element.addEventListener(event, callback, false);
   } else if (element.attachEvent) {
   element.attachEvent('on' + event, callback);
   }
   };
   var gaia_getElementsByClass = function(className) {
   if (document.getElementsByClassName) {
   return document.getElementsByClassName(className);
   } else if (document.querySelectorAll && document.querySelectorAll('.' +
 className)) {
   return document.querySelectorAll('.' + className);
   }
   return [];
   };
 </script>
 <script type="text/javascript">
   function gaia_parseFragment() {
   var hash = location.hash;
   var params = {};
   if (!hash) {
   return params;
   }
   var paramStrs = decodeURIComponent(hash.substring(1)).split('&');
   for (var i = 0; i < paramStrs.length; i++) {
       var param = paramStrs[i].split('=');
       params[param[0]] = param[1];
     }
     return params;
   }

   function gaia_prefillEmail() {
     var f = null;
     if (document.getElementById) {
       f = document.getElementById('gaia_loginform');
     }

     if (f && f.Email && (f.Email.value == null || f.Email.value == '')
         && (f.Email.type != 'hidden')) {
       hashParams = gaia_parseFragment();
       if (hashParams['Email'] && hashParams['Email'] != '') {
         f.Email.value = hashParams['Email'];
       }
     }
   }


   try {
     gaia_prefillEmail();
   } catch (e) {
   }



   function gaia_setFocus() {

     var f = null;
     if (document.getElementById) {
       f = document.getElementById('gaia_loginform');
     }
     if (f) {
       var agt = navigator.userAgent.toLowerCase();
       var is_ie = (agt.indexOf("msie") != -1);
       if (f.Email && (f.Email.value == null || f.Email.value == '' ||
 is_ie)
           && (f.Email.type != 'hidden') && f.Email.focus) {
         f.Email.focus();
         if (f.Email.value) {

           f.Email.value = f.Email.value;
         }
       } else if (f.Passwd) {
         f.Passwd.focus();
       }
     }

   }

   if (!('ontouchstart' in window)) {
     window.onload = gaia_setFocus;
   }

   function gaia_onLoginSubmit() {


     if (window.gaiacb_onLoginSubmit) {
       gaiacb_onLoginSubmit();
     }




   try {
     document.bg.invoke(function(response) {
       document.getElementById('bgresponse').value = response;
     });
   } catch (err) {}



     return true;
   }
   document.getElementById('gaia_loginform').onsubmit = gaia_onLoginSubmit;









 </script>
 <script type="text/javascript">
   gaia_appendParam = function(url, name, value) {
   var param = encodeURIComponent(name) + '=' + encodeURIComponent(value);
   if (url.indexOf('?') >= 0) {
   return url + '&' + param;
   } else {
   return url + '?' + param;
   }
   };
   var langChooser = document.getElementById('lang-chooser');
   var langChooserWrap = document.getElementById('lang-chooser-wrap');
   if (langChooser && langChooserWrap) {
   var langChooserParam = 'hl';
   var langChooserUrl =
 '\x2FServiceLogin?service=mail\x26passive=true\x26rm=false\x26continue=https%3A%2F%2Fmail.google.com%2Fmail%2F\x26ss=1\x26scc=1\x26ltmpl=default\x26ltmplcache=2\x26emr=1\x26lp=1';
   langChooserWrap.style.display = '';
   langChooser.onchange = function() {
   window.location.href =
   gaia_appendParam(langChooserUrl, langChooserParam, this.value);
   };
   }
 </script>
 <script type="text/javascript">
   var gaia_swapHiResLogo = function() {
   var devicePixelRatio =
   window.devicePixelRatio ? window.devicePixelRatio : 1;
   if (devicePixelRatio > 1) {
   var logos = gaia_getElementsByClass('logo');
   for (var i = 0; i < logos.length; i++) {
         if (logos[i].nodeName == 'IMG' &&
             logos[i].src.search('google_logo_41.png') > 0) {
   logos[i].width = 116;
   logos[i].height = 41;
   logos[i].src = '//ssl.gstatic.com/images/logo_ret.png';
   }
   }
   }
   }
   gaia_swapHiResLogo();
 </script>
 <script type="text/javascript">
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-992684-1']);
 _gaq.push(['_setDomainName', 'accounts.google.com']);
 _gaq.push(['_setAllowLinker', true]);
 _gaq.push(['_addIgnoredRef', 'mail.google.com']);
 _gaq.push(['_setAllowAnchor', true]);
 _gaq.push(['_trackPageview', '/mail/homepage']);
 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript';
   ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
   'http://www') + '.google-analytics.com/ga.js';
   (document.getElementsByTagName('head')[0] ||
   document.getElementsByTagName('body')[0]).appendChild(ga);
 })();
 </script>
   <script type="text/javascript">
 var BrowserSupport_={IsBrowserSupported:function(){var
 agt=navigator.userAgent.toLowerCase();var
 is_op=agt.indexOf("opera")!=-1;var
 is_ie=agt.indexOf("msie")!=-1&&document.all&&!is_op;var
 is_ie5=agt.indexOf("msie 5")!=-1&&document.all&&!is_op;var
 is_mac=agt.indexOf("mac")!=-1;var is_gk=agt.indexOf("gecko")!=-1;var
 is_sf=agt.indexOf("safari")!=-1;if(is_ie&&!is_op&&!is_mac){if(agt.indexOf("palmsource")!=
 -1||agt.indexOf("regking")!=-1||agt.indexOf("windows
 ce")!=-1||agt.indexOf("j2me")!=-1||agt.indexOf("avantgo")!=-1||agt.indexOf("
 stb")!=-1)return false;var v=BrowserSupport_.GetFollowingFloat(agt,"msie
 ");if(v!=null)return v>=5.5}if(is_gk&&!is_sf){var
 v=BrowserSupport_.GetFollowingFloat(agt,"rv:");if(v!=null)return
 v>=1.4;else{v=BrowserSupport_.GetFollowingFloat(agt,"galeon/");if(v!=null)return
 v>=
 1.3}}if(is_sf){if(agt.indexOf("rv:3.14.15.92.65")!=-1)return false;var
 v=BrowserSupport_.GetFollowingFloat(agt,"applewebkit/");if(v!=null)return
 v>=312}if(is_op){if(agt.indexOf("sony/com1")!=-1)return false;var
 v=BrowserSupport_.GetFollowingFloat(agt,"opera
 ");if(v==null)v=BrowserSupport_.GetFollowingFloat(agt,"opera/");if(v!=null)return
 v>=8}if(agt.indexOf("pda; sony/com2")!=-1)return true;return false},
 GetFollowingFloat:function(str,pfx){var i=str.indexOf(pfx);if(i!=-1){var
 v=parseFloat(str.substring(i+pfx.length));if(!isNaN(v))return v}return
 null}};var is_browser_supported=BrowserSupport_.IsBrowserSupported()
   </script>
 <script type=text/javascript>
 <!--

 var start_time = (new Date()).getTime();

 if (top.location != self.location) {
  top.location = self.location.href;
 }

 function SetGmailCookie(name, value) {
   document.cookie = name + "=" + value + ";path=/;domain=.google.com";
 }

 function lg() {
   var now = (new Date()).getTime();

   var cookie = "T" + start_time + "/" + start_time + "/" + now;
   SetGmailCookie("GMAIL_LOGIN", cookie);
 }

 function gaiacb_onLoginSubmit() {
   lg();
   if (!fixed) {
     FixForm();
   }
   return true;
 }

 function StripParam(url, param) {
   var start = url.indexOf(param);
   if (start == -1) return url;
   var end = start + param.length;

   var charBefore = url.charAt(start-1);
   if (charBefore != '?' && charBefore != '&') return url;

   var charAfter = (url.length >= end+1) ? url.charAt(end) : '';
   if (charAfter != '' && charAfter != '&' && charAfter != '#') return url;
   if (charBefore == '&') {
   --start;
   } else if (charAfter == '&') {
   ++end;
   }
   return url.substring(0, start) + url.substring(end);
 }
 var fixed = 0;
 function FixForm() {
   if (is_browser_supported) {
   var form = el("gaia_loginform");
   if (form && form["continue"]) {
   var url = form["continue"].value;
   url = StripParam(url, "ui=html");
   url = StripParam(url, "zy=l");
   form["continue"].value = url;
   }
   }
   fixed = 1;
 }
 function el(id) {
   if (document.getElementById) {
   return document.getElementById(id);
   } else if (window[id]) {
   return window[id];
   }
   return null;
 }
 // Estimates of nanite storage generation over time.
 var CP = [
  [ 1224486000000, 7254 ],
  [ 1335290400000, 7704 ],
  [ 1335376800000, 10240 ],
  [ 2144908800000, 13531 ],
  [ 2147328000000, 43008 ],
  [ 46893711600000, Number.MAX_VALUE ]
 ];
 var quota_elem;
 var ONE_PX = "https://mail.google.com/mail/images/c.gif?t=" +
   (new Date()).getTime();
 function LogRoundtripTime() {
   var img = new Image();
   var start = (new Date()).getTime();
   img.onload = GetRoundtripTimeFunction(start);
   img.src = ONE_PX;
 }
 function GetRoundtripTimeFunction(start) {
   return function() {
   var end = (new Date()).getTime();
   SetGmailCookie("GMAIL_RTT", (end - start));
   }
 }
 function MaybePingUser() {
   var f = el("gaia_loginform");
   if (f.Email.value) {
   new Image().src = 'https://mail.google.com/mail?gxlu=' +
   encodeURIComponent(f.Email.value) +
   '&zx=' + (new Date().getTime());
   }
 }
 function OnLoad() {
   gaia_setFocus();
   MaybePingUser();
   var passwd_elem = el("Passwd");
   if (passwd_elem) {
   passwd_elem.onfocus = MaybePingUser;
   }
   LogRoundtripTime();
   if (!quota_elem) {
   quota_elem = el("quota");
   updateQuota();
   }
   LoadConversionScript();
 }
 function updateQuota() {
   if (!quota_elem) {
   return;
   }
   var now = (new Date()).getTime();
   var i;
   for (i = 0; i < CP.length; i++) {
     if (now < CP[i][0]) {
       break;
     }
   }
   if (i == 0) {
     setTimeout(updateQuota, 1000);
   } else if (i == CP.length) {
     quota_elem.innerHTML = CP[i - 1][1];
   } else {
     var ts = CP[i - 1][0];
     var bs = CP[i - 1][1];
     quota_elem.innerHTML = format(((now-ts) / (CP[i][0]-ts) *
 (CP[i][1]-bs)) + bs);
     setTimeout(updateQuota, 1000);
   }
 }

 var PAD = '.000000';

 function format(num) {
   var str = String(num);
   var dot = str.indexOf('.');
   if (dot < 0) {
      return str + PAD;
   } if (PAD.length > (str.length - dot)) {
   return str + PAD.substring(str.length - dot);
   } else {
   return str.substring(0, dot + PAD.length);
   }
 }
 var google_conversion_type = 'landing';
 var google_conversion_id = 1069902127;
 var google_conversion_language = "en_US";
 var google_conversion_format = "1";
 var google_conversion_color = "FFFFFF";
 function LoadConversionScript() {
   var script = document.createElement("script");
   script.type = "text/javascript";
   script.src = "https://www.googleadservices.com/pagead/conversion.js";
 }
 // -->
 </script>
 <script>
 window.onload = function() {
   OnLoad();
   FixForm();
 }
 </script>
   </div>
   </body>
 </html>"

 Then about 1-2 seconds later a pop-up with the following appears:
 "Error Changing Account Info"
 "Error 0x0024: Unknown error."

 If I click "Close" on the pop-up nothing happens, but if I click "Re-
 enable" at the bottom of the Pidgin Buddy list my buddies appear for about
 5 seconds before going completely gray.

-- 
Ticket URL: <https://developer.pidgin.im/ticket/15760>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list