browserify / browserify/http-browserify

Setting XHR response type fails due to xhr.responseType being modified before XHR is opened

オープン
#65 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。