Youku.com is #1 youtube-like site in China.
What steps will reproduce the problem?
1. go to http://www.oneava.cn/read.php?tid=49
2. wait a a few seconds
3. press a large play button in the middle of 'flash' frame
What is the expected output? What do you see instead?
Flash movie should be played. Instead, we get an error message in Chinese.
Here are the headers caught with Google Chrome/Opera/Safari on Mac
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13
Here are IE's headers:
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Basically they need to check the referer to make sure the request comes
from the flash they created, instead of a download link. IE gives referer
as the url of flash swf, while the referer in Safari(Mac), gives the url of the page, which fails their check.
Some more info
The value of Referer: field is different in different browsers. There's a recent mail from an Opera engineer about the issue in NPAPI plugin-future mailing list. (I can't give a url because the archive is protected).
The gist of that email is :
IE7/IE8 : sends the URL of the requesting plug-in
Firefox3: does not send a referer (except in a very special case : )
Safari 3.1 (Windows) : does not send a referer
Safari 3.1 (Mac) : sends the embedding page URL.
Google Chrome : sends the embedding page URL
Opera : sends the embedding page URL
Other related links are :
Should webkit attempt to match IE's behavior and always set the default referer
to the plugin URL?
Is there any update on this?
The misleading behavior of Safari is still present in version 4.0.5. The Mac version does send a referrer for embedded flash whereas the Windows version doesn't. Is it going to be unified in some way?
This bug is about the youku.com failure specifically, but the example URL is not accessible now.
The difference between Mac and Windows may or may not the cause, and may or may not be a WebKit issue (it's possible for the Flash plug-in itself to do something different). So, while these issues are probably related, it's better to not conflate them.
Adobe Flash is not in support and NPAPI plugins are not supported from Safari 14 onward. Can this be marked as "RESOLVED WONTFIX"? Thanks!