在Chrome中设置popup维度launchWebAuthFlow?
问题描述:
官方文档here没有提到,但它看起来像支持设置宽度&发射流窗口的高度已被添加 - 请参阅the issue。在Chrome中设置popup维度launchWebAuthFlow?
所以,我想这从一个打包应用程序在Chrome 29(稳定)和31(金丝雀):
chrome.identity.launchWebAuthFlow({
url: MY_FACEBOOK_OAUTH_URL,
interactive: true,
width: 400,
height: 300
}, function(){});
,并得到这样的: Error: Invalid value for argument 1. Property 'width': Unexpected property, Property 'height': Unexpected property.
任何人都知道,如果这确实是可能的? Facebook弹出窗口的默认尺寸效果不佳。
答
您指的是受影响的实验身份API的更改。目前不支持使用chrome.identity.launchWebAuthFlow设置窗口的尺寸。如果您希望在chrome.identity API中引入该功能,请在铬错误数据库中使用file a bug。
现在支持它,但仅限于实验性API - http://chrome-apps-doc2.appspot.com/trunk/apps/experimental.identity.html – simbolo