2013-10-08 23 views
1

當我打開我的擴展未編譯(使用iframe應該有一個webview標記),該應用程序工作正常。當我將iframe放入webview並編譯時,webview不會顯示出來。 popup.html:Webview沒有在我的Chrome擴展中打開

<!doctype html> 
    <head> 
    <title>title</title> 
    </head> 
<body> 
<webview id="foo" src="http://www.google.com/" style="width:640px; height:480px"></webview> 
</body> 
</html> 

清單:

{ 
    "manifest_version": 2, 
    "name": "test", 
    "description": "test", 
    "version": "1.0", 
    "permissions": ["webview"], 
    "browser_action": { 
    "default_icon": "icon.png", 
    "default_popup": "popup.html" 
    } 
} 

回答

3

到目前爲止的WebView代碼API一直只提供給Chrome應用(由事實判斷存在擴展API頁面沒有提到過的WebView )。所以目前,你不能在擴展或傳統打包應用中使用它。

相關問題