[Webkit-unassigned] [Bug 19530] New: Safari/WebKit requests the same URL multiple times when Firefox/IE only requests it once
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jun 12 20:28:23 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=19530
Summary: Safari/WebKit requests the same URL multiple times when
Firefox/IE only requests it once
Product: WebKit
Version: 525.x (Safari 3.1)
Platform: Macintosh
URL: http://faceoutblaze.dreamhosters.com/flashtest/test.html
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Platform
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: yusufg at gmail.com
Hi, My colleague and I have constructed a test page which uses swfobject to
incorporate a SWF file into an HTML page. The purpose of this test page is to
load the same swf files multiple times into different divs and see if browsers
make a single request or make multiple requests
The test page has multiple links via either use raw <embed> tags or swfobject
api calls via loop unrolling, in a loop. We also use a mechanism which we term
as preload wherein we have a simple Actionscript on the first frame of the swf
file which calls out to a javascript callback after it finishes loading in the
main page. We found this to be an appropiate workaround for IE6/IE7 for it not
to make multiple requests
This is the actionscript used in the swf file
_root.stop();
this.onEnterFrame = function(){
this.bytes_txt.text = _root.getBytesLoaded() + "/" +
_root.getBytesTotal();
if(_root.getBytesLoaded() == _root.getBytesTotal()){
this.bytes_txt.text = "done";
_root.gotoAndStop(2);
getURL("javascript: preloadfinish();");
delete this.onEnterFrame;
}
}
We find that when we use Safari 3.1 on Mac OSX 10.5.3, it makes multiple
requests to bring in the same swf file. This was observed via the Web Inspector
as well as via HTTPScoop <http://www.tuffcode.com/>
Firefox 2 as well as Firefox 3 only make one request. It seems to remember that
it made a request to the URL and thus doesn't fire it out again
We've tried with both swfobject 1.5 as well as swfobject 2.0
SWFObject 1.5: http://blog.deconcept.com/swfobject/
SWFObject 2.0: http://code.google.com/p/swfobject/
Test URL using SWFObject 1.5
http://faceoutblaze.dreamhosters.com/flashtest/test.html
Test URL using SWFObject 2.0
http://faceoutblaze.dreamhosters.com/flashtest2/test.html
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list