2012-08-03 34 views
2

有人可以告訴我,爲什麼下面的html代碼會讓firefox窗口(在windows7上)難以置信?embed.swf使得Firefox窗口不可確認

<!doctype html> 
<html> 
<head> 
<title>Flash</title> 
<script src="jquery.js"></script> 
<script src="swfobject.js"></script> 
<script type="text/javascript"> 
$(document).ready(function() { 
    swfobject.embedSWF("Menu.swf", "flashdiv", "100%", "100%", "10"); 
}); 
</script> 
<style> 
html,body,#flashdiv 
{ 
width:100%; 
height:100%; 
margin:0; 
padding:0; 
overflow:hidden; 
} 
</style> 
</head> 
<body><div id="flashdiv"></div></body> 
</html> 

現場測試用例:http://www.embege.com/misc/ff.html

編輯:我已經嘗試過禁用所有插件。我也嘗試過Firefox,但是當我在這個頁面時窗口大小仍然鎖定。

+0

你是什麼意思'使Firefox窗口不可調整?瀏覽器內沒有任何東西可以控制它。 – loxxy 2012-08-03 08:45:31

+0

但它。如果我抓住瀏覽器窗口的邊緣並開始拖動。它會立即回覆到原來的位置 – clamp 2012-08-03 08:49:09

+0

對我來說毫無問題。我在W7中運行ff 13 – 2012-08-10 08:58:19

回答

2

對於Firefox和Flash Player的某種組合,這是Firefox和Adobe Flash Player的一個已知錯誤。該錯誤已經通過Adobe和Firefox提交,您可以在Mozilla Bugzilla entry中閱讀關於此錯誤的詳細信息。

如果你有興趣在錯誤的技術細節,這裏是什麼導致了問題的描述:

Jeromie報告該問題的Flash釋放鼠標捕獲 爲時尚早。據我所知,這是正確的。 Flash也似乎 正在吃我們的WM_CAPTURECHANGED消息,這些都沒有過濾到Firefox WndProc 。使用Flash 11.4,我們得到了這些消息 。所以,不僅鼠標捕捉被提前釋放,我們不會被告知它,所以我們不能嘗試抓住我們自己的鼠標捕捉(儘管這不會被忽略)。

該錯誤已被reported as closed in the Adobe Flash Player bug database升級到最新版本的Firefox和Flash Player應該可以解決問題。如果那不適合您,請嘗試按照comment #58 of the Mozilla bug entry中所述的步驟操作。