当我打开未编译的扩展程序(使用应该有 webview 标签的 iframe)时,应用程序运行良好。当我将 iframe 制作成 webview 并编译时,webview 不显示。popup.html:
<!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"
}
}