File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
extensions/firefox/components Expand file tree Collapse file tree 3 files changed +5
-9
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 )) {
Original file line number Diff line number Diff line change 1
1
# Chrome notification bar messages and buttons
2
2
unsupported_feature =This PDF document might not be displayed correctly.
3
3
open_with_different_viewer =Open With Different Viewer
4
+ open_with_different_viewer.accessKey =o
Original file line number Diff line number Diff line change @@ -9,13 +9,11 @@ VPATH = @srcdir@
9
9
relativesrcdir = browser/extensions/pdfjs/test
10
10
11
11
include $(DEPTH ) /config/autoconf.mk
12
- include $(topsrcdir ) /config/rules.mk
13
12
14
- _BROWSER_TEST_FILES = \
13
+ MOCHITEST_BROWSER_FILES = \
15
14
browser_pdfjs_main.js \
16
15
browser_pdfjs_savedialog.js \
17
16
file_pdfjs_test.pdf \
18
17
$(NULL )
19
18
20
- libs :: $(_BROWSER_TEST_FILES )
21
- $(INSTALL ) $(foreach f,$^ ,"$f") $(DEPTH ) /_tests/testing/mochitest/browser/$(relativesrcdir )
19
+ include $(topsrcdir ) /config/rules.mk
You can’t perform that action at this time.
0 commit comments