Closed
Bug 115440
Opened 23 years ago
Closed 23 years ago
File/Save Page as doesn't work for PDF Files [also text, movie, image bugs]
Categories
(Core Graveyard :: File Handling, defect, P2)
Core Graveyard
File Handling
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.8
People
(Reporter: Biesinger, Assigned: bugs)
References
()
Details
Attachments
(1 file, 4 obsolete files)
4.62 KB,
patch
|
brendan
:
review+
brendan
:
superreview+
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+) Gecko/20011213
BuildID: 2001121417, self-compiled
When a PDF File is displayed using the Adobe Acrobat PDF plugin (nppdf.so),
File|Save Page As doesn't do anything (at least the filepicker doesn't appear).
Reproducible: Always
Steps to Reproduce:
1. Visit the above URL with nppdf.so installed
2. Click File/Save Page As
Actual Results: Nothing
Expected Results: Filepicker shows up and on clicking OK the file is saved.
I get the following message in JS Console:
Error: aDocument has no properties
Source File: chrome://communicator/content/contentAreaUtils.js
Line: 284
Comment 1•23 years ago
|
||
La dee dee.
Over to Ben.
Assignee: pchen → ben
Severity: minor → normal
Component: XP Apps → File Handling
OS: Linux → All
Hardware: PC → All
Assignee | ||
Comment 2•23 years ago
|
||
yikes. ok, saving a document when there is none. easy. will just call saveURL
instead in this case. patch soon.
Status: NEW → ASSIGNED
Comment 3•23 years ago
|
||
Ben, could we just do saveURL for _all_ non-html content?
That would also fix the issues with saving plaintext and images incorrectly...
Assignee | ||
Comment 4•23 years ago
|
||
removes duplication of code & creates single 'saveInternal' method that always
sniffs for content-type. This ensures that 'savePage' on a image document or
pdf file will save as the right type rather than trying to save as text/html.
Also removes the not-hooked-up-yet Text only filter.
Comment 5•23 years ago
|
||
sr=hyatt
Assignee | ||
Comment 6•23 years ago
|
||
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 7•23 years ago
|
||
Ben, did this (should this) make it into the 0.9.7 branch?
Comment 8•23 years ago
|
||
a=asa (on behalf of drivers) for checkin to 0.9.7 (hoping it will make 115132
better)
Keywords: mozilla0.9.7+
Reporter | ||
Comment 10•23 years ago
|
||
Still does not work in a recent CVS build from some hours ago (linux)
reopening
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla0.9.8
Assignee | ||
Comment 11•23 years ago
|
||
acquire location to save from root content view if document does not exist.
(mixed in with some other changes)
Attachment #62000 -
Attachment is obsolete: true
Assignee | ||
Comment 12•23 years ago
|
||
*** Bug 115395 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 13•23 years ago
|
||
*** Bug 115210 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 14•23 years ago
|
||
*** Bug 115087 has been marked as a duplicate of this bug. ***
Comment 15•23 years ago
|
||
Comment on attachment 64031 [details] [diff] [review]
actually fix
r=bzbarsky
Attachment #64031 -
Flags: review+
Comment 16•23 years ago
|
||
nsIPref is deprecated; we should be using nsIPrefService/nsIPrefBranch instead.
Assignee | ||
Comment 17•23 years ago
|
||
Attachment #64031 -
Attachment is obsolete: true
Assignee | ||
Comment 18•23 years ago
|
||
Can I get r/sr on this new patch?
Comment 19•23 years ago
|
||
updating summary to remind me to verify for the cases in the dups of this bug.
Summary: File/Save Page as doesn't work for PDF Files → File/Save Page as doesn't work for PDF Files [also text, movie, image bugs]
Comment 20•23 years ago
|
||
Ben, I think the getBranch("") call should ask for "browser.download.", or, the
getComplexValue("dir") should use "browser.download.dir".
If you change the getBranch, then don't you need to change all the other users
of that branch to drop the "browser.download." prefix?
Assignee | ||
Comment 21•23 years ago
|
||
oops, that's a typo. I changed the getComplexValue call to call
"browser.download.dir"
Comment 22•23 years ago
|
||
Comment on attachment 64199 [details] [diff] [review]
patch that uses nsIPrefService/nsIPrefBranch
r=law
with the fix described in the bug comments
Attachment #64199 -
Flags: review+
Assignee | ||
Comment 23•23 years ago
|
||
Attachment #64199 -
Attachment is obsolete: true
Assignee | ||
Comment 24•23 years ago
|
||
Attachment #64924 -
Attachment is obsolete: true
Comment 25•23 years ago
|
||
Comment on attachment 64925 [details] [diff] [review]
er, the right patch this time
Noting law's r= and adding sr=brendan@mozilla.org.
/be
Attachment #64925 -
Flags: superreview+
Attachment #64925 -
Flags: review+
Assignee | ||
Comment 26•23 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 27•23 years ago
|
||
okay, using 2002.01.24.0x comm bits i've tested the following scenarios, where
save page works. what i did was
1. load a given file
2. selected File > Save Page As [accepted whatever filetype was listed]
3. downloaded it
4. reopen it in browser to make sure the browser actually saved the file sensibly
scenarios that passed:
* linux rh7.2: text file, shockwave flash file
* win2k: text, pdf, flash
* mac os 10.1.2: text, quicktime, flash
* mac os 9.2: pdf
Christian, could you verify pdf on linux, pls? thx a lot!
Comment 28•23 years ago
|
||
Verified that PDF can be saved on linux, current CVS trunk build.
Reporter | ||
Comment 29•23 years ago
|
||
verified on linux, cvs build 2002012422, using steps described by sairuh.
pdf from the url field is correctly saved.
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•