Skip to content

Commit 3d3fd46

Browse files
committed
Merge pull request mozilla#3132 from saebekassebil/issue-3130
Fix issue mozilla#3130 by changing a wrong reference of scope
2 parents 8e4d9e9 + d86fe6b commit 3d3fd46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/firefox/components/PdfStreamConverter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,8 +730,8 @@ PdfStreamConverter.prototype = {
730730
var channel = ioService.newChannel(
731731
PDF_VIEWER_WEB_PAGE, null, null);
732732

733-
var self = this;
734733
var listener = this.listener;
734+
var dataListener = this.dataListener;
735735
// Proxy all the request observer calls, when it gets to onStopRequest
736736
// we can get the dom window. We also intentionally pass on the original
737737
// request(aRequest) below so we don't overwrite the original channel and
@@ -759,7 +759,7 @@ PdfStreamConverter.prototype = {
759759
contentDispositionFilename, aRequest);
760760
} else {
761761
actions = new StandardChromeActions(
762-
domWindow, contentDispositionFilename, self.dataListener);
762+
domWindow, contentDispositionFilename, dataListener);
763763
}
764764
var requestListener = new RequestListener(actions);
765765
domWindow.addEventListener(PDFJS_EVENT_ID, function(event) {

0 commit comments

Comments
 (0)