[Webkit-unassigned] [Bug 62513] New: amazon.com requests root doc twice
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jun 12 10:19:49 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=62513
Summary: amazon.com requests root doc twice
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tonyg at chromium.org
CC: abarth at webkit.org, japhet at chromium.org
http://www.amazon.com/ includes an iframe with src=# and an immediately following script which changes the src of the iframe.
In Safari 5 and Firefox 5, the script seems to execute and change the source before the root document is double requested. In WebKit ToT, the root document is requested a second time (and the request is cancelled when the src is changed). It is also possible this is a race, and I just happened to lose in WebKit ToT.
I'm not sure if there's an easy fix other than allowing frames in the memory cache (bug 49246). If that were the case, then an iframe with src=# wouldn't have to refetch in the same way that other types of resources with the same src aren't refetched.
Here's the code in question:
<noscript><style>#cachebust_409923_adcontent{display:none;}</style></noscript> <script>(function(w,n){w._ued=w.uet&&w.ues&&w.uex;if(_ued){ues('wb',n,1);uet('bb',n);}})(window,'display-ad-right-2');</script> <div id='cachebust_409923_adcontent' style="width:301px;height:270px;margin-top:0px;margin-bottom:16px;overflow:hidden;"> <iframe src="#" id="cachebust_409923" scrolling="no" allowtransparency="true" marginwidth="0" marginheight="0" frameborder="0" width="301" height="270">></iframe> <script> (function(w,u,f,c,n){ function x(){if(_ued)uex('ld','display-ad-right-2')} f=document.getElementById('cachebust_409923'); try{ (w.aanParams=w.aanParams||{})['right-2']='site=amazon.us;pt=Gateway;slot=right-2;pid=507846;prid=12YKFDK04BA1WCNBPPVS;arid=715ad1512e5b46ddbf23f0b5402f8506;ef=0.05'; w.d16g_dclick_right_2_863_0='amzn.us.gw.atf;sz=300x250;bn=507846;u=715ad1512e5b46ddbf23f0b5402f8506;ord=12YKFDK04BA1WCNBPPVS;s=i0;s=i1;s=i2;s=i3;s=i4;s=i5;s=i6;s=i7;s=i8;s=344;s=333;s=1009;s=335;s
=336;s=283;s=32;s=u12;s=m1;s=m4;s=u4;s=u2;s=u13;z=3;tile=1'; c=f.contentWindow.document; c.open(); c.write("<body onload='document.location=\""+u+"\";'>"); n=0; f.onload=function(){if(++n==2)x()}; if(_ued)uet('af','display-ad-right-2'); c.close(); }catch(e){ f.onload=x; f.src=u; } })(window,'/aan/2009-09-09/static/amazon/iframeproxy-5.html#zus&cbright_2_863_0&eCM'); </script> </div> <script>if(_ued)uet('be','display-ad-right-2');</script>
--
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