browserify / browserify/http-browserify
Setting XHR response type fails due to xhr.responseType being modified before XHR is opened
未关闭
- 主要语言
- JavaScript
- 星标
- 245
- 派生
- 104
- PR 合并指标
- 30 天内没有已合并 PR
描述
http-browserify accepts a 'responseType' parameter to set the XHR response type. However, in Firefox 31 at least, the logic to set the response type always fails because it is set before xhr.open() is called.
The call to set 'xhr.responseType = params.responseType' fails with 'An attempt was made to use an object that is not, or is no longer, usable' ala. http://stackoverflow.com/questions/13216903/get-binary-data-with-xmlhttprequest-in-a-firefox-extension
贡献指南
这个仓库没有索引到贡献指南
调研方向
定位 http-browserify 中对 responseType 的处理,并将其赋值操作与 xhr.open() 调用进行比较。如果可能,重现 Firefox 失败的情况,然后验证在打开 XHR 后设置 responseType 可以成功,且不会出现所报告的不可用对象错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- web-dev
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100