forked from facebookarchive/connect-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: CNN & Amazon are asking for a custom XD Fragment URL. Generally, there is one case where the Fragment transport fails -- when there is background audio/video on the page, loading it in the iframe can cause it to be play over there as well resulting in double audio streams (video part would be hidden). I've given postMessage the highest priority, but a custom channelUrl will be prefered over Flash, where as without a custom channelUrl, we'll still prefer Flash to reusing the current page. I've also explicitly not documented the param in FB.init() for now, as I think it will be confusing. The channel file itself just needs to contain this line: <script src="http://connect.facebook.net/en_US/all.js"></script> We could also suggest this URL instead, which results in a much smaller JS file, but I'm not going to because the one above should already be cached: http://connect.facebook.net/en_US/xd.js Test Plan: Working on adding tests.. DiffCamp Revision: 112249 Reviewed By: wzhu CC: platform-diffs@lists, lshepard, brent, mattwkelly, wzhu, selekman Tasks: Revert Plan: OK
- Loading branch information
Showing
5 changed files
with
73 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- | ||
In production, this should be a single script to the URL: | ||
http://connect.facebook.net/en_US/all.js | ||
--> | ||
|
||
<script src="../src/core/prelude.js"></script> | ||
<script src="../src/core/qs.js"></script> | ||
<script src="../src/core/xd.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters