Bug 1267033 - Ensure QI to nsIHttpChannel before trying to merge status info. r=kmag

MozReview-Commit-ID: 5kZndCaQmPr

--HG--
extra : transplant_source : %AAY%CA%DE%3C%FA%99%8B%8Dj%1FZ%B1L%EE%25%CE%20%D2R
This commit is contained in:
Giorgio Maone 2016-04-27 18:11:32 +02:00
Родитель fb97788fef
Коммит 49a6b9b48d
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -505,10 +505,12 @@ HttpObserverManager = {
let requestHeaderNames;
let responseHeaderNames;
let includeStatus = kind === "headersReceived" ||
kind === "onRedirect" ||
kind === "onStart" ||
kind === "onStop";
let includeStatus = (
kind === "headersReceived" ||
kind === "onRedirect" ||
kind === "onStart" ||
kind === "onStop"
) && channel instanceof Ci.nsIHttpChannel;
let commonData = null;
let uri = channel.URI;