Skip to content

Commit f16c6f1

Browse files
committed
Address moz central comments for ff16.
1 parent 276d965 commit f16c6f1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

extensions/firefox/components/PdfStreamConverter.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,13 @@ ChromeActions.prototype = {
132132
var originalUrl = data.originalUrl;
133133
// The data may not be downloaded so we need just retry getting the pdf with
134134
// the original url.
135-
var blobUrl = data.blobUrl || originalUrl;
136-
var originalUri = NetUtil.newURI(originalUrl);
137-
var blobUri = NetUtil.newURI(blobUrl);
135+
var originalUri = NetUtil.newURI(data.originalUrl);
136+
var blobUri = data.blobUrl ? NetUtil.newURI(data.blobUrl) : originalUri;
138137
var extHelperAppSvc =
139138
Cc['@mozilla.org/uriloader/external-helper-app-service;1'].
140139
getService(Ci.nsIExternalHelperAppService);
141140
var frontWindow = Cc['@mozilla.org/embedcomp/window-watcher;1'].
142141
getService(Ci.nsIWindowWatcher).activeWindow;
143-
var ioService = Services.io;
144-
var channel = ioService.newChannel(originalUrl, null, null);
145142

146143
NetUtil.asyncFetch(blobUri, function(aInputStream, aResult) {
147144
if (!Components.isSuccessCode(aResult)) {

0 commit comments

Comments
 (0)