[Webkit-unassigned] [Bug 34689] Loading javascript files

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 9 00:09:25 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=34689





--- Comment #12 from Juan <brattchess at yahoo.com>  2010-02-09 00:09:25 PST ---
(In reply to comment #11)
> (In reply to comment #10)
> > Please don't paste obfuscated code here. It is most obviously broken, there is
> > no need for anyone to look into it.
> > 
> > As already mentioned, this site looks fine for me in Safari.
> 
> Sorry for the obfuscated code, but is what I use, for this reason I has paste
> it, I prefer you to see the real code.
> The problem is not the javascript code, is the package of the frames received. 
> I think that, as you have a very good connection in internet, you are not able
> to see the problem as I do, but the problem exists, and the probe is the
> capture sent. 
> I remember you that I get the same problem wiht the safari browser, so it not
> just a chrome problem and it is not a problem with the server, because with
> other browser as internet explorer, this problem doesn't exist.
> 
> Please try to make an effort to understand me. Your help it would be gratefull.
> Thanks for your kind help and understanding.


This is the best example, to see what is wrong.
It's not the code, it's how is downloading the file...

http://88.2.242.162/lulahome/js/utils.js

Firefox/IExplorer (Correct):

function _fiTs(aa, ab){var ac="";var ad=""+aa;if(ad.length < ab){var
i=0;for(i=0;i <(ab-ad.length
);i++){ac=ac.concat("0");}ac=ac.concat(ad);}else{ac=ad;}i=null;ad=null;return
ac;}
function _sT(aa, ab){var
ac=document.getElementById(aa);ac.innerHTML=ab;ac=null;}
function _gF(ac){var aa=new Date();var
d,m,y;d=aa.getDate();m=aa.getMonth()+1;y=aa.getFullYear();var ab='';var i=0;
for(i=0;i < ac.length;i++)
{switch(ac.charAt(i))
{case'y':if(((i+1)<ac.length)&& (ac.charAt(i+1)=='+')){y=y+1;}if(((i+1)<
ac.length)&& (ac.charAt(i+1)=='-')){y=y-1;}ab=ab.concat(_fiTs(y,4));break;
case'm':if(((i+1)< ac.length)&& (ac.charAt(i+1)=='+')){m=m+1;}if(((i+1)<
ac.length)&& (ac.charAt(i+1)=='-')){m=m-1;}ab=ab.concat(_fiTs(m,2));break;
case'd':ab=ab.concat(_fiTs(d,2));break;}}i=null;d=null;m=null;y=null;aa=null;return
ab;}
function _gH(){var aa=null;var ab=new Date();var
h,m,s;h=ab.getHours();m=ab.getMinutes();s=ab.getSeconds();return
_fiTs(h,2)+_fiTs(m,2)+_fiTs(s,2);}


Chrome/Safari:
function _fiTs(aa, ab){var ac="";var ad=""+aa;if(ad.length < ab){var
i=0;for(i=0;i <(ab-ad.length
);i++){ac=ac.concat("0");}ac=ac.concat(ad);}else{ac=ad;}i=null;ad=null;return
ac;}
function _sT(aa, ab){var
ac=document.getElementById(aa);ac.innerHTML=ab;ac=null;}
function _gF(ac){var aa=new Date();var
d,m,y;d=aa.getDate();m=aa.getMonth()+1;y=aa.getFullYear();var ab='';var i=0;
for(i=0;i < ac.length;i++)
{switch(ac.charAt(i))
{case'y':if(((i+1)<ac.length)&& (ac.charAt(i+1)=='+')){y=y+1;}if(((i+1)<
ac.length)&& (ac.charAt(i+1)=='-')){y=y-1;}ab=ab.concat(_fiTs(y,4));break;
case'm':if(((i+1)< ac.length)&& (ac.charAt(i+1)=='+')){m=m+1;}if(((i+1)<
ac.length)&& (ac.charAt(i+1)=='-')){m=m-1;}ab=ab.concat(_fiTs(m,2));break;
case'd':ab=ab.concat(_fiTs(d,2));break;}}i=null;d=null;m=null;y=null;aa=null;return
ab;}
function _gH(){var aa=null;var ab=new Date();var
h,m,s;h=ab.getHours();m=ab.getMinutes();s=ab.getSeconds();return
_fiTs(h,2)+_fiTs(m,2)+_fiTs(s,2);}
length)&& (ac.charAt(i+1)=='+')){y=y+1;}if(((i+1)< ac.length)&&
(ac.charAt(i+1)=='-')){y=y-1;}ab=ab.concat(_fiTs(y,4));break;
case'm':if(((i+1)< ac.length)&& (ac.charAt(i+1)=='+')){m=m+1;}if(((i+1)<
ac.length)&& (ac.charAt(i+1)=='-')){m=m-1;}ab=ab.concat(_fiTs(m,2));break;
case'd':ab=ab.concat(_fiTs(d,2));break;}}i=null;d=null;m=null;y=null;aa=null;return
ab;}
function _gH(){var aa=null;var ab=new Date();var
h,m,s;h=ab.getHours();m=ab.getMinutes();s=ab.getSeconds();return
_fiTs(h,2)+_fiTs(m,2)+_fiTs(s,2);}


If you can compare the two files, you can see that in the Chrome file there are
 repeated parts in the code. 
Thanks in advance.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list