File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
extensions/firefox/components Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -132,16 +132,13 @@ ChromeActions.prototype = {
132
132
var originalUrl = data .originalUrl ;
133
133
// The data may not be downloaded so we need just retry getting the pdf with
134
134
// 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 ;
138
137
var extHelperAppSvc =
139
138
Cc ['@mozilla.org/uriloader/external-helper-app-service;1' ].
140
139
getService (Ci .nsIExternalHelperAppService );
141
140
var frontWindow = Cc ['@mozilla.org/embedcomp/window-watcher;1' ].
142
141
getService (Ci .nsIWindowWatcher ).activeWindow ;
143
- var ioService = Services .io ;
144
- var channel = ioService .newChannel (originalUrl , null , null );
145
142
146
143
NetUtil .asyncFetch (blobUri , function (aInputStream , aResult ) {
147
144
if (!Components .isSuccessCode (aResult )) {
You can’t perform that action at this time.
0 commit comments